From b4ae7a4a613cae5f3c9f452c6506c70cd7a60f83 Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Mon, 25 Nov 2024 08:17:42 +0100 Subject: [PATCH] chore(labels): centrally managed (#559) ## Description Let's have centrally managed labels on https://github.com/open-component-model/.github --- .github/CODEOWNERS | 4 ++++ .github/dependabot.yml | 8 ++++++++ .github/release-drafter.yml | 13 ++----------- .github/settings.yml | 8 ++++++++ 4 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 .github/settings.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ce831abc..1b1d6f77 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -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/ @/ #/src/ @/ diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f6890409..073b7953 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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: @@ -19,3 +24,6 @@ updates: schedule: interval: "weekly" day: "sunday" + labels: + - kind/dependency + - kind/chore diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index ce90691e..a3aea754 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,11 +1,2 @@ -name-template: '$NEXT_MINOR_VERSION' -tag-template: '$NEXT_MINOR_VERSION' -version-template: '$COMPLETE' -change-template: '- $TITLE (#$NUMBER)' -change-title-escapes: '\<*_&#@`' -template: | - # Release $NEXT_MINOR_VERSION - - $CHANGES -exclude-labels: - - 'kind/skip-release-notes' \ No newline at end of file +# see: https://github.com/open-component-model/.github/blob/main/.github/release-drafter.yml +_extends: .github diff --git a/.github/settings.yml b/.github/settings.yml new file mode 100644 index 00000000..db141afe --- /dev/null +++ b/.github/settings.yml @@ -0,0 +1,8 @@ +# These settings are synced to GitHub by https://probot.github.io/apps/settings/ + +# see: https://github.com/open-component-model/.github/blob/main/.github/settings.yml +_extends: .github + +labels: +- name: repo/ocm-controller + color: bfd4f2