-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These will run on every PR, unlike tests, and will use pull_request_target to get access to secrets
- Loading branch information
Showing
4 changed files
with
35 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
name: Pull requests | ||
|
||
on: | ||
pull_request_target: # Default: ['opened', 'synchronize', 'reopened'] | ||
types: ["opened", "synchronize", "reopened", "ready_for_review"] | ||
|
||
jobs: | ||
labeller: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 | ||
|
||
deployment_on_base: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for previous deployment on base | ||
run: | | ||
[[ $( | ||
curl https://api.github.com/repos/${{ github.repository }}/releases | | ||
jq '.[].target_commitish == "${{ github.event.pull_request.base.ref }}"' | | ||
grep true | wc -l | ||
) != 0 ]] | ||
assign: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.assignee == null | ||
|
||
steps: | ||
- name: Assign reviewer | ||
uses: kentaro-m/[email protected] | ||
with: | ||
repo-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