Commit 84c0484
committed
Fix ghstack merge bot failing to parse PR stack header
Summary:
ghstack 0.15.0 changed the header URL in PR bodies from
`Stack from [ghstack](https://github.com/ezyang/ghstack)` to
`Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0)`.
The exact string match in `propose_ghstack_orig_pr.py` no longer matched,
causing every ghstack_land workflow run to fail since May 14. Use
`startswith("Stack from [ghstack]")` instead to be resilient to URL changes.
Test Plan:
Verified the new pattern matches both the old format
(`https://github.com/ezyang/ghstack`) and the new format
(`https://github.com/ezyang/ghstack/tree/0.15.0`).
This PR was authored with the help of Claude.
Reviewers:1 parent 88faab2 commit 84c0484
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 55 | | |
59 | 56 | | |
60 | | - | |
| 57 | + | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| |||
0 commit comments