File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ describe(addCommentToUncommittedPRs, () => {
67
67
expect ( mockAPI . issues . createComment ) . not . toHaveBeenCalled ( )
68
68
} )
69
69
70
- for ( const allowed of [ "Experience Enhancement" , "Committed" , "help wanted" ] ) {
70
+ for ( const allowed of [ "Experience Enhancement" , "Committed" , "Help Wanted" , " help wanted"] ) {
71
71
it ( "Does not add a comment to an uncommented PR linked to a suggestion with the label " + allowed , async ( ) => {
72
72
const { mockAPI, api } = createMockGitHubClient ( )
73
73
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ export const addCommentToUncommittedPRs = async (api: Octokit, payload: PullRequ
25
25
else {
26
26
const isSuggestion = info . relatedIssues . some ( issue => issue . labels ?. find ( l => {
27
27
const name = typeof l === "string" ? l : l . name ;
28
- return name === "Suggestion "
28
+ return name ?. toLowerCase ( ) === "suggestion "
29
29
} ) )
30
30
const isCommitted = info . relatedIssues . some ( issue => issue . labels ?. find ( l => {
31
31
const name = typeof l === "string" ? l : l . name ;
32
- return name === "Committed " || name === "Experience Enhancement " || name === "help wanted"
32
+ return name ?. toLowerCase ( ) === "committed " || name ?. toLowerCase ( ) === "experience enhancement " || name ?. toLowerCase ( ) === "help wanted"
33
33
} ) )
34
34
35
35
if ( isSuggestion && ! isCommitted ) {
You can’t perform that action at this time.
0 commit comments