Skip to content
Merged
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
11 changes: 11 additions & 0 deletions .agents/rules/github_actions_workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ globs: [".github/workflows/*.yml", ".github/workflows/*.yaml", ".github/*.yaml"]
* Preserve `suppress-no-jobs-ran-error` fallback jobs in conditional workflows.
* Pass inputs (e.g. `${{ inputs.issue }}`) directly to commands without
redundant shell parameter stripping or conversions.
* Print console messages using GitHub workflow command syntax (e.g.,
`::error::`, `::warning::`, `::notice::`, `::group::`).

## Workflow Python Scripts & Testing
* **Test Location**: Place workflow tests under `tests/workflows/`.
* **Imports over `sys.path`**: Never alter `sys.path`. Define a `py_library`
with `imports = ["../../.github/workflows"]` in `tests/workflows/BUILD.bazel`.
* **Functional Design & Fixtures**: Keep scripts functional with one public
entry point (e.g. `process_comment()`) and private helpers (`_` prefix). Write
outputs directly when matching actions. Test end-to-end via autouse fixtures
for GHA env files and API mocks.