mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-16 11:33:07 +00:00
Safety net dual com agent:ready: no merge em main, workflow lê Related #N e promove Issues ainda aguardando plano (canPromotePlanIssue), soft-skip idempotente. Helper parseRelatedIssueNumbers + pins unitários. Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
31 lines
1,011 B
YAML
31 lines
1,011 B
YAML
# Safety net OPS18: when a PR merges to main with `Related #N`, promote Issues
|
|
# that are still awaiting their intention plan (`blocked` + docs/plans/ link)
|
|
# to `ready`. Idempotent with `pnpm agent:ready` (agent happy path).
|
|
#
|
|
# Does NOT run on open PRs — only after merge — so the claim race stays closed.
|
|
name: Promote plan-issue Related on main merge
|
|
|
|
on:
|
|
pull_request:
|
|
types: [closed]
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: read
|
|
contents: read
|
|
|
|
jobs:
|
|
plan-issue-ready:
|
|
if: github.event.pull_request.base.ref == 'main' && github.event.pull_request.merged == true
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 24
|
|
- name: Promote Related #N awaiting plan → ready
|
|
run: node scripts/agent-promote-related-on-merge.mjs --pr "$PR_NUMBER"
|