Skip to content

Commit

Permalink
chore(backport): adjust labels to new configuration (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmarf authored Nov 28, 2024
1 parent 4a76461 commit 7ef2f03
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 39 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# will be requested for review when someone opens a pull request.
* @open-component-model/Maintainers

# Changes on repository settings require admin permissions
/.github/settings.yml @open-component-model/admins
/.github/CODEOWNERS @open-component-model/admins

# Owners for specific directories
#/docs/ @<org>/<team>
#/src/ @<org>/<team>
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/enhancement_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Enhancement Request
about: Suggest an enhancement
labels: kind/enhancement
labels: kind/feature
---

<!-- markdownlint-disable MD041 -->
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/user_story.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: User Story
about: User Story
labels:
labels: kind/feature
title: <User Story> - Title
---

Expand Down
24 changes: 21 additions & 3 deletions .github/config/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
# see https://github.com/actions/labeler?tab=readme-ov-file#match-object to configure correctly
dependencies:
kind/dependency:
- any:
- head-branch: 'dependencies/*'
- head-branch: 'dependabot/*'
github-actions:
- changed-files:
- any-glob-to-any-file: ['go.mod', 'go.sum']
component/github-actions:
- any:
- changed-files:
- any-glob-to-any-file: ['.github/**']
area/documentation:
- any:
- changed-files:
- any-glob-to-any-file: ['docs/**', 'examples/**']
component/ocm-cli:
- any:
- changed-files:
- any-glob-to-any-file: ['components/ocmcli/**', 'cmds/ocm/**']
component/ocm-spec:
- any:
- changed-files:
- any-glob-to-any-file: ['resources/**']
kind/skip-release-notes:
- any:
- changed-files:
- any-glob-to-any-file: ['.github/**']
- any-glob-to-any-file: ['flake.lock', 'flake.nix']
42 changes: 19 additions & 23 deletions .github/config/release.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
changelog:
# ../workflows/pull_request.yaml#verify-labels one_of: kind/chore,kind/bugfix,kind/feature,kind/dependency,kind/refactor
exclude:
labels:
- 'kind/skip-release-notes'
- 'wontfix'
- 'triage/wont-fix'
- 'triage/invalid'
- 'dev/wont-fix'
- 'dev/cant-reproduce'
categories:
- title: '‼️ Breaking Changes'
labels:
- 'breaking-change'
- title: '🚀 Features'
labels:
- 'kind/enhancement'
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'kind/bug'
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
labels:
- 'chore'
- title: '⬆️ Dependencies'
labels:
- 'dependencies'
- title: '‼️ Breaking Changes'
labels:
- '!BREAKING-CHANGE!'
- title: '🚀 Features'
labels:
- 'kind/feature'
- title: '🐛 Bug Fixes'
labels:
- 'kind/bugfix'
- title: '🧰 Maintenance'
labels:
- 'kind/chore'
- 'kind/refactor'
- title: '⬆️ Dependencies'
labels:
- 'kind/dependency'
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ updates:
schedule:
interval: "weekly"
day: "sunday"
labels:
- kind/dependency
- kind/chore
- kind/skip-release-notes
- component/github-actions
- package-ecosystem: "gomod"
directory: "/"
groups:
Expand All @@ -19,3 +24,6 @@ updates:
schedule:
interval: "weekly"
day: "sunday"
labels:
- kind/dependency
- kind/chore
2 changes: 1 addition & 1 deletion .github/workflows/flake_vendorhash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ jobs:
sign-commits: true
labels: |
kind/skip-release-notes
chore
kind/chore
body: |
Update OCM CLI vendor hash (see: .github/workflows/flake_vendorhash.yaml)
20 changes: 10 additions & 10 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
env:
TYPE_TO_LABEL: |
{
"feat":"kind/enhancement",
"fix":"fix",
"chore":"chore",
"docs":"kind/documentation",
"test":"kind/test",
"perf":"kind/performance"
"feat":"kind/feature",
"fix":"kind/bugfix",
"chore":"kind/chore",
"docs":"area/documentation",
"test":"area/testing",
"perf":"area/performance"
}
SCOPE_TO_LABEL: |
{
"deps":"dependencies"
"deps":"kind/dependency"
}
BREAKING_CHANGE_LABEL: "breaking"
BREAKING_CHANGE_LABEL: "!BREAKING-CHANGE!"
with:
script: |
console.log("Verify that the PR title follows the Conventional Commit format");
Expand Down Expand Up @@ -158,5 +158,5 @@ jobs:
- name: PRs should have at least one qualifying label
uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: chore,fix,bugfix,bug,kind/bug,feature,enhancement,kind/enhancement,dependencies
repo_token: ${{ secrets.GITHUB_TOKEN }}
one_of: kind/chore,kind/bugfix,kind/feature,kind/dependency,kind/refactor
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7ef2f03

Please sign in to comment.