diff --git a/.github/workflows/external-plugin-approval-command.yml b/.github/workflows/external-plugin-approval-command.yml index 78b411d6f..36ab0b5a3 100644 --- a/.github/workflows/external-plugin-approval-command.yml +++ b/.github/workflows/external-plugin-approval-command.yml @@ -10,6 +10,7 @@ concurrency: permissions: issues: write + pull-requests: write jobs: sync-merged-pr-labels: @@ -25,20 +26,6 @@ jobs: const prNumber = context.payload.pull_request.number; const staleLabels = ['awaiting-review', 'awaiting-approval', 'ready-for-review', 'rejected']; - try { - await github.rest.issues.createLabel({ - owner: context.repo.owner, - repo: context.repo.repo, - name: 'approved', - color: '1D76DB', - description: 'Submission was approved by a maintainer' - }); - } catch (error) { - if (error.status !== 422) { - throw error; - } - } - const { data: currentLabels } = await github.rest.issues.listLabelsOnIssue({ owner: context.repo.owner, repo: context.repo.repo,