Contributing¶
This guide explains how to report issues, propose changes, and submit pull requests for the reusable workflows in this library.
Reporting Issues¶
Use the structured issue templates to open requests. GitHub will show you the template chooser when you click New issue in the repository.
| Template | When to use |
|---|---|
| Bug Report | A workflow behaves incorrectly or fails unexpectedly |
| New Workflow | You want to add a new reusable workflow to the library |
| Update Workflow | A workflow needs a new input, a tool version bump, or a behavior change |
| EOL / Deprecate | A workflow should be deprecated or removed |
Workflow Lifecycle¶
Adding a New Workflow¶
- Open a New Workflow issue to discuss the proposal before writing code.
- Create
.github/workflows/<verb>-<subject>.yamlwithon: workflow_call. Follow the<verb>-<subject>naming convention (e.g.test-go-modules). - Add a documentation file:
- Grouped workflows (ansible, container, python):
docs/workflows/<category>/<name>.md - Standalone workflows:
docs/workflows/<name>.md
- Grouped workflows (ansible, container, python):
- Register the new page in
mkdocs.ymlundernav:. - Add the workflow to the permissions table in
docs/permissions.md. - Update
AGENTS.mdif the repository structure or conventions change. - Submit a pull request — the PR template includes a full checklist.
Updating a Workflow¶
- Open an Update Workflow issue for non-trivial changes to discuss the approach first.
- Edit the workflow YAML under
.github/workflows/. - Keep the documentation in sync: inputs table, permissions table, and usage example.
- For breaking changes, include a migration path in the docs and add a
BREAKING CHANGE:footer to the commit message to trigger a major version bump.
Deprecating or Removing a Workflow¶
- Open an EOL / Deprecate issue to announce intent and gather feedback from users.
- Add a deprecation notice to the workflow YAML (as a comment) and to the docs page.
- After the deprecation window (at least one minor release), remove the workflow file, its
documentation page, its entry in
mkdocs.yml, and its row indocs/permissions.md.
Pull Requests¶
All changes go through a pull request to main. The
PR template
prompts you through the required checklist:
- Workflow YAML created or updated
- Documentation created or updated
- Permissions table updated
mkdocs.ymlnav updated (for new pages)AGENTS.mdupdated (if conventions changed)- All caller examples include
permissions: {}at the workflow level - New third-party actions pinned to a released version tag
Releases are automated by
go-semantic-release
on every push to main. Use
Conventional Commits
in your commit messages:
| Prefix | Effect |
|---|---|
feat: |
New workflow or new input → minor version bump |
fix: |
Bug fix → patch bump |
docs:, ci:, chore: |
No release on its own |
BREAKING CHANGE: footer |
Major version bump |
Downstream Projects¶
The issue templates and PR template in this repository are designed for managing this shared library. Downstream projects that adopt these workflows may benefit from applying similar templates in their own repositories to standardise how they manage CI/CD configuration changes.
Copy and adapt the files from .github/ISSUE_TEMPLATE/ and .github/PULL_REQUEST_TEMPLATE.md
to your project, adjusting the workflow list to those you actually use.
Similarly, add a Dependabot configuration to keep workflow version pins up to date automatically:
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "ci: "
See Getting Started for full setup instructions.