From ee897f11beede89f3a1796afd9e24345c73d10cd Mon Sep 17 00:00:00 2001 From: Felicity Chapman Date: Tue, 17 Oct 2023 09:44:16 +0100 Subject: [PATCH] Update `/remove` command to also remove the `docs-content-fr` label (#44318) --- .github/workflows/remove-from-fr-board.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/remove-from-fr-board.yaml b/.github/workflows/remove-from-fr-board.yaml index 9cf3a4b4a9..9649f51109 100644 --- a/.github/workflows/remove-from-fr-board.yaml +++ b/.github/workflows/remove-from-fr-board.yaml @@ -1,6 +1,7 @@ name: Remove card from FR board -# **What it does**: Removes the triggering issue or PR from the docs-content first responder board. This workflow is expected to trigger from a slash command. +# **What it does**: Removes the triggering issue or PR from the docs-content first responder board. +# Also removes the `docs-content-fr` label. This workflow is expected to trigger from a slash command. # **Why we have it**: To help with first responder duties # **Who does it impact**: Docs-content team first responders @@ -18,13 +19,13 @@ jobs: steps: - name: Remove issue from board if: ${{ github.event.client_payload.command.resource.type == 'Issue' }} - run: gh issue edit "$ISSUE_URL" --remove-project "Docs content first responder" + run: gh issue edit "$ISSUE_URL" --remove-project "Docs content first responder" --remove-label "docs-content-fr" env: GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}} ISSUE_URL: https://github.com/${{ github.event.client_payload.command.repository.full_name }}/issues/${{ github.event.client_payload.command.resource.number }} - name: Remove PR from board if: ${{ github.event.client_payload.command.resource.type == 'PullRequest' }} - run: gh pr edit "$PR_URL" --remove-project "Docs content first responder" + run: gh pr edit "$PR_URL" --remove-project "Docs content first responder" --remove-label "docs-content-fr" env: GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}} PR_URL: https://github.com/${{ github.event.client_payload.command.repository.full_name }}/pull/${{ github.event.client_payload.command.resource.number }}