File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ export default {
30
30
icon () {
31
31
if (this .issue .pull_request !== null ) {
32
32
if (this .issue .state === ' open' ) {
33
+ if (this .issue .pull_request .draft === true ) {
34
+ return ' octicon-git-pull-request-draft' ; // Draft PR
35
+ }
33
36
return ' octicon-git-pull-request' ; // Open PR
34
37
} else if (this .issue .pull_request .merged === true ) {
35
38
return ' octicon-git-merge' ; // Merged PR
@@ -42,12 +45,17 @@ export default {
42
45
},
43
46
44
47
color () {
48
+ if (this .issue .pull_request !== null ) {
49
+ if (this .issue .pull_request .draft === true ) {
50
+ return ' grey' ; // Draft PR
51
+ } else if (this .issue .pull_request .merged === true ) {
52
+ return ' purple' ; // Merged PR
53
+ }
54
+ }
45
55
if (this .issue .state === ' open' ) {
46
- return ' green' ;
47
- } else if (this .issue .pull_request !== null && this .issue .pull_request .merged === true ) {
48
- return ' purple' ;
56
+ return ' green' ; // Open Issue
49
57
}
50
- return ' red' ;
58
+ return ' red' ; // Closed Issue
51
59
},
52
60
53
61
labels () {
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import octiconGitBranch from '../../public/assets/img/svg/octicon-git-branch.svg
33
33
import octiconGitCommit from '../../public/assets/img/svg/octicon-git-commit.svg' ;
34
34
import octiconGitMerge from '../../public/assets/img/svg/octicon-git-merge.svg' ;
35
35
import octiconGitPullRequest from '../../public/assets/img/svg/octicon-git-pull-request.svg' ;
36
+ import octiconGitPullRequestDraft from '../../public/assets/img/svg/octicon-git-pull-request-draft.svg' ;
36
37
import octiconHeading from '../../public/assets/img/svg/octicon-heading.svg' ;
37
38
import octiconHorizontalRule from '../../public/assets/img/svg/octicon-horizontal-rule.svg' ;
38
39
import octiconImage from '../../public/assets/img/svg/octicon-image.svg' ;
@@ -104,6 +105,7 @@ const svgs = {
104
105
'octicon-git-commit' : octiconGitCommit ,
105
106
'octicon-git-merge' : octiconGitMerge ,
106
107
'octicon-git-pull-request' : octiconGitPullRequest ,
108
+ 'octicon-git-pull-request-draft' : octiconGitPullRequestDraft ,
107
109
'octicon-heading' : octiconHeading ,
108
110
'octicon-horizontal-rule' : octiconHorizontalRule ,
109
111
'octicon-image' : octiconImage ,
You can’t perform that action at this time.
0 commit comments