generated from JacobPEvans/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add full AI workflow suite #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: AI Workflows | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request_review: | ||
| types: [submitted] | ||
| check_suite: | ||
| types: [completed] | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
| inputs: | ||
| commit_sha: | ||
| description: "Commit SHA to review (leave blank for latest main)" | ||
| required: false | ||
| type: string | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| # Push to main -> re-dispatch as workflow_dispatch so post-merge suites | ||
| # can use the commit SHA via inputs.commit_sha (workflow_run context workaround). | ||
| post-merge-dispatch: | ||
| if: github.event_name == 'push' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: write | ||
| steps: | ||
| - name: Re-trigger as workflow_dispatch | ||
| env: | ||
| WORKFLOW_NAME: ${{ github.workflow }} | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh workflow run "$WORKFLOW_NAME" \ | ||
| --repo "${{ github.repository }}" \ | ||
| --ref main \ | ||
| -f commit_sha="${{ github.sha }}" | ||
JacobPEvans marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # All non-push events -> suite-all routes to correct sub-suite | ||
| all: | ||
| if: github.event_name != 'push' | ||
| permissions: | ||
| actions: read | ||
| checks: read | ||
| contents: write | ||
| id-token: write | ||
| issues: write | ||
| pull-requests: write | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/suite-all.yml@v0.8.0 | ||
| with: | ||
| caller_event: ${{ github.event_name }} | ||
| review_prompt: "Focus on Claude Code plugin structure, skill authoring patterns, and hook configuration best practices" | ||
| commit_sha: ${{ inputs.commit_sha || github.sha }} | ||
| secrets: inherit | ||
JacobPEvans marked this conversation as resolved.
Show resolved
Hide resolved
JacobPEvans marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: AI CI | ||
|
|
||
| on: | ||
| workflow_run: | ||
| workflows: ["Validate Claude Code Plugin"] | ||
| types: [completed] | ||
|
|
||
| permissions: | ||
JacobPEvans marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| actions: read | ||
| contents: write | ||
| id-token: write | ||
| issues: write | ||
| pull-requests: write | ||
JacobPEvans marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| concurrency: | ||
| group: ai-ci-${{ github.event.workflow_run.head_branch }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| ci-suite: | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/suite-ci.yml@v0.8.0 | ||
| with: | ||
| repo_context: "Claude Code plugins: skills, hooks, and slash commands for Claude Code CLI" | ||
| ci_structure: "validate-plugin.yml (JSON schema validation for plugin manifests)" | ||
| workflow_name: "Validate Claude Code Plugin" | ||
| secrets: inherit | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Best Practices | ||
| on: | ||
| schedule: | ||
| - cron: "0 3 * * 2,5" | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| pull-requests: write | ||
| jobs: | ||
| best-practices: | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/best-practices.yml@v0.8.0 | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Code Simplifier | ||
| on: | ||
| schedule: | ||
| - cron: "0 4 * * 0,3,6" | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| pull-requests: write | ||
|
|
||
| concurrency: | ||
| group: code-simplifier | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| simplify: | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/code-simplifier.yml@v0.8.0 | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: Issue Auto-Resolve | ||
|
|
||
| on: | ||
| issues: | ||
| types: [opened, labeled] | ||
| workflow_dispatch: | ||
| inputs: | ||
| issue_number: | ||
| description: "Issue number to resolve" | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: | ||
| actions: write | ||
| contents: write | ||
| id-token: write | ||
| issues: write | ||
| pull-requests: write | ||
JacobPEvans marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| dispatch: | ||
| if: github.event_name == 'issues' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: write | ||
| issues: write | ||
| steps: | ||
| - name: Dispatch as workflow_dispatch | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| WORKFLOW_NAME: ${{ github.workflow }} | ||
| REPO: ${{ github.repository }} | ||
| ISSUE_NUM: ${{ github.event.issue.number }} | ||
| EVENT_ACTION: ${{ github.event.action }} | ||
| LABEL_NAME: ${{ github.event.label.name }} | ||
| run: | | ||
| # Filter labeled events to only ai:ready | ||
| if [[ "$EVENT_ACTION" == "labeled" && "$LABEL_NAME" != "ai:ready" ]]; then | ||
| echo "Label '$LABEL_NAME' is not ai:ready — skipping" | ||
| exit 0 | ||
| fi | ||
|
|
||
| # Daily dispatch limit (cost control safety valve) | ||
| TODAY=$(date -u +%Y-%m-%d) | ||
| COUNT=$(gh run list \ | ||
| --workflow "$WORKFLOW_NAME" \ | ||
| --repo "$REPO" \ | ||
| --event workflow_dispatch \ | ||
| --created ">=$TODAY" \ | ||
| --json databaseId --jq 'length') | ||
| if [[ "$COUNT" -ge 5 ]]; then | ||
| echo "Daily dispatch limit reached ($COUNT/5) — skipping" | ||
JacobPEvans marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| exit 0 | ||
| fi | ||
|
|
||
| # Remove ai:ready label so it can be re-applied to re-trigger | ||
| if [[ "$EVENT_ACTION" == "labeled" && "$LABEL_NAME" == "ai:ready" ]]; then | ||
| gh issue edit "$ISSUE_NUM" --repo "$REPO" --remove-label "ai:ready" || true | ||
| fi | ||
|
|
||
| gh workflow run "$WORKFLOW_NAME" \ | ||
| --repo "$REPO" \ | ||
| -f issue_number="$ISSUE_NUM" | ||
|
|
||
| run-triage: | ||
| if: github.event_name == 'workflow_dispatch' | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/issue-triage.yml@v0.8.0 | ||
| secrets: inherit | ||
| with: | ||
| issue_number: ${{ inputs.issue_number }} | ||
|
|
||
| resolve-issue: | ||
| needs: [run-triage] | ||
| if: >- | ||
| always() && | ||
| github.event_name == 'workflow_dispatch' && | ||
| (needs.run-triage.result == 'success' || needs.run-triage.result == 'skipped') | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/issue-resolver.yml@v0.8.0 | ||
| secrets: inherit | ||
| with: | ||
| repo_context: "Claude Code plugins: skills, hooks, and slash commands for Claude Code CLI" | ||
| issue_number: ${{ inputs.issue_number }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Issue Hygiene | ||
| on: | ||
| schedule: | ||
| - cron: "0 7 * * 0" | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| issues: write | ||
| pull-requests: read | ||
| jobs: | ||
| hygiene: | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/issue-hygiene.yml@v0.8.0 | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Issue Sweeper | ||
| on: | ||
| schedule: | ||
| - cron: "0 6 * * 0" | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| issues: write | ||
| pull-requests: read | ||
| jobs: | ||
| sweep: | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/issue-sweeper.yml@v0.8.0 | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: Next Steps | ||
| on: | ||
| schedule: | ||
| - cron: "0 5 * * 1,4" | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| pull-requests: write | ||
| issues: write | ||
|
|
||
| concurrency: | ||
| group: next-steps | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| next-steps: | ||
| uses: JacobPEvans/ai-workflows/.github/workflows/next-steps.yml@v0.8.0 | ||
| secrets: inherit |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.