Skip to content

feat: add PR meta and autofix workflows, remove redundant scripts - #47

Merged
stranske merged 5 commits into
mainfrom
feat/use-reusable-workflows
Dec 22, 2025
Merged

stranske merged 5 commits into
mainfrom
feat/use-reusable-workflows

Conversation

@stranske

Copy link
Copy Markdown
Owner
  • Add agents-pr-meta.yml for keepalive detection and dispatch
  • Add autofix.yml for automatic lint/format fixes
  • Remove .github/scripts/* (now fetched from stranske/Workflows via dual checkout)
  • Add README.md explaining the dual checkout pattern

This enables full agent automation with centralized script maintenance.

Summary

One sentence.

Checklist

  • Does NOT touch protected paths (schemas, policy, mapping,
    workflow docs, CI)
  • If schema changed: examples updated and CI is green
  • If policy-lite changed: rule IDs/messages updated
  • If mapping changed: cell refs updated in docs

Labels

Add stage:*, type:*, and size (XS/S/M/L).

Add stage:*, type:*, and size (XS/S/M/L).

- Add agents-pr-meta.yml for keepalive detection and dispatch
- Add autofix.yml for automatic lint/format fixes
- Remove .github/scripts/* (now fetched from stranske/Workflows via dual checkout)
- Add README.md explaining the dual checkout pattern

This enables full agent automation with centralized script maintenance.
Copilot AI review requested due to automatic review settings December 22, 2025 21:01
@github-actions github-actions Bot added the autofix:clean Autofix passed - no changes needed label Dec 22, 2025

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/agents-pr-meta.yml
Comment thread .github/workflows/autofix.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements centralized script maintenance by introducing two new agent automation workflows and removing local script files that are now fetched from the stranske/Workflows repository via a dual checkout pattern.

Key Changes:

  • Adds agents-pr-meta.yml workflow for detecting keepalive comments and dispatching agent continuation
  • Adds autofix.yml workflow for automatic lint and format fixes on pull requests
  • Removes 9 local JavaScript helper scripts from .github/scripts/ that are now centrally maintained

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
.github/workflows/agents-pr-meta.yml New workflow that delegates PR meta management (keepalive detection) to reusable workflow in centralized Workflows repo
.github/workflows/autofix.yml New workflow that delegates autofix operations (lint/format) to reusable workflow, triggered on PR events and labels
.github/scripts/keepalive_state.js Removed - state management utilities now fetched from central repo
.github/scripts/keepalive_instruction_template.js Removed - instruction templating now fetched from central repo
.github/scripts/keepalive_contract.js Removed - keepalive contract utilities now fetched from central repo
.github/scripts/issue_scope_parser.js Removed - scope/task/acceptance parsing now fetched from central repo
.github/scripts/issue_pr_locator.js Removed - PR locator logic now fetched from central repo
.github/scripts/issue_context_utils.js Removed - context building utilities now fetched from central repo
.github/scripts/comment-dedupe.js Removed - comment deduplication logic now fetched from central repo
.github/scripts/api-helpers.js Removed - API helper utilities now fetched from central repo
.github/scripts/README.md New file explaining the dual checkout pattern for script maintenance

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/agents-pr-meta.yml Outdated
Comment thread .github/workflows/agents-pr-meta.yml
Comment thread .github/workflows/autofix.yml Outdated
Comment thread .github/workflows/agents-pr-meta.yml Outdated
Comment thread .github/workflows/agents-pr-meta.yml Outdated
Comment thread .github/workflows/agents-pr-meta.yml Outdated
Comment thread .github/workflows/autofix.yml Outdated
Comment thread .github/workflows/agents-pr-meta.yml
Comment thread .github/scripts/README.md Outdated
@github-actions

Copy link
Copy Markdown
Contributor

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2025-12-22 21:13:21 UTC
Report artifact | autofix-report-pr-47
Remaining | ∅
New | ∅
No additional artifacts

@github-actions

Copy link
Copy Markdown
Contributor

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2025-12-22 21:18:18 UTC
Report artifact | autofix-report-pr-47
Remaining | ∅
New | ∅
No additional artifacts

@stranske
stranske force-pushed the feat/use-reusable-workflows branch from e350098 to a858962 Compare December 22, 2025 21:24
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action Required: Unable to determine source issue for PR #47. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).

@github-actions

Copy link
Copy Markdown
Contributor

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2025-12-22 21:24:31 UTC
Report artifact | autofix-report-pr-47
Remaining | ∅
New | ∅
No additional artifacts

@github-actions

Copy link
Copy Markdown
Contributor

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2025-12-22 21:26:24 UTC
Report artifact | autofix-report-pr-47
Remaining | ∅
New | ∅
No additional artifacts

Changes applied:
- Simplify concurrency group expression (agents-pr-meta.yml)
- Alphabetize permissions for consistency (both workflows)
- Add Base64 encoding documentation comment (agents-pr-meta.yml)
- Use repository variable for allowed_keepalive_logins (agents-pr-meta.yml)
- Add explicit null check for sameRepo (autofix.yml)
- Fix literal \n characters in scripts/README.md

Not applied (intentional):
- @main pinning: First-party Workflows repo, intentional
- Remove workflow_dispatch inputs: Useful for manual testing
- pull_request_target warning: Necessary for fork autofix

Related: stranske/Workflows#65
@github-actions

Copy link
Copy Markdown
Contributor

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2025-12-22 21:58:12 UTC
Report artifact | autofix-report-pr-47
Remaining | ∅
New | ∅
No additional artifacts

@stranske
stranske merged commit 822a66a into main Dec 22, 2025
10 checks passed
@stranske
stranske deleted the feat/use-reusable-workflows branch December 22, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autofix:clean Autofix passed - no changes needed autofix:clean-only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants