Skip to content
Closed
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
5 changes: 2 additions & 3 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: auto-approve

'on':
on:
pull_request_target:
types:
- labeled
Expand All @@ -18,6 +17,6 @@ jobs:
pull-requests: write
steps:
- name: Auto-Approve PR
uses: p6m7g8-actions/p6-gh-pr-auto-approve@main
uses: p6m7g8-actions/p6-gh-pr-approve@main
with:
bot_token: ${{ secrets.P6_A_GH_TOKEN }}
11 changes: 7 additions & 4 deletions .github/workflows/auto-queue.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
---
name: Enqueue PR to Merge Queue (after CI)

'on':
on:
# Build finishes well before Claude Code Review, so firing only on Build
# means the first enqueue always races a still-running `claude-review` and
# fails with "Required status check is in progress". Fire again when the
# slow lane finishes.
workflow_run:
workflows: ["Build"]
workflows: ["Build", "Claude Code Review"]
types: [completed]

jobs:
Expand All @@ -15,6 +18,6 @@ jobs:
pull-requests: write
steps:
- name: Enqueue PR
uses: p6m7g8-actions/p6-gh-pr-auto-enqueue@main
uses: p6m7g8-actions/p6-gh-pr-enqueue@main
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Claude Code Review
on:
pull_request:
types: [opened, ready_for_review, synchronize]
push:
branches:
- gh-readonly-queue/**
merge_group: {}

permissions:
contents: read
id-token: write
pull-requests: write

jobs:
claude-review:
runs-on: ubuntu-latest
steps:
- name: Skip on queue refs
if: github.event_name == 'merge_group' || github.event_name == 'push'
run: echo "Skipping review in queue context"
- name: Run claude review
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
continue-on-error: true
uses: p6m7g8-actions/p6-code-review@main
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
10 changes: 6 additions & 4 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
name: PR Labeler

'on':
on:
# No `labeled`/`unlabeled`. The labeler applies both labels in a single
# call now, so reacting to its own label events only self-triggers extra
# no-op runs.
pull_request_target:
types: [opened, synchronize, reopened, labeled, unlabeled]
types: [opened, synchronize, reopened]

jobs:
label:
Expand All @@ -14,6 +16,6 @@ jobs:
pull-requests: write
steps:
- name: Label PR
uses: p6m7g8-actions/p6-gh-pr-labeler@main
uses: p6m7g8-actions/p6-gh-pr-label@main
with:
gh_token: ${{ secrets.P6_A_GH_TOKEN }}
13 changes: 10 additions & 3 deletions .github/workflows/pull-request-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: pull-request-lint

'on':
on:
pull_request_target:
types:
- labeled
Expand All @@ -10,6 +9,10 @@ name: pull-request-lint
- reopened
- ready_for_review
- edited
push:
branches:
- gh-readonly-queue/**
merge_group: {}

jobs:
lint:
Expand All @@ -18,7 +21,11 @@ jobs:
permissions:
pull-requests: read
steps:
- name: Skip on queue refs
if: github.event_name == 'merge_group' || github.event_name == 'push'
run: echo "Skipping lint in queue context"
- name: Lint PR title
uses: p6m7g8-actions/p6-gh-pr-title-linter@main
if: github.event_name == 'pull_request_target'
uses: p6m7g8-actions/p6-gh-pr-title-lint@main
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Release

'on':
on:
push:
branches:
- main
Expand All @@ -14,6 +13,6 @@ jobs:
contents: write
steps:
- name: Release
uses: p6m7g8-actions/p6-gh-release@main
uses: p6m7g8-actions/p6-gh-release-cut@main
with:
gh_token: ${{ secrets.P6_A_GH_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: PR Labeler
name: Stale PRs

'on':
on:
workflow_dispatch: {}
schedule:
- cron: '0 14 * * *'
Expand All @@ -15,4 +14,4 @@ jobs:
pull-requests: write
steps:
- name: Mark PR
uses: p6m7g8-actions/p6-gh-pr-stale@main
uses: p6m7g8-actions/p6-gh-pr-expire@main
Loading