From 90abad910df76d727b4f1c06fbd336b32b15ff45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 21:50:31 +0500 Subject: [PATCH 1/9] the 'update-windows-auto-commit.ps1' file has been changed --- scripts/update-windows-auto-commit.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-windows-auto-commit.ps1 b/scripts/update-windows-auto-commit.ps1 index 02685a9..534733a 100644 --- a/scripts/update-windows-auto-commit.ps1 +++ b/scripts/update-windows-auto-commit.ps1 @@ -67,4 +67,4 @@ Set-Content -Path $versionFile -Value $tag git config --local alias.auto '!./.git/hooks/auto-commit' Write-Host "successful upgrade to version $tag" -exit 0 +[Environment]::Exit(0) From 4a60e3208edf4acc1910c920ba8c8116af9d1c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 21:52:38 +0500 Subject: [PATCH 2/9] changed value in variable re --- issues.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/issues.go b/issues.go index af8e347..e3e8ec6 100644 --- a/issues.go +++ b/issues.go @@ -19,9 +19,11 @@ var bufferPool = sync.Pool{ } func ExtractIssueNumber(branch string) string { - re := regexp.MustCompile(`(\\d+)`) + re := regexp.MustCompile(`\d+`) match := re.FindStringSubmatch(branch) + fmt.Println(match) if len(match) > 1 { + fmt.Println(match[1]) return match[1] } From 3b0562123f69513baa20f06f363cec4d69b9d8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 21:52:52 +0500 Subject: [PATCH 3/9] changed the 'fix-exit-42' branch --- issues.go | 1 + 1 file changed, 1 insertion(+) diff --git a/issues.go b/issues.go index e3e8ec6..66ba253 100644 --- a/issues.go +++ b/issues.go @@ -18,6 +18,7 @@ var bufferPool = sync.Pool{ }, } + func ExtractIssueNumber(branch string) string { re := regexp.MustCompile(`\d+`) match := re.FindStringSubmatch(branch) From ddba464ced7d33f33fddb6dc7fe7dd74f2a66857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 21:55:01 +0500 Subject: [PATCH 4/9] changed the 'fix-exit-42' branch --- parser.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser.go b/parser.go index b070413..44dd44d 100644 --- a/parser.go +++ b/parser.go @@ -100,6 +100,8 @@ func Parser(files []string) (string, error) { }() } + fmt.Println(len(payloadMsg)) + for _, file := range files { jobs <- file } From 92a34ffba2cd27a50f289f5619b17198543ffc0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 21:56:34 +0500 Subject: [PATCH 5/9] changed the 'fix-exit-42' branch --- issues.go | 1 - 1 file changed, 1 deletion(-) diff --git a/issues.go b/issues.go index 66ba253..e3e8ec6 100644 --- a/issues.go +++ b/issues.go @@ -18,7 +18,6 @@ var bufferPool = sync.Pool{ }, } - func ExtractIssueNumber(branch string) string { re := regexp.MustCompile(`\d+`) match := re.FindStringSubmatch(branch) From 1c4016ed3591157750849449ae18cb64aee19558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 21:59:37 +0500 Subject: [PATCH 6/9] changed the 'fix-exit-42' branch --- auto-remote.go | 5 +++++ issues.go | 1 - parser.go | 2 -- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/auto-remote.go b/auto-remote.go index cdde711..b1a4dac 100644 --- a/auto-remote.go +++ b/auto-remote.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "strconv" "strings" ) @@ -24,6 +25,10 @@ func FormattedByRemote(token string) (string, error) { return "", err } + fmt.Println(owner) + fmt.Println(repo) + fmt.Println(issue) + issueName, issueNumber, err := GetIssueData(owner, repo, issue, token) if err != nil { return "", err diff --git a/issues.go b/issues.go index e3e8ec6..111710b 100644 --- a/issues.go +++ b/issues.go @@ -21,7 +21,6 @@ var bufferPool = sync.Pool{ func ExtractIssueNumber(branch string) string { re := regexp.MustCompile(`\d+`) match := re.FindStringSubmatch(branch) - fmt.Println(match) if len(match) > 1 { fmt.Println(match[1]) return match[1] diff --git a/parser.go b/parser.go index 44dd44d..b070413 100644 --- a/parser.go +++ b/parser.go @@ -100,8 +100,6 @@ func Parser(files []string) (string, error) { }() } - fmt.Println(len(payloadMsg)) - for _, file := range files { jobs <- file } From dab115af3632278ff11f1a8aad451d0155c40f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 22:02:10 +0500 Subject: [PATCH 7/9] changed the 'fix-exit-42' branch --- issues.go | 1 + 1 file changed, 1 insertion(+) diff --git a/issues.go b/issues.go index 111710b..8ec9097 100644 --- a/issues.go +++ b/issues.go @@ -40,6 +40,7 @@ func GetOwnerRepository() (string, string, error) { regex := regexp.MustCompile(`[:/]([^/:]+)/([^/]+?)(?:\.git)?$`) match := regex.FindStringSubmatch(url) + fmt.Println(match) if len(match) == 3 { return match[1], match[2], nil } From 172df0130b56f08c48b4f6051ab5cae472ddd08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 22:02:37 +0500 Subject: [PATCH 8/9] changed the 'fix-exit-42' branch --- auto-remote.go | 5 ----- issues.go | 1 - 2 files changed, 6 deletions(-) diff --git a/auto-remote.go b/auto-remote.go index b1a4dac..cdde711 100644 --- a/auto-remote.go +++ b/auto-remote.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "strconv" "strings" ) @@ -25,10 +24,6 @@ func FormattedByRemote(token string) (string, error) { return "", err } - fmt.Println(owner) - fmt.Println(repo) - fmt.Println(issue) - issueName, issueNumber, err := GetIssueData(owner, repo, issue, token) if err != nil { return "", err diff --git a/issues.go b/issues.go index 8ec9097..111710b 100644 --- a/issues.go +++ b/issues.go @@ -40,7 +40,6 @@ func GetOwnerRepository() (string, string, error) { regex := regexp.MustCompile(`[:/]([^/:]+)/([^/]+?)(?:\.git)?$`) match := regex.FindStringSubmatch(url) - fmt.Println(match) if len(match) == 3 { return match[1], match[2], nil } From 8a8918a2493edda57fc75501a3452c70a2006245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=92=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 17 Jun 2025 22:12:58 +0500 Subject: [PATCH 9/9] the 'install-linux-auto-commit.sh' file has been changed | the 'README.md' file has been changed | the 'update-linux-auto-commit.sh' file has been changed --- README.md | 2 +- scripts/install-linux-auto-commit.sh | 2 +- scripts/update-linux-auto-commit.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f083e3..4f4f744 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ iex ((New-Object Net.WebClient).DownloadString('https://github.com/thefuture-ind Go to the root of the project and run the command. ```bash -curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-linux-auto-commit.sh?raw=true | bash +echo Y | bash <(curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-linux-auto-commit.sh?raw=true) ``` ## Setting up diff --git a/scripts/install-linux-auto-commit.sh b/scripts/install-linux-auto-commit.sh index 6fe53d4..69fdbc9 100644 --- a/scripts/install-linux-auto-commit.sh +++ b/scripts/install-linux-auto-commit.sh @@ -41,7 +41,7 @@ if [[ "$answer" == "Y" || "$answer" == "y" ]]; then chmod +x "$HOOK_PATH" echo -e "\e[33mFile saved as $HOOK_PATH\e[0m" - git config --local alias.auto '!./.git/hooks/auto-commit' + git config --local alias.auto '!bash -c ./.git/hooks/auto-commit' echo "$TAG" > "$VERSION_FILE" diff --git a/scripts/update-linux-auto-commit.sh b/scripts/update-linux-auto-commit.sh index 83dc5a6..cb9f4c0 100644 --- a/scripts/update-linux-auto-commit.sh +++ b/scripts/update-linux-auto-commit.sh @@ -61,5 +61,5 @@ chmod +x "$HOOK_PATH" echo "$TAG" > "$VERSION_FILE" -git config --local alias.auto '!./.git/hooks/auto-commit' +git config --local alias.auto '!bash -c ./.git/hooks/auto-commit' echo "successful upgrade to version $TAG"