agentleFS
vmware-tanzuvmware-tanzu/velero/.github/copilot-instructions.md

velero

Copilot instructions10k starsChanged 19 days agoApache-2.0View on GitHub

Velero uses per-PR changelog fragments that are assembled into release notes. Every shipping PR must add exactly one file at: - <PRNUMBER> is the pull request number (e.g. 10200). - <githubusername> is the GitHub login of the PR author (e.g. jdoe). - The file has no extension. - The file content is a single line describing the change (the PR title is a sensible default). Example: PR #10200 by jdoe → changelogs/unreleased/10200-jdoe The easiest way to create this file is:

We split this copilot-instructions.md into the rules it gives an agent

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Every shipping PR must add exactly one file at:

    line 9
  2. Distinctive:

    When you open or review a PR that falls into one of the above categories (and does

    line 46
  3. Very specific:

    kind/changelog-not-required: instead of requesting a changelog entry.

    line 49
  4. Very specific:

    Changelog-not-required: if the source PR is labeled kind/changelog-not-required, that label is copied to the backport PR so it isn't …

    line 69
  5. Very specific:

    DCO signoff: every commit on a backport branch is re-signed with the bot's Signed-off-by trailer (git rebase --signoff), including …

    line 72
  6. Distinctive:

    Only repository owners, members, and collaborators may trigger these commands.

    line 76
  7. Distinctive:

    Follow the existing code style of the file being edited.

    line 80
  8. Very specific:

    Add unit tests for new exported functions in pkg/.

    line 81
  9. Distinctive:

    Do not commit secrets, credentials, or API tokens.

    line 82
  10. Distinctive:

    Keep PRs focused; prefer small, reviewable changes over large omnibus PRs.

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 3,669 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

GitHub Copilot instructions for velero-io/velero

Changelog requirement

Velero uses per-PR changelog fragments that are assembled into release notes.

File naming convention

Every shipping PR must add exactly one file at:

changelogs/unreleased/<PR_NUMBER>-<github_username>
  • <PR_NUMBER> is the pull request number (e.g. 10200).
  • <github_username> is the GitHub login of the PR author (e.g. jdoe).
  • The file has no extension.
  • The file content is a single line describing the change (the PR title is a sensible default).

Example: PR #10200 by jdoe → changelogs/unreleased/10200-jdoe

The easiest way to create this file is:

make new-changelog CHANGELOG_BODY="Brief description of the change"

make new-changelog reads the PR number and author from gh pr view; the file is written automatically to the correct path with the correct name.

The CI check (hack/changelog-check.sh) looks for changelogs/unreleased/<PR_NUMBER>-* and fails if no file is found.

When a changelog is NOT required

A changelog entry is not required when a PR exclusively changes non-shipping content, i.e. the only files touched belong to one or more of these categories:

CategoryPaths
GitHub Actions / CI workflows.github/**
Documentationsite/content/docs/**, site/**, docs/**, *.md
Website (non-docs)site/** (excluding site/content/docs/**)

When you open or review a PR that falls into one of the above categories (and does not modify pkg/, internal/, cmd/, vendor/, hack/, Makefile, go.mod, go.sum, or changelogs/**), apply the label kind/changelog-not-required instead of requesting a changelog entry. The labeler.yml auto-labeler handles this automatically for most cases; apply the label manually if the auto-labeler did not.

Backport / cherry-pick workflow

Velero uses .github/workflows/backport.yml to automate cherry-picks onto release branches.

  • Before merge: comment /backport release-1.17 (or /cherrypick release-1.17) to add the label backport release-1.17 to the PR. Multiple branches can be space-delimited: /backport release-1.17 release-1.18. The label causes the backport to run automatically when the PR merges.
  • After merge: the same comment immediately creates the backport PR.
  • Shorthand: a bare version like /backport 1.17 is automatically expanded to release-1.17; this works generically for any X.Y version.
  • Changelog filename: the cherry-picked commit(s) carry over the source PR's changelogs/unreleased/<source_pr>-<user> file. The workflow automatically renames it to <backport_pr>-<user> on the backport branch so hack/changelog-check.sh passes and release notes cite the correct PR.
  • Changelog-not-required: if the source PR is labeled kind/changelog-not-required, that label is copied to the backport PR so it isn't flagged as missing a changelog.
  • DCO signoff: every commit on a backport branch is re-signed with the bot's Signed-off-by trailer (git rebase --signoff), including cherry-picked commits from the original author, so the DCO check always passes on backport PRs.
  • Only repository owners, members, and collaborators may trigger these commands.

General coding guidelines

  • Follow the existing code style of the file being edited.
  • Add unit tests for new exported functions in pkg/.
  • Do not commit secrets, credentials, or API tokens.
  • Keep PRs focused; prefer small, reviewable changes over large omnibus PRs.

Download now (ZIP)

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the vmware-tanzu/velero repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about vmware-tanzu/velero

The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 51

Talked about on GitHub and Stack Overflow (51 times).

On GitHub · 47

42 more on GitHub
  • Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.

    Of the Copilot instructions files we read, the 2,297 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.