From 1a92fc050dc84fca1256a6eabc074a4e1405e4fd Mon Sep 17 00:00:00 2001 From: surchs Date: Thu, 21 Mar 2024 23:08:08 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'.github/workfl?= =?UTF-8?q?ows/'=20with=20remote=20'template=5Fworkflows/project=5Fautomat?= =?UTF-8?q?ion/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/handle_external_pr.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/handle_external_pr.yml b/.github/workflows/handle_external_pr.yml index 13c059d..38bdf2f 100644 --- a/.github/workflows/handle_external_pr.yml +++ b/.github/workflows/handle_external_pr.yml @@ -4,6 +4,9 @@ on: pull_request: types: [opened] +permissions: + pull-requests: write + jobs: handle_external_pr: # Only run this entire workflow if the PR was opened from a forked repo @@ -12,13 +15,10 @@ jobs: # write access to the repo. if: github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest - env: - GH_TOKEN: ${{ secrets.NB_PROJECT_PAT }} steps: - - name: Add PR to project - run: | - gh pr edit ${{ github.event.pull_request.url }} --add-project Neurobagel - - name: Label pull request with "_community" run: gh pr edit ${{ github.event.pull_request.number }} --add-label "_community" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} \ No newline at end of file