Skip to content

docs: add DEVELOPMENT.md, CONTRIBUTING.md, and AGENTS.md#126

Merged
vdemeester merged 2 commits into
mainfrom
docs/add-contributor-docs
Jun 8, 2026
Merged

docs: add DEVELOPMENT.md, CONTRIBUTING.md, and AGENTS.md#126
vdemeester merged 2 commits into
mainfrom
docs/add-contributor-docs

Conversation

@vdemeester

Copy link
Copy Markdown
Member

Summary

Adds contributor-facing documentation explaining the repo's generation framework, testing, and release process. Closes #125.

Follows the same pattern as tektoncd-catalog/golang#31, adapted to git-clone's actual structure (the git-clone Task is the source of truth, and the StepAction is derived from it via hack/generate-stepaction.py — git-clone does not use the base/ + catalog.yaml model).

Files

  • DEVELOPMENT.md — architecture overview (Task → StepAction derivation), how generation works, modifying the Task/StepAction, building the git-init image, running unit + e2e tests, and the release.sh flow.
  • CONTRIBUTING.md — DCO/EasyCLA sign-off, PR workflow, conventional commits, and CI expectations (Build & Test, Verify StepAction is in sync, e2e matrix).
  • AGENTS.md — repo structure, critical invariants (never edit stepaction/ directly, no $(params.*) in scripts, workspace→param mapping), common commands, and common pitfalls.
  • README.md — links to the new docs.

Notes

All content was derived from the actual hack/ scripts and .github/workflows/, including the Trusted Resources signing caveat (blocked by tektoncd/cli#2894 / #2895; bundle + image are cosign-signed in the release workflow instead).

Add contributor-facing documentation explaining the generation framework
(Task as source of truth, derived StepAction), local testing, and the
release process.

- DEVELOPMENT.md: architecture, StepAction derivation, image build,
  testing, and release flow
- CONTRIBUTING.md: DCO/CLA, PR workflow, CI expectations
- AGENTS.md: repo structure, critical invariants, common commands

Link the new docs from README.md.

Closes #125

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@tekton-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from vdemeester after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 8, 2026
@vdemeester vdemeester requested a review from Copilot June 8, 2026 09:16

Copilot AI 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.

Pull request overview

Adds contributor-facing documentation for the tektoncd-catalog/git-clone repo, describing how the Task → StepAction generation workflow works, how to test locally/CI, and how releases are performed. This helps new contributors (and AI agents) make correct changes without breaking the generator invariants.

Changes:

  • Add DEVELOPMENT.md documenting repo architecture, generation, testing, and the release flow.
  • Add CONTRIBUTING.md documenting contribution workflow (DCO/EasyCLA, conventional commits) and CI expectations.
  • Add AGENTS.md with a concise “rules + commands + pitfalls” reference for AI coding agents, and link all docs from README.md.

Reviewed changes

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

File Description
README.md Adds links to the new contributor/agent documentation.
DEVELOPMENT.md New developer guide covering generation, testing, and release process.
CONTRIBUTING.md New contribution and CI expectations guide.
AGENTS.md New quick-reference for AI agents, repo invariants, and common commands/pitfalls.

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

Comment thread DEVELOPMENT.md Outdated
```bash
kind create cluster

# Task: install it and run every TaskRun in tests/run.yaml
Comment thread CONTRIBUTING.md Outdated
Comment on lines +53 to +55
- **E2E matrix** — installs the Task in a kind cluster and runs the TaskRuns in
`tests/run.yaml` across the supported Tekton Pipelines versions, plus the
bundle e2e test.
Comment thread DEVELOPMENT.md Outdated
| `hack/release.sh` | Release automation: bump version → regenerate → changelog → commit → tag → push. |
| `hack/apply-ah-changes.py` | Injects the `artifacthub.io/changes` annotation during release. |
| `test/` | e2e runners (`e2e-tests.sh`, `e2e-bundle-test.sh`). |
| `keys/` | `cosign.pub` (bundle verification) and signing material. |
Comment thread AGENTS.md Outdated
| `hack/release.sh` | Release automation. |
| `hack/apply-ah-changes.py` | Injects the `artifacthub.io/changes` annotation at release. |
| `test/` | e2e runners (`e2e-tests.sh`, `e2e-bundle-test.sh`). |
| `keys/` | `cosign.pub` and signing material. |
- Clarify keys/ contains only the committed cosign.pub public key (the
  signing-key.pem is gitignored), not generic 'signing material'.
- Reference the actual TaskRun manifest paths
  (task/git-clone/tests/run.yaml and stepaction/git-clone/tests/run.yaml)
  instead of the imprecise 'tests/run.yaml'.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@vdemeester vdemeester merged commit d364aa7 into main Jun 8, 2026
8 checks passed
@vdemeester vdemeester deleted the docs/add-contributor-docs branch June 8, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DEVELOPMENT.md, CONTRIBUTING.md, and AGENTS.md documentation

3 participants