From 598e4c858ad69cc218d89427d5b06187e574b782 Mon Sep 17 00:00:00 2001 From: Sebastian Urchs Date: Wed, 27 Mar 2024 23:30:22 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20file(s)=20with=20neurob?= =?UTF-8?q?agel/workflows=20(#133)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔄 synced local '.github/workflows/' with remote 'template_workflows/project_automation/' * 🔄 created local 'LICENSE' from remote 'template_configs/LICENSE' --------- Co-authored-by: surchs --- .github/workflows/handle_external_pr.yml | 20 ++++++++++++++++++++ .github/workflows/stale.yml | 2 +- LICENSE | 21 +++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/handle_external_pr.yml create mode 100644 LICENSE diff --git a/.github/workflows/handle_external_pr.yml b/.github/workflows/handle_external_pr.yml new file mode 100644 index 0000000..0b38841 --- /dev/null +++ b/.github/workflows/handle_external_pr.yml @@ -0,0 +1,20 @@ +name: Label pull requests from forks + +on: + pull_request_target: + 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 + + steps: + - name: Label pull request with "_community" + run: gh pr edit ${{ github.event.pull_request.number }} -R ${{ github.repository }} --add-label "_community" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 4e94a9b..5864127 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -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. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..aa94611 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 - Neurobagel Project, Origami Lab, McGill University. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file