From d9d046c3359b554491efb7c2a64fcbbc279429fc Mon Sep 17 00:00:00 2001 From: Korbinian Stoemmer Date: Tue, 26 Sep 2023 14:19:40 +0200 Subject: [PATCH 1/3] add dependabot.yml --- .github/dependabot.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f549012 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "gomod" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" + - package-ecosystem: "docker" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" From 56dee003928029d5b68f0bb21866d2b240cad397 Mon Sep 17 00:00:00 2001 From: Korbinian Stoemmer Date: Wed, 14 Feb 2024 11:58:59 +0100 Subject: [PATCH 2/3] add rules for pr titles --- .github/dependabot.yml | 6 ++++ .github/workflows/lint-conventional-prs.yml | 31 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/lint-conventional-prs.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f549012..0cbe4a8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,11 +9,17 @@ updates: directory: "/" # Location of package manifests schedule: interval: "daily" + commit-message: + prefix: "deps(dependabot)" - package-ecosystem: "docker" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "daily" + commit-message: + prefix: "deps(dependabot)" - package-ecosystem: "github-actions" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "daily" + commit-message: + prefix: "deps(dependabot)" diff --git a/.github/workflows/lint-conventional-prs.yml b/.github/workflows/lint-conventional-prs.yml new file mode 100644 index 0000000..3c8f3c5 --- /dev/null +++ b/.github/workflows/lint-conventional-prs.yml @@ -0,0 +1,31 @@ +name: Lint PR Title +run-name: ${{github.event.pull_request.title}} + +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + check: + name: Check Title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@47b15d52c5c30e94a17ec87eb8dd51ff5221fed9 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + deps + chore + docs + feat + fix + refactor + test + requireScope: false + # https://regex101.com/r/YybDgS/1 + subjectPattern: ^(?![A-Z]).+$ From cbb1156c2e7baa99f8d9e9a90ee9e233e0a9df16 Mon Sep 17 00:00:00 2001 From: Korbinian Stoemmer Date: Wed, 14 Feb 2024 15:43:29 +0100 Subject: [PATCH 3/3] fix regex link --- .github/workflows/lint-conventional-prs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-conventional-prs.yml b/.github/workflows/lint-conventional-prs.yml index 3c8f3c5..389441b 100644 --- a/.github/workflows/lint-conventional-prs.yml +++ b/.github/workflows/lint-conventional-prs.yml @@ -27,5 +27,5 @@ jobs: refactor test requireScope: false - # https://regex101.com/r/YybDgS/1 + # https://regex101.com/r/pmEvPq/2 subjectPattern: ^(?![A-Z]).+$