From 5e882eb2810929a44d5b2a311d84f766d15f7e66 Mon Sep 17 00:00:00 2001 From: Andrei Predoiu <5424946+Andrei-Predoiu@users.noreply.github.com> Date: Mon, 26 Sep 2022 15:19:29 +0200 Subject: [PATCH] Dependabot, release drafter etc --- .github/dependabot-circleci.yml | 2 ++ .github/dependabot.yml | 20 +++++++++++++++ .github/release-drafter.yml | 35 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 32 ++++++++++++++++++++++++ .github/CODEOWNERS => CODEOWNERS | 0 5 files changed, 89 insertions(+) create mode 100644 .github/dependabot-circleci.yml create mode 100644 .github/dependabot.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml rename .github/CODEOWNERS => CODEOWNERS (100%) diff --git a/.github/dependabot-circleci.yml b/.github/dependabot-circleci.yml new file mode 100644 index 0000000..2bbf646 --- /dev/null +++ b/.github/dependabot-circleci.yml @@ -0,0 +1,2 @@ +reviewers: + - BESTSELLER/engineering-services \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d56258f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,20 @@ +# 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://help.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: "monthly" + reviewers: + - BESTSELLER/engineering-services + - package-ecosystem: "docker" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "monthly" + reviewers: + - BESTSELLER/engineering-services + diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..789727c --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,35 @@ +name-template: "$RESOLVED_VERSION" +tag-template: "$RESOLVED_VERSION" +categories: + - title: Breaking Changes 💥 + labels: + - breaking-change + - title: New Features 🎉 + labels: + - feature + - title: Bug Fixes 🐛 + labels: + - bug-fix + - title: Dependencies 📌 + labels: + - dependencies + - title: Other Changes 🛠 + labels: + - "*" +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +version-resolver: + major: + labels: + - "major" + minor: + labels: + - "minor" + patch: + labels: + - "patch" + default: patch +template: | + ## Changes + $CHANGES + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..618e64d --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,32 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + # pull_request_target event is required for autolabeler to support PRs from forks + # pull_request_target: + # types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # (Optional) GitHub Enterprise requires GHE_HOST variable set + #- name: Set GHE_HOST + # run: | + # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV + + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + # with: + # config-name: my-config.yml + # disable-autolabeler: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/CODEOWNERS b/CODEOWNERS similarity index 100% rename from .github/CODEOWNERS rename to CODEOWNERS