Skip to content

Commit

Permalink
Case sensitive issue for label is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Advaitgaur004 authored Oct 23, 2024
1 parent 47ddf4f commit 801f3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bugbounty-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
repo: 'dev-playground',
issue_number: issueNumber[1],
});
if (issue.data.labels.some(label => label.name === 'bugbounty')) {
if (issue.data.labels.some(label => label.name.toLowerCase() === 'bugbounty')) {
await github.rest.issues.addLabels({
owner: 'devlup-labs',
repo: 'dev-playground',
Expand All @@ -46,7 +46,7 @@ jobs:
repo: 'dev-playground',
issue_number: issueNumber[1],
});
if (issue.data.labels.some(label => label.name === 'bugbounty')) {
if (issue.data.labels.some(label => label.name.toLowerCase() === 'bugbounty')) {
await github.rest.issues.addLabels({
owner: 'devlup-labs',
repo: 'dev-playground',
Expand Down

0 comments on commit 801f3b1

Please sign in to comment.