Skip to content

Commit 65532fa

Browse files
committed
forge--update-issue(github): Explicitly match all possible states
1 parent b2616e4 commit 65532fa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lisp/forge-github.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,11 @@
271271
(oset issue slug (format "#%s" .number))
272272
(oset issue state
273273
(pcase-exhaustive (list .stateReason .state)
274-
(`("COMPLETED" ,_) 'completed)
275-
(`("NOT_PLANNED" ,_) 'unplanned)
276-
(`(,_ "CLOSED") 'completed)
277-
(`(,_ "OPEN") 'open)))
274+
('("COMPLETED" "CLOSED") 'completed)
275+
('("NOT_PLANNED" "CLOSED") 'unplanned)
276+
('("DUPLICATE" "CLOSED") 'completed)
277+
('("REOPENED" "OPEN") 'open)
278+
('(nil "OPEN") 'open)))
278279
(oset issue author .author.login)
279280
(oset issue title .title)
280281
(oset issue created .createdAt)

0 commit comments

Comments
 (0)