-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Review Probot PRs | ||
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
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' | ||
}); | ||
Check warning Code scanning / CodeQL Workflow does not contain permissions Medium
Actions Job or Workflow does not set permissions
|