mirror of
https://github.com/System-End/YSWS-Catalog.git
synced 2026-04-19 14:27:00 +00:00
Create main.yml
This commit is contained in:
parent
b3767a46a7
commit
c20bdbd254
1 changed files with 24 additions and 0 deletions
24
.github/workflows/main.yml
vendored
Normal file
24
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Auto request reviewer
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, reopened, ready_for_review]
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
request:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Request review from @mntrushmore
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const reviewers = ['mntrushmore']
|
||||
const {owner, repo} = context.repo
|
||||
const pull_number = context.payload.pull_request.number
|
||||
await github.request('POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers', {
|
||||
owner, repo, pull_number, reviewers
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue