Skip to content

Commit

Permalink
🔄 synced file(s) with neurobagel/workflows (#92)
Browse files Browse the repository at this point in the history
* 🔄 synced local '.github/workflows/' with remote 'template_workflows/project_automation/'

* 🔄 synced local '.github/pull_request_template.md' with remote 'template_prs/auto_release_repo_pr.md'

* 🔄 synced local '.github/workflows/build_docker_on_release.yml' with remote 'template_workflows/auto_release/build_docker_on_release.yml'

* Ran prettier

---------

Co-authored-by: surchs <null>
Co-authored-by: rmanaem <[email protected]>
  • Loading branch information
surchs and rmanaem authored Mar 21, 2024
1 parent 4379af8 commit c890a4a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/handle_external_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Label pull requests from forks

on:
pull_request:
types: [opened]

jobs:
handle_external_pr:
# Only run this entire workflow if the PR was opened from a forked repo
# The reasoning is that both bots and external contributors have to make
# a fork of the repo before they can open a PR because they don't have
# 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"

0 comments on commit c890a4a

Please sign in to comment.