-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 880 Bytes
/
advice.yml
File metadata and controls
33 lines (30 loc) · 880 Bytes
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
32
33
name: Advice
on:
pull_request_target:
types:
- opened
- ready_for_review
defaults:
run:
shell: bash
jobs:
notify:
if: >
github.event.pull_request.draft == false &&
!(github.event.pull_request.user.login == 'Copilot' && github.event.pull_request.user.type == 'Bot')
runs-on: ubuntu-slim
timeout-minutes: 10
permissions:
pull-requests: write # advice.js comments on PRs
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout: |
.github
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const script = require(
`${process.env.GITHUB_WORKSPACE}/.github/workflows/advice.js`
);
await script({ context, github });