-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 synced local '.github/workflows/' with remote 'template_workflows/p…
…roject_automation/'
- Loading branch information
surchs
committed
Mar 22, 2024
1 parent
c4ce56b
commit 9f916e0
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters