Skip to content

Commit

Permalink
feat: add workflow to give CI request for review
Browse files Browse the repository at this point in the history
* closed #18
  • Loading branch information
CodeChenL committed Jun 17, 2024
1 parent 912ae8a commit 3ea52c1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci-request-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Request review for CI files

on:
pull_request_target:
types:
- opened
- reopened
- synchronize
paths:
- '.github/actions/**/*.yaml'
- '.github/workflows/*.yaml'

permissions:
pull-requests: write

jobs:
request-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |-
const reviewers = ['RadxaYuntian'];
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
reviewers: reviewers
});

0 comments on commit 3ea52c1

Please sign in to comment.