From 6619ffc4daa53d79dc78ca1cb48e1a5b4de12ce9 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 1 Jun 2024 10:34:16 +0200 Subject: [PATCH] chore(#3): initial github setup with release drafter and dependabot --- .editorconfig | 10 ++++++ .github/dependabot.yml | 14 +++++++++ .github/release-drafter.yml | 45 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 29 +++++++++++++++++ .gitignore | 2 ++ 5 files changed, 100 insertions(+) create mode 100644 .editorconfig create mode 100644 .github/dependabot.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 .gitignore diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..579d1ae --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +ο»Ώroot = true + +[*] +charset = utf-8 +end_of_line = crlf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true +tab_width = 4 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..091d414 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "daily" + labels: + - "dependencies" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..5bf85d0 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,45 @@ +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +change-template: "- $TITLE by @$AUTHOR (#$NUMBER)" +no-changes-template: "- No changes" +categories: + - title: "πŸ“š Documentation" + labels: + - "documentation" + - title: "πŸš€ New Features" + labels: + - "enhancement" + - title: "πŸ› Bug Fixes" + labels: + - "bug" + - title: "🧰 Maintenance" + labels: + - "maintenance" + - title: "☸️ Deployment Resources" + labels: + - "deployment-resources" +version-resolver: + major: + labels: + - "major" + minor: + labels: + - "minor" + patch: + labels: + - "patch" + default: patch +template: | + $CHANGES + + ## πŸ‘¨πŸΌβ€πŸ’» Contributors + + $CONTRIBUTORS +autolabeler: + - label: "documentation" + files: + - "docs/**/*" + - "**/*.md" + - label: "maintenance" + files: + - ".github/**/*" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..5bbc64b --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,29 @@ +name: Release Drafter + +on: + push: + branches: + - main + pull_request_target: + types: + - edited + - opened + - reopened + - synchronize + workflow_dispatch: + +concurrency: + group: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref_type != 'tag' }} + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: "Draft Release" + uses: release-drafter/release-drafter@v6.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e3f4af3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# JetBrains IDEs +.idea/