Skip to content

Commit

Permalink
gitHub issues error
Browse files Browse the repository at this point in the history
  • Loading branch information
eKathleenCarter committed Oct 28, 2024
1 parent 24d3c91 commit 7423a00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/labe-predicate-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ jobs:
const containsKeyword = (text) => {
return keywords.some(keyword => text.toLowerCase().includes(keyword.toLowerCase()));
};
if (containsKeyword(item.title) || containsKeyword(item.body)) {
// Add label if keywords found
await github.issues.addLabels({
...context.repo,
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: number,
labels: [labelName]
});
Expand Down

0 comments on commit 7423a00

Please sign in to comment.