diff --git a/.github/workflows/add-gssoc-label-pr.yml b/.github/workflows/add-gssoc-label-pr.yml index de174e0..a470dea 100644 --- a/.github/workflows/add-gssoc-label-pr.yml +++ b/.github/workflows/add-gssoc-label-pr.yml @@ -2,7 +2,7 @@ name: Auto Label PR on: pull_request: - types: [opened, reopened, synchronize,edited] + types: [opened, reopened, synchronize] jobs: label_pr: diff --git a/.github/workflows/auto-label-issues.yml b/.github/workflows/auto-label-issues.yml index 8abb5ea..e9d91da 100644 --- a/.github/workflows/auto-label-issues.yml +++ b/.github/workflows/auto-label-issues.yml @@ -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, @@ -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');