-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (27 loc) · 1.17 KB
/
review-probot-prs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Review Probot PRs
on:
pull_request:
types: [opened, reopened]
permissions:
contents: read
pull-requests: write
jobs:
bot:
runs-on: ubuntu-latest
steps:
- name: Post review
if: startsWith(github.event.pull_request.title, 'Bump probot') || startsWith(github.event.pull_request.title, 'Bump @probot')
uses: actions/[email protected]
with:
script: |
const pull_number = context.payload.pull_request.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
await github.request(`POST /repos/${owner}/${repo}/pulls/${pull_number}/reviews`, {
owner: owner,
repo: repo,
pull_number: pull_number,
body: '👋🏻🤖 The latest probot uses a newer octokit, which is not compatible with nock.\n\n' +
'The latest version of octokit uses [undici http client](https://github.com/nodejs/undici). Nock does not support undici. More details [here](https://github.com/nock/nock/issues/2183).',
event: 'REQUEST_CHANGES'
});