Skip to content

Commit

Permalink
changes by coderabbitai
Browse files Browse the repository at this point in the history
  • Loading branch information
SGI-CAPP-AT2 authored Nov 2, 2024
1 parent ca94d59 commit 8cf9c9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ jobs:
script: |
const { owner, repo } = context.repo;
const issue_number = context.issue.number;
const labels = await github.rest.issues.listLabelsOnIssue({
const apiParams = {
owner,
repo,
issue_number
});
};
const labels = await github.rest.issues.listLabelsOnIssue(apiParams);
if(labels.data.reduce((a, c)=>a||["dependencies"].includes(c.name), false))
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ["good first issue", "security"]
labels: ["good first issue", "security"]
});
else if(labels.data.reduce((a, c)=>a||["security", "ui/ux"].includes(c.name), false))
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ["good first issue"]
labels: ["good first issue"]
});
Expand Down

0 comments on commit 8cf9c9b

Please sign in to comment.