2 changed files with 24 additions and 27 deletions
@ -0,0 +1,24 @@ |
|||||||
|
name: Review app hint |
||||||
|
|
||||||
|
on: |
||||||
|
pull_request: |
||||||
|
types: [opened] |
||||||
|
|
||||||
|
jobs: |
||||||
|
hint: |
||||||
|
name: Add review app hint |
||||||
|
if: "!contains(github.event.pull_request.labels.*.name, 'deploy-review')" |
||||||
|
runs-on: ubuntu-latest |
||||||
|
permissions: |
||||||
|
pull-requests: write |
||||||
|
steps: |
||||||
|
- name: Comment on PR |
||||||
|
uses: actions/github-script@v7 |
||||||
|
with: |
||||||
|
script: | |
||||||
|
await github.rest.issues.createComment({ |
||||||
|
owner: context.repo.owner, |
||||||
|
repo: context.repo.repo, |
||||||
|
issue_number: context.issue.number, |
||||||
|
body: 'To deploy a review app for this PR, add the `deploy-review` label.', |
||||||
|
}); |
||||||
Loading…
Reference in new issue