From a1b28c8cbba73ce66401113116511e8f81f4a9bb Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62367544+tilucasoli@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:53:14 -0300 Subject: [PATCH] Update add_label.yml --- .github/workflows/add_label.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/add_label.yml b/.github/workflows/add_label.yml index d13846a16..bada4f878 100644 --- a/.github/workflows/add_label.yml +++ b/.github/workflows/add_label.yml @@ -17,6 +17,13 @@ jobs: - uses: actions/github-script@v7 with: script: | + github.rest.issues.removeLabel({ + issue_number: issue_num, + owner: context.repo.owner, + repo: context.repo.repo, + name: ["mix", "mix_lint", "mix_annotations", "mix_generator", "documentation", "examples", "repo"] + }) + const { execSync } = require('child_process') const { commits } = context.payload.pull_request const rawFiles = execSync(`git diff --name-only HEAD HEAD~${commits}`).toString()