Skip to content

Commit 178de17

Browse files
committed
fix: add draft state for PRs (fixes #205)
1 parent d641422 commit 178de17

File tree

5 files changed

+211
-44
lines changed

5 files changed

+211
-44
lines changed

images/pull-wip.png

2.79 KB
Loading

images/pull-wip.svg

Lines changed: 12 additions & 0 deletions
Loading

package-lock.json

Lines changed: 195 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"stylelint": "^13.8.0",
5050
"stylelint-config-standard": "^20.0.0",
5151
"stylelint-no-unsupported-browser-features": "^4.1.4",
52-
"web-ext": "^5.4.1"
52+
"web-ext": "^5.5.0"
5353
},
5454
"stylelint": {
5555
"extends": "stylelint-config-standard",

scripts/handler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class ClientHandler extends window.Storage {
3535
if(notification.subjectDetails.merged) {
3636
return "images/pull-merged.";
3737
}
38+
if(notification.subjectDetails.draft && notification.subjectDetails.state === 'open') {
39+
return "images/pull-wip.";
40+
}
3841

3942
return `images/pull-${notification.subjectDetails.state}.`;
4043
}

0 commit comments

Comments
 (0)