Skip to content

Commit ed4b14e

Browse files
silehtclaude
andauthored
fix: use mergify ci git-refs for scopes-git-refs action (#132)
When `scopes-git-refs` action was used with a `source: manual` config, `mergify ci scopes` failed because scope detection isn't possible without file patterns. Since `scopes-git-refs` only needs base/head refs, use the dedicated `mergify ci git-refs` command that skips scope detection entirely. Fixes: MRGFY-6396 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b882745 commit ed4b14e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

action.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ outputs:
3636
value: ${{ steps.scopes-detection.outputs.scopes }}
3737
base:
3838
description: The Merge Queue aware base sha of the pull request
39-
value: ${{ steps.scopes-detection.outputs.base }}
39+
value: ${{ steps.git-refs-detection.outputs.base || steps.scopes-detection.outputs.base }}
4040
head:
4141
description: The Merge Queue aware head sha of the pull request
42-
value: ${{ steps.scopes-detection.outputs.head }}
42+
value: ${{ steps.git-refs-detection.outputs.head || steps.scopes-detection.outputs.head }}
4343
runs:
4444
using: composite
4545
steps:
@@ -80,8 +80,14 @@ runs:
8080
set -x -e
8181
mergify ci junit-process ${FILES}
8282
83+
- name: Detect head sha and base sha
84+
if: inputs.action == 'scopes-git-refs'
85+
id: git-refs-detection
86+
shell: bash
87+
run: mergify ci git-refs
88+
8389
- name: Detect scopes, head sha and base sha
84-
if: inputs.action == 'scopes' || inputs.action == 'scopes-upload' || inputs.action == 'scopes-git-refs'
90+
if: inputs.action == 'scopes' || inputs.action == 'scopes-upload'
8591
id: scopes-detection
8692
shell: bash
8793
run: mergify ci scopes --write $RUNNER_TEMP/mergify-scopes.json

0 commit comments

Comments
 (0)