File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -28078,8 +28078,10 @@ function run() {
2807828078 console.log("Keywords not included in this issue");
2807928079 }
2808028080 else {
28081- github.setIssueAssignees(winningAreaData.assignees);
28082- github.setIssueLabels(winningAreaData.labels);
28081+ if (winningAreaData.assignees)
28082+ github.setIssueAssignees(winningAreaData.assignees);
28083+ if (winningAreaData.labels)
28084+ github.setIssueLabels(winningAreaData.labels);
2808328085 core.setOutput("labeled", true.toString());
2808428086 core.setOutput("assigned", true.toString());
2808528087 }
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ async function run() {
1515 if ( winningAreaData . area === '' ) {
1616 console . log ( "Keywords not included in this issue" ) ;
1717 } else {
18- github . setIssueAssignees ( winningAreaData . assignees ) ;
19- github . setIssueLabels ( winningAreaData . labels ) ;
18+ if ( winningAreaData . assignees ) github . setIssueAssignees ( winningAreaData . assignees ) ;
19+ if ( winningAreaData . labels ) github . setIssueLabels ( winningAreaData . labels ) ;
2020 core . setOutput ( "labeled" , true . toString ( ) ) ;
2121 core . setOutput ( "assigned" , true . toString ( ) ) ;
2222 }
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import levenshtein from 'js-levenshtein';
44export interface IParameter {
55 area : string ;
66 keywords : string [ ] ;
7- labels : string [ ] ;
8- assignees : string [ ] ;
7+ labels ? : string [ ] ;
8+ assignees ? : string [ ] ;
99}
1010
1111export class Issue {
You can’t perform that action at this time.
0 commit comments