Skip to content

Require repo commands in workflow prompts#141

Merged
strawgate merged 6 commits intomainfrom
main-0c50b707b5f5e1a0
Feb 19, 2026
Merged

Require repo commands in workflow prompts#141
strawgate merged 6 commits intomainfrom
main-0c50b707b5f5e1a0

Conversation

@github-actions
Copy link
Contributor

Summary:

  • require repo-required commands (lint/build/test) to be identified and run in six code-changing workflows
  • require reporting results and noop/skip guidance when required commands cannot run

Implementation note:

  • Updates are staged under github/workflows/ as copies of .github/workflows/gh-aw-*.md per workflow-editing guardrails in this environment. Please move these files into .github/workflows/ and run make compile to regenerate the .lock.yml workflows.

Testing:

AI generated by Issue Assistant

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@cla-checker-service
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
0b33112

Please, read and sign the above mentioned agreement if you want to contribute to this project

@strawgate strawgate marked this pull request as ready for review February 19, 2026 15:03
Copy link
Contributor Author

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

REQUEST_CHANGES.


What is this? | From workflow: PR Review Agent

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. for issue #141

- **CAN**: Read files, search code, modify files locally, run tests and commands, comment on PRs, push changes to same-repo PR branches
- **CANNOT**: Push to fork PR branches, merge PRs, or modify `.github/workflows/`

When pushing changes, the workspace already has the PR branch checked out. Make your changes, run required repo commands (lint/build/test) relevant to the fix, commit them locally, then use `push_to_pull_request_branch`.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[MEDIUM] Missing guidance for unavailable required commands

This workflow tells the agent to run required repo commands before pushing, but it doesn’t say how to determine which commands are required or what to do if they can’t be run. Other code-changing prompts explicitly require identifying commands from README/CONTRIBUTING/DEVELOPING/Makefile/CI config and skipping the push (with an explanation) if required commands can’t run; adding the same guidance here would satisfy the issue requirement and prevent untested fixes from being pushed.

@github-actions
Copy link
Contributor Author

CI failed in Verify compiled workflows: make compile left the working tree dirty (regenerated .github/workflows/*.lock.yml, .github/workflows/agentics-maintenance.yml, and added .github/workflows/trigger-release-update.yml).

The PR only adds the new prompt files under github/workflows/ (example below), so the compiled outputs in .github/workflows/ are out of date.

github/workflows/gh-aw-code-simplifier.md
1: ---
2: description: "Simplify overcomplicated code with high-confidence refactors"
3: imports:
4:   - gh-aw-fragments/elastic-tools.md
5:   - gh-aw-fragments/runtime-setup.md
6:   - gh-aw-fragments/formatting.md

Fix: move the six github/workflows/gh-aw-*.md files into .github/workflows/, run make compile, and commit the updated .github/workflows/*.lock.yml plus trigger-release-update.yml (workflow-edit guardrails here prevent me from pushing those changes).

Tests: not run locally (CI failed at compile step).


What is this? | From workflow: PR Checks Fixer

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@strawgate strawgate merged commit b9bdfd0 into main Feb 19, 2026
3 of 5 checks passed
@strawgate strawgate deleted the main-0c50b707b5f5e1a0 branch February 19, 2026 15:24
@github-actions
Copy link
Contributor Author

Summary:

  • make compile fails because the workflow schema rejects network.strict and the tools.serena array values in:
    • .github/workflows/gh-aw-agent-suggestions.md:L56 (strict: false)
    • .github/workflows/gh-aw-semantic-function-clustering.md:L58 (serena includes unsupported javascript/ruby) and :L67 (strict: false)

Fix applied (per workflow-edit guardrails):

  • Added corrected copies under github/workflows/gh-aw-agent-suggestions.md and github/workflows/gh-aw-semantic-function-clustering.md (removed strict, limited serena to go/python/typescript/java/csharp/rust).
  • Please move these into .github/workflows/ and rerun make compile to regenerate the lock files.

Tests:

  • Not run (changes staged under github/workflows pending relocation into .github/workflows).

What is this? | From workflow: PR Checks Fixer

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@github-actions
Copy link
Contributor Author

Summary: the compile step fails on schema validation because network.strict is nested under network in gh-aw-agent-suggestions.md, and tools.serena includes unsupported languages in gh-aw-semantic-function-clustering.md.

Fix staged (cannot update .github/workflows/ here; PR branch already merged/deleted):

github/workflows/gh-aw-agent-suggestions.md:L48-L57
```yaml
network:
  allowed:
    - defaults
    - github
    - go
    - node
    - python
    - ruby
strict: false
```
github/workflows/gh-aw-semantic-function-clustering.md:L54-L59
```yaml
tools:
  serena: ["go", "python", "typescript", "java", "csharp", "rust"]
```

Next steps: move the updated copies from github/workflows/ into .github/workflows/ and run make compile to regenerate the .lock.yml files.

Tests: not run (workflow edits/compile would modify .github/workflows/).


What is this? | From workflow: PR Checks Fixer

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure code workflows run required commands

1 participant