Skip to content

Commit

Permalink
🔄 synced local '.github/workflows/' with remote 'template_workflows/p…
Browse files Browse the repository at this point in the history
…roject_automation/'
  • Loading branch information
surchs committed Mar 22, 2024
1 parent bffa6ca commit 3f91059
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/handle_external_pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Label pull requests from forks

on:
pull_request:
pull_request_target:
types: [opened]

jobs:
Expand All @@ -12,13 +12,9 @@ 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"
run: gh pr edit ${{ github.event.pull_request.number }} -R ${{ github.repository }} --add-label "_community"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3f91059

Please sign in to comment.