@@ -129,6 +129,7 @@ jobs:
129129 token : ${{ secrets.PAT_TOKEN }}
130130
131131 - name : Test Skip If Empty (should skip - no changes)
132+ id : skip-test
132133 uses : somaz94/go-git-commit-action@v1
133134 with :
134135 user_email : actions@github.com
@@ -146,12 +147,22 @@ jobs:
146147 github_token : ${{ secrets.PAT_TOKEN }}
147148 pr_closed : true
148149
150+ - name : Verify Skip Output
151+ run : |
152+ echo "skipped=${{ steps.skip-test.outputs.skipped }}"
153+ if [ "${{ steps.skip-test.outputs.skipped }}" != "true" ]; then
154+ echo "FAIL: expected skipped=true"
155+ exit 1
156+ fi
157+ echo "PASS: skip output verified"
158+
149159 # Verify skip does not happen when changes exist
150160 - name : Create Test File
151161 run : |
152162 echo "$(date +%s)-$RANDOM" > test/skip-test.txt
153163
154164 - name : Test Skip If Empty (should not skip - with changes)
165+ id : no-skip-test
155166 uses : somaz94/go-git-commit-action@v1
156167 with :
157168 user_email : actions@github.com
@@ -169,6 +180,16 @@ jobs:
169180 github_token : ${{ secrets.PAT_TOKEN }}
170181 pr_closed : true
171182
183+ - name : Verify No-Skip Output
184+ run : |
185+ echo "skipped=${{ steps.no-skip-test.outputs.skipped }}"
186+ echo "pr_number=${{ steps.no-skip-test.outputs.pr_number }}"
187+ if [ "${{ steps.no-skip-test.outputs.skipped }}" = "true" ]; then
188+ echo "FAIL: expected skipped!=true"
189+ exit 1
190+ fi
191+ echo "PASS: no-skip output verified"
192+
172193 smoke-test-pr-auto-close :
173194 name : Smoke Test (PR Auto Close)
174195 runs-on : ubuntu-latest
@@ -226,4 +247,41 @@ jobs:
226247 repository_path : " test"
227248 file_pattern : " pr-dry-run-test.txt"
228249 github_token : ${{ secrets.PAT_TOKEN }}
250+ pr_dry_run : true
251+
252+ - name : Test PR Dry Run with Draft
253+ uses : somaz94/go-git-commit-action@v1
254+ with :
255+ user_email : actions@github.com
256+ user_name : GitHub Actions
257+ branch : main
258+ create_pr : true
259+ auto_branch : false
260+ pr_title : " Test PR Dry Run (Draft)"
261+ pr_base : test
262+ pr_branch : main
263+ pr_labels : " test,automated,draft-pr-test"
264+ repository_path : " test"
265+ file_pattern : " pr-dry-run-test.txt"
266+ github_token : ${{ secrets.PAT_TOKEN }}
267+ pr_draft : true
268+ pr_dry_run : true
269+
270+ - name : Test PR Dry Run with Reviewers and Assignees
271+ uses : somaz94/go-git-commit-action@v1
272+ with :
273+ user_email : actions@github.com
274+ user_name : GitHub Actions
275+ branch : main
276+ create_pr : true
277+ auto_branch : false
278+ pr_title : " Test PR Dry Run (Reviewers/Assignees)"
279+ pr_base : test
280+ pr_branch : main
281+ pr_labels : " test,automated,reviewers-test"
282+ pr_reviewers : " somaz94"
283+ pr_assignees : " somaz94"
284+ repository_path : " test"
285+ file_pattern : " pr-dry-run-test.txt"
286+ github_token : ${{ secrets.PAT_TOKEN }}
229287 pr_dry_run : true
0 commit comments