Skip to content

Commit

Permalink
Merge branch 'main' into code-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjaliavv51 authored Jul 29, 2024
2 parents 29e1021 + b644674 commit 0c9bde7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-gssoc-label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Auto Label PR

on:
pull_request:
types: [opened, reopened, synchronize,edited]
types: [opened, reopened, synchronize]

jobs:
label_pr:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/auto-label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
const issue = context.payload.issue;
const issueBody = issue.body ? issue.body.toLowerCase() : '';
const issueTitle = issue.title.toLowerCase();
const addLabel = async (label) => {
await github.rest.issues.addLabels({
owner: context.repo.owner,
Expand All @@ -30,8 +29,10 @@ jobs:
if (issueBody.includes('documentation') || issueTitle.includes('doc') || issueBody.includes('readme')) {
await addLabel('documentation');
}
if (issueBody.includes('feature') || issueBody.includes('enhancement') || issueTitle.includes('add') || issueTitle.includes('implement')) {
await addLabel('enhancement');
}
if (issueBody.includes('bug') || issueBody.includes('fix') || issueTitle.includes('fix') || issueTitle.includes('resolve')) {
await addLabel('bug');
Expand Down

0 comments on commit 0c9bde7

Please sign in to comment.