github.com/gitbundle/modules@v0.0.0-20231025071548-85b91c5c3b01/git/tests/repos/repo1_bare/pulls/2.patch (about)

     1  From 6e8e2a6f9efd71dbe6917816343ed8415ad696c3 Mon Sep 17 00:00:00 2001
     2  From: 99rgosse <renaud@mycompany.com>
     3  Date: Fri, 26 Mar 2021 12:44:22 +0000
     4  Subject: [PATCH] Update gitea_import_actions.py
     5  
     6  ---
     7   gitea_import_actions.py | 6 +++---
     8   1 file changed, 3 insertions(+), 3 deletions(-)
     9  
    10  diff --git a/gitea_import_actions.py b/gitea_import_actions.py
    11  index f0d72cd..7b31963 100644
    12  --- a/gitea_import_actions.py
    13  +++ b/gitea_import_actions.py
    14  @@ -3,14 +3,14 @@
    15   # git log --pretty=format:'%H,%at,%s' --date=default > /tmp/commit.log
    16   # to get the commits logfile for a repository
    17  
    18  -import mysql.connector as mariadb
    19  +import psycopg2
    20  
    21   # set the following variables to fit your need...
    22   USERID = 1
    23   REPOID = 1
    24   BRANCH = "master"
    25  
    26  -mydb = mariadb.connect(
    27  +mydb = psycopg2.connect(
    28     host="localhost",
    29     user="user",
    30     passwd="password",
    31  @@ -31,4 +31,4 @@ with open("/tmp/commit.log") as f:
    32  
    33   mydb.commit()
    34  
    35  -print("actions inserted.")
    36  \ No newline at end of file
    37  +print("actions inserted.")
    38  --
    39  GitLab