-
Notifications
You must be signed in to change notification settings - Fork 75
40 lines (33 loc) · 1.19 KB
/
on-pr-close.yaml
File metadata and controls
40 lines (33 loc) · 1.19 KB
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
34
35
36
37
38
39
40
name: Bot - On PR Close
# Runs on PR close (merged). Executes issue recommendation workflow:
# determines completed issue difficulty, finds next/same/fallback issues,
# and posts a recommendation comment via bot-on-pr-close.js.
on:
pull_request_target:
types: [closed]
permissions:
pull-requests: write
issues: write
contents: read
jobs:
on-pr-close:
runs-on: hiero-client-sdk-linux-large
if: github.event.pull_request.merged == true
concurrency:
group: on-pr-close-${{ github.event.pull_request.number }}
cancel-in-progress: true
steps:
- name: Harden Runner
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.repository.default_branch }}
- name: Run PR Close Handler
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const script = require('./.github/scripts/bot-on-pr-close.js');
await script({ github, context });