Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/pr-ready-queue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ci-policy: class=gate
# Thin caller of the shared pr-ready check, merge-queue half (CHE-3440). Same content in every active repo; logic in
# cheese-work/multica-dotfiles/.github/workflows/pr-ready-reusable-queue.yml (multica-dotfiles). Same job id `pr-ready` as pr-ready.yml, so both events
# produce one required context. SECURITY: GitHub runs a merge_group workflow from the queue commit, so a queued PR can
# edit this caller; see the reusable workflow and docs/pr-ready.md.
name: pr-ready-queue

on:
merge_group:
types: [checks_requested]

permissions:
contents: read
pull-requests: read
issues: read

concurrency:
group: pr-ready-queue-${{ github.event.merge_group.head_sha }}
cancel-in-progress: true

jobs:
pr-ready:
uses: cheese-work/multica-dotfiles/.github/workflows/pr-ready-reusable-queue.yml@main
25 changes: 25 additions & 0 deletions .github/workflows/pr-ready-recheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ci-policy: class=gate
# Thin caller of the shared pr-ready check, verdict-change half (CHE-3440). Same content in every active repo; logic in
# cheese-work/multica-dotfiles/.github/workflows/pr-ready-reusable-recheck.yml (multica-dotfiles). SECURITY: `issue_comment` runs this file from the default
# branch; the comment body is never read here, only the author id.
name: pr-ready-recheck

on:
issue_comment:
types: [created, edited, deleted]

permissions:
contents: read
pull-requests: read
issues: read
actions: write
checks: write

concurrency:
group: pr-ready-recheck-${{ github.event.issue.number }}
cancel-in-progress: false

jobs:
recheck:
if: github.event.issue.pull_request && github.event.comment.user.id == 282619718
uses: cheese-work/multica-dotfiles/.github/workflows/pr-ready-reusable-recheck.yml@main
25 changes: 25 additions & 0 deletions .github/workflows/pr-ready.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ci-policy: class=gate
# Thin caller of the shared pr-ready check (CHE-3440). Same content in every active repo; the logic lives in
# cheese-work/multica-dotfiles/.github/workflows/pr-ready-reusable-pr.yml (multica-dotfiles). Pinned to `main` until the first merge; then pin both this ref
# and the action ref inside the reusable workflow to the merge commit. See docs/pr-ready.md in multica-dotfiles.
# SECURITY: `pull_request_target` runs this file from the default branch, so a PR cannot edit it. No checkout, no secret.
name: pr-ready
# The recheck workflow finds this PR's run by this name (two PRs can share one head SHA).
run-name: pr-ready-${{ github.event.pull_request.number }}

on:
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]

permissions:
contents: read
pull-requests: read
issues: read

concurrency:
group: pr-ready-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
pr-ready:
uses: cheese-work/multica-dotfiles/.github/workflows/pr-ready-reusable-pr.yml@main
Loading