diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..183f8365f --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,33 @@ +# 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 diff --git a/.github/labels.yaml b/.github/labels.yaml index bd2d300df..0bab955de 100644 --- a/.github/labels.yaml +++ b/.github/labels.yaml @@ -1,34 +1,43 @@ -# 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 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/**/*' -Documentation: - - changed-files: - - any-glob-to-any-file: site/content/docs/**/* -Dependencies: - - changed-files: - - any-glob-to-any-file: go.mod -# 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/**/* -has-unit-tests: - - changed-files: - - any-glob-to-any-file: pkg/**/*_test.go -has-e2e-2tests: - - changed-files: - - any-glob-to-any-file: test/e2e/**/* -has-changelog: - - changed-files: - - any-glob-to-any-file: changelogs/** +# This file is used by [prow github action](https://github.com/jpmcb/prow-github-actions/) in .github/workflows/prow-action.yml. +# This file only has values for kind and area commands. +area: + - CLI + - CSI + - Cloud/AWS + - Cloud/Azure + - Cloud/DigitalOcean + - Cloud/GCP + - Cloud/vSphere + - Design + - Documentation + - Filters + - Plugins + - Process + - Storage/Minio + - Storage/Cinder + - WindowsSupport + - datamover + - fs-backup + - fs-backup/deletion + - fs-backup/file-selectable + - fs-uploader + - kopia-integration + - migration + - multi-tenancy + - progress-monitoring + - resilience + - schedule + - storage/IBM-ObjectStorage + - upgrade + - volume-snapshot-dm kind: - - 'changelog-not-required' + - changelog-not-required + - question + - refactor + - requirement + - release-note + - release-blocker + - spike + - tech-debt + - usage-error + - voting diff --git a/.github/workflows/auto_label_prs.yml b/.github/workflows/auto_label_prs.yml index 74a546488..a5d912af8 100644 --- a/.github/workflows/auto_label_prs.yml +++ b/.github/workflows/auto_label_prs.yml @@ -16,4 +16,4 @@ jobs: - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - configuration-path: .github/labels.yaml + configuration-path: .github/labeler.yml diff --git a/.github/workflows/prow-action.yml b/.github/workflows/prow-action.yml index bfddf23b2..4b95892fa 100644 --- a/.github/workflows/prow-action.yml +++ b/.github/workflows/prow-action.yml @@ -11,10 +11,10 @@ jobs: steps: - uses: jpmcb/prow-github-actions@v1.1.3 with: - # Only support /kind command for now. # TODO: before allowing the /lgtm command, see if we can block merging if changelog labels are missing. - prow-commands: "/area - /kind + prow-commands: | + /area /cc - /uncc" + /kind + /uncc github-token: "${{ secrets.GITHUB_TOKEN }}"