Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/checks/addCommentToUncommittedPRs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe(addCommentToUncommittedPRs, () => {
expect(mockAPI.issues.createComment).not.toHaveBeenCalled()
})

for (const allowed of ["Experience Enhancement", "Committed", "help wanted"]) {
for (const allowed of ["Experience Enhancement", "Committed", "Help Wanted", "help wanted"]) {
it("Does not add a comment to an uncommented PR linked to a suggestion with the label " + allowed, async () => {
const { mockAPI, api } = createMockGitHubClient()

Expand Down
4 changes: 2 additions & 2 deletions src/checks/addCommentToUncommittedPRs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export const addCommentToUncommittedPRs = async (api: Octokit, payload: PullRequ
else {
const isSuggestion = info.relatedIssues.some(issue => issue.labels?.find(l => {
const name = typeof l === "string" ? l : l.name;
return name === "Suggestion"
return name?.toLowerCase() === "suggestion"
}))
const isCommitted = info.relatedIssues.some(issue => issue.labels?.find(l => {
const name = typeof l === "string" ? l : l.name;
return name === "Committed" || name === "Experience Enhancement" || name === "help wanted"
return name?.toLowerCase() === "committed" || name?.toLowerCase() === "experience enhancement" || name?.toLowerCase() === "help wanted"
}))

if (isSuggestion && !isCommitted) {
Expand Down
Loading