mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
wip
This commit is contained in:
parent
9e7ea4913a
commit
7e8217192e
1 changed files with 24 additions and 24 deletions
48
.github/workflows/pr-reply.yml
vendored
48
.github/workflows/pr-reply.yml
vendored
|
@ -6,31 +6,31 @@
|
|||
# - Also show the advanced usage link: https://github.com/louislam/uptime-kuma/wiki/Test-Pull-Requests
|
||||
name: Reply to PRs
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened]
|
||||
pull_request_target:
|
||||
types: [ opened, reopened ]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
reply:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Reply to PR
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const pr = context.payload.pull_request;
|
||||
const message = `Hello @${pr.user.login}, thank you for your contribution! :tada:\n` +
|
||||
`The maintainers will review your PR soon.\n\n` +
|
||||
`If anyone would like to help test this PR, you can use the command:\n` +
|
||||
`\`\`\`bash\nnpx kuma-pr ${pr.user.login}:${pr.head.ref}\n\`\`\`\n\n` +
|
||||
`<sub> For advanced usage, please refer to our [wiki](https://github.com/louislam/uptime-kuma/wiki/Test-Pull-Requests) </sub>`;
|
||||
await github.rest.issues.createComment({
|
||||
issue_number: pr.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: message
|
||||
});
|
||||
reply:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Reply to PR
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const pr = context.payload.pull_request;
|
||||
const message = `Hello @${pr.user.login}, thank you for your contribution! :tada:\n` +
|
||||
`The maintainers will review your PR soon.\n\n` +
|
||||
`If anyone would like to help test this PR, you can use the command:\n` +
|
||||
`\`\`\`bash\nnpx kuma-pr ${pr.user.login}:${pr.head.ref}\n\`\`\`\n\n` +
|
||||
`<sub> For advanced usage, please refer to our [wiki](https://github.com/louislam/uptime-kuma/wiki/Test-Pull-Requests) </sub>`;
|
||||
await github.rest.issues.createComment({
|
||||
issue_number: pr.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: message
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue