mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-15 19:56:06 +00:00
* Initial plan * chore: commit backport.yml pre-merge labeling enhancement Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com> * chore: auto-label kind/changelog-not-required for non-shipping PRs; add copilot-instructions.md Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com> * chore: add changelog naming convention to copilot-instructions; tighten labeler exclusions Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com> * fix: use # as sed delimiter to avoid conflict with | in alternation group Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com>
56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
# This file is used by Auto Label PRs action.
|
|
# Works with https://github.com/actions/labeler/
|
|
# Below this line, the keys are labels to be applied, and the values are the file globs to match against.
|
|
# Anything in the `design` directory gets the `Design` label.
|
|
Area/Design:
|
|
- changed-files:
|
|
- any-glob-to-any-file: design/*
|
|
# Anything that has plugin infra will be labeled.
|
|
# Individual plugins don't necessarily live here, though
|
|
Area/Plugins:
|
|
- changed-files:
|
|
- any-glob-to-any-file: pkg/plugins/**/*
|
|
Dependencies:
|
|
- changed-files:
|
|
- any-glob-to-any-file: go.mod
|
|
Documentation:
|
|
- changed-files:
|
|
- any-glob-to-any-file: site/content/docs/**/*
|
|
# Anything in the site directory gets the website label *EXCEPT* docs
|
|
Website:
|
|
- all:
|
|
- changed-files:
|
|
- any-glob-to-any-file: site/**/*
|
|
- all-globs-to-all-files: '!site/content/docs/**/*'
|
|
has-changelog:
|
|
- changed-files:
|
|
- any-glob-to-any-file: changelogs/**
|
|
has-e2e-2tests:
|
|
- changed-files:
|
|
- any-glob-to-any-file: test/e2e/**/*
|
|
has-unit-tests:
|
|
- changed-files:
|
|
- any-glob-to-any-file: pkg/**/*_test.go
|
|
# PRs that only touch non-shipping files (.github/ config, workflows, or docs)
|
|
# do not need a changelog entry; auto-apply the label so the changelog check passes.
|
|
kind/changelog-not-required:
|
|
- all:
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- .github/**/*
|
|
- site/content/docs/**/*
|
|
- site/**/*
|
|
- '*.md'
|
|
- docs/**/*
|
|
- all-globs-to-all-files:
|
|
- '!pkg/**'
|
|
- '!internal/**'
|
|
- '!cmd/**'
|
|
- '!vendor/**'
|
|
- '!hack/**'
|
|
- '!Makefile'
|
|
- '!go.mod'
|
|
- '!go.sum'
|
|
- '!changelogs/**'
|
|
- '!**/*.go'
|