Skip to content

Commit

Permalink
πŸ”„ synced file(s) with neurobagel/workflows (#702)
Browse files Browse the repository at this point in the history
πŸ”„ synced local '.github/workflows/' with remote 'template_workflows/project_automation/'

Co-authored-by: surchs <null>
  • Loading branch information
surchs authored Mar 21, 2024
1 parent 51da000 commit bffa6ca
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
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"
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
stale-issue-message: |
We want to keep our issues up to date and active. This issue hasn't seen any activity in the last 75 days.
Expand Down

0 comments on commit bffa6ca

Please sign in to comment.