-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.45 KB
/
Copy pathauto-ready.yml
File metadata and controls
44 lines (39 loc) · 1.45 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
41
42
43
44
name: Auto-ready unblocked issues
# When an issue closes, any issue it was blocking whose blockers are now ALL
# closed is promoted Backlog -> Ready on the Plotnik project board.
#
# Projects has no built-in automation for dependency-driven status changes, so
# this "blocker -> Ready" leg lives here. The "issue closed -> Done" leg is
# handled by the project's built-in "Item closed" workflow.
#
# Logic lives in .github/scripts/auto_ready.py (GraphQL-only, stdlib-only).
on:
issues:
types: [closed]
# Manual hook for testing / re-running against an already-closed issue.
workflow_dispatch:
inputs:
issue_number:
description: Closed issue whose now-unblocked dependents should be promoted
required: true
permissions:
contents: read
concurrency:
group: auto-ready
cancel-in-progress: false
jobs:
promote:
runs-on: ubuntu-latest
env:
# PAT needs org Projects (read & write) + repo Issues (read). The default
# GITHUB_TOKEN cannot write an org-owned Projects v2 board.
GH_TOKEN: ${{ secrets.PLOTNIK_PAT }}
OWNER: plotnik-lang
REPO_NAME: plotnik
PROJECT_ID: PVT_kwDODsGSMc4BafFQ
STATUS_FIELD_ID: PVTSSF_lADODsGSMc4BafFQzhVWXyw
READY_OPTION: 61e4505c
CLOSED_ISSUE: ${{ github.event.issue.number || github.event.inputs.issue_number }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: python3 .github/scripts/auto_ready.py