diff --git a/.github/workflows/assign-on-label.yml b/.github/workflows/assign-on-label.yml index b7402b1c13c..d978fcc7275 100644 --- a/.github/workflows/assign-on-label.yml +++ b/.github/workflows/assign-on-label.yml @@ -1,4 +1,4 @@ -name: "Add Assignee when is labeled with 'A: In progress'" +name: "Assign when the issue is labeled with 'A: In progress'" on: issues: diff --git a/.github/workflows/change-on-reopen.yml b/.github/workflows/change-on-reopen.yml index faa82134ab0..dc709e15193 100644 --- a/.github/workflows/change-on-reopen.yml +++ b/.github/workflows/change-on-reopen.yml @@ -1,4 +1,4 @@ -name: "Remove status labels and assignee when issue is reopened" +name: "Remove status labels and assignee when the issue is reopened" on: issues: diff --git a/.github/workflows/rm-labels-on-closed.yml b/.github/workflows/rm-labels-on-closed.yml index a5b4379c3aa..c6d05fb34a2 100644 --- a/.github/workflows/rm-labels-on-closed.yml +++ b/.github/workflows/rm-labels-on-closed.yml @@ -1,4 +1,4 @@ -name: "Remove 'A: In Progress' labels when issue is closed" +name: "Remove 'A: In Progress' labels when the issue is closed" on: issues: @@ -8,7 +8,7 @@ jobs: remove_label: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -16,7 +16,7 @@ jobs: const repo = context.repo.repo; const issueNumber = context.issue.number; - var issueLabelsRaw = await github.issues.listLabelsOnIssue({ + var issueLabelsRaw = await github.rest.issues.listLabelsOnIssue({ owner, repo, issue_number: issueNumber, @@ -27,7 +27,8 @@ jobs: const labelsToRemove = [ 'A: In progress' ]; for (let label of labelsToRemove) { if (issueLabels.includes(label)) { - github.issues.removeLabel({ + console.log(`Removing ${label} from #${issueNumber}`); + await github.rest.issues.removeLabel({ owner, repo, issue_number: issueNumber,