Thanks for your interest in contributing to tektoncd-catalog/git-clone! This
repository is part of the Tekton Catalog and follows the broader
tektoncd-catalog contributing guide.
For technical details on how the repo is structured and generated, see DEVELOPMENT.md.
All commits must be signed off to certify the
Developer Certificate of Origin. Add a
Signed-off-by trailer to every commit:
git commit --signoff -m "fix: handle empty ssh-directory path"The sign-off line must match the author's name and email. Contributions are also covered by the Linux Foundation EasyCLA check, which runs on pull requests — follow its prompt to sign the CLA the first time you contribute.
- Fork and branch from
main. - Edit the Task (
task/git-clone/git-clone.yaml) and/or thegit-initimage (image/git-init/) — never edit the generatedstepaction/git-clone/git-clone.yamldirectly. - Regenerate the StepAction and commit both files:
./hack/generate-stepaction.sh git add task/ stepaction/
- Test locally (see DEVELOPMENT.md).
- Use conventional commit messages (
feat:,fix:,docs:,chore:,ci:) — the release changelog is derived from these prefixes. - Open a PR with a clear description.
Approvals are managed via OWNERS (Prow-based auto-merge).
Every PR runs .github/workflows/build.yaml, which must pass:
- Build & Test —
go build ./...,go vet ./..., andgo test ./...inimage/git-init. - Verify StepAction is in sync — runs
./hack/generate-stepaction.shand fails if the committedstepaction/file differs from a freshly generated one. If this fails, run./hack/generate-stepaction.shand commit the result. - E2E matrix — installs the Task in a kind cluster and runs the TaskRuns in
task/git-clone/tests/run.yamlandstepaction/git-clone/tests/run.yamlacross the supported Tekton Pipelines versions, plus the bundle e2e test.
Tip
Before pushing, run ./hack/generate-stepaction.sh and make sure
git status is clean (apart from your intended changes). A stale StepAction
is the most common CI failure.
This project follows the Tekton Code of Conduct.