Commit 83b8716
committed
Fix asymmetric state mapping: include SUPERSEDED PRs when filtering by closed
toBitbucketState mapped 'closed' only to 'declined', but normalizeBitbucketPullRequestState
maps both DECLINED and SUPERSEDED to 'closed'. This caused SUPERSEDED PRs to appear
in 'all' listings but disappear from 'closed' listings.
Refactored toBitbucketState into toBitbucketStateArgs which returns CLI flag pairs,
allowing 'closed' to expand into --state declined --state superseded.1 parent 7a57722 commit 83b8716
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
0 commit comments