From d045e18cca0afa73d3393bdb5dd5e52eb0bc3e7a Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Thu, 28 Nov 2024 17:30:54 +0100 Subject: [PATCH] chore: inherit from .github labels --- .github/CODEOWNERS | 19 +++++++++ .github/PULL_REQUEST_TEMPLATE.md | 68 +++----------------------------- .github/dependabot.yml | 55 +++++++++++++++++--------- .github/settings.yml | 11 ++++++ .gitignore | 1 + 5 files changed, 73 insertions(+), 81 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/settings.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..1b1d6f7 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,19 @@ +# Default owners for everything in the repo. +# Unless a later match takes precedence, the Maintainers team +# 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/ @/ + +# Owners for specific file types +#*.md @/ +#*.go @/ + +# Individual users as owners, e.g. a lead maintainer for a specific component: +# /src/critical-component/ @lead-maintainer-username diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b9d61c3..d9fe330 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,65 +1,7 @@ -## Description + +#### What this PR does / why we need it - - -Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. - - -## What type of PR is this? (check all applicable) - -- [ ] 🍕 Feature -- [ ] 🐛 Bug Fix -- [ ] 📝 Documentation Update -- [ ] 🎨 Style -- [ ] 🧑‍💻 Code Refactor -- [ ] 🔥 Performance Improvements -- [ ] ✅ Test -- [ ] 🤖 Build -- [ ] 🔁 CI -- [ ] 📦 Chore (Release) -- [ ] ⏩ Revert - -## Related Tickets & Documents - - -- Related Issue # (issue) -- Closes # (issue) -- Fixes # (issue) -> Remove if not applicable - -## Screenshots - - - - -## Added tests? - -- [ ] 👍 yes -- [ ] 🙅 no, because they aren't needed -- [ ] 🙋 no, because I need help -- [ ] Separate ticket for tests # (issue/pr) - -Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration - - -## Added to documentation? - -- [ ] 📜 README.md -- [ ] 🙅 no documentation needed - -## Checklist: - -- [ ] My code follows the style guidelines of this project -- [ ] I have performed a self-review of my code -- [ ] I have commented my code, particularly in hard-to-understand areas -- [ ] I have made corresponding changes to the documentation -- [ ] My changes generate no new warnings -- [ ] I have added tests that prove my fix is effective or that my feature works -- [ ] New and existing unit tests pass locally with my changes -- [ ] Any dependent changes have been merged and published in downstream modules diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f689040..5da95cb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,21 +1,40 @@ version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" - groups: - # xref: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups - ci: - patterns: - - "*" - schedule: - interval: "weekly" - day: "sunday" - - package-ecosystem: "gomod" - directory: "/" - groups: - go: - update-types: ["minor","patch"] - schedule: - interval: "weekly" - day: "sunday" +- package-ecosystem: "github-actions" + directory: "/" + groups: + # xref: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups + ci: + patterns: + - "*" + schedule: + interval: "weekly" + day: "sunday" + labels: + - kind/dependency + - kind/chore + - kind/skip-release-notes + - component/github-actions +- package-ecosystem: "gomod" + directory: "/" + groups: + go: + update-types: [ "minor", "patch" ] + schedule: + interval: "weekly" + day: "sunday" + labels: + - kind/dependency + - kind/chore +- package-ecosystem: "docker" + directory: "/" + groups: + docker: + update-types: [ "minor", "patch" ] + schedule: + interval: "weekly" + day: "sunday" + labels: + - kind/dependency + - kind/chore diff --git a/.github/settings.yml b/.github/settings.yml new file mode 100644 index 0000000..ae43d31 --- /dev/null +++ b/.github/settings.yml @@ -0,0 +1,11 @@ +# 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 + +repository: + topics: ocm, open-component-model, k8s-controller + +labels: +- name: repo/git-controller + color: bfd4f2 diff --git a/.gitignore b/.gitignore index 53fd557..0e82074 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ Dockerfile.cross *.swo *~ tilt-settings.yaml +/.project