From 5dec6c19d943f1ab93c8713868af69efae5115ec Mon Sep 17 00:00:00 2001 From: Samuel Chai Date: Mon, 21 Apr 2025 08:46:33 -0400 Subject: [PATCH 1/3] nil pointer testing --- .github/workflows/pr.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 32f03fe..066a90b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -58,4 +58,3 @@ jobs: commit-message: "Updating tracked Git version in source code" branch: ${{ github.head_ref }} github-token: ${{ secrets.GITHUB_TOKEN }} - commit-all: 'true' \ No newline at end of file From 05fda822d762d2fb386dbb4aba0fdc62b885fcc2 Mon Sep 17 00:00:00 2001 From: Samuel Chai Date: Mon, 21 Apr 2025 08:50:03 -0400 Subject: [PATCH 2/3] #patch fixing bug ignoring error --- .github/workflows/pr.yaml | 1 + cmd/args.go | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 066a90b..32f03fe 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -58,3 +58,4 @@ jobs: commit-message: "Updating tracked Git version in source code" branch: ${{ github.head_ref }} github-token: ${{ secrets.GITHUB_TOKEN }} + commit-all: 'true' \ No newline at end of file diff --git a/cmd/args.go b/cmd/args.go index 7ccb64f..253607d 100644 --- a/cmd/args.go +++ b/cmd/args.go @@ -319,8 +319,10 @@ var rootCmd = &cobra.Command{ return err } - settings, _ := ValidateAndConfigureRun(args, cmd, repoSettings) - // TODO Validate that you can find all the files + settings, err := ValidateAndConfigureRun(args, cmd, repoSettings) + if err != nil { + return err + } // Check all labels exist if settings.PrSettings != nil && len(settings.PrSettings.Labels) > 0 { From 624bf5763875a5fa5d52c8f3c0c55e94922b10c8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 12:50:54 +0000 Subject: [PATCH 3/3] Updating tracked Git version in source code --- cmd/execute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/execute.go b/cmd/execute.go index 3e8238a..527ec7c 100644 --- a/cmd/execute.go +++ b/cmd/execute.go @@ -11,7 +11,7 @@ import ( ) // VERSION number: changed in CI -const VERSION = "v0.1.2" +const VERSION = "v0.1.3" var rootPath string var repo repository.Repository