Commit 58957e9
fix(ci): support squash merge format in notify workflow (#491)
The workflow was only looking for 'Merge pull request #123' format,
which is used for regular merges. When using 'gh pr merge --squash',
GitHub creates a squash commit with format 'Title (#123)' instead.
**Changes:**
- Updated regex to match BOTH formats:
- Regular merge: "Merge pull request #123 from..."
- Squash merge: "Title (#123)"
- Use head -1 to only check first line of commit message
**Testing:**
- Tested regex with both formats
- Regular merge: ✓ Extracts 123
- Squash merge: ✓ Extracts 485
This fixes the workflow not triggering on PR #485 merge.
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 614a166 commit 58957e9
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments