diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1d584c6..52d3732 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,10 +5,14 @@ updates: schedule: interval: daily labels: - - chore + - dependencies + - auto + - no-stale - package-ecosystem: "pip" directory: "/" schedule: interval: weekly labels: - - chore + - dependencies + - auto + - no-stale diff --git a/.github/labels.yml b/.github/labels.yml index e7edee5..b0297d1 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,4 +1,7 @@ --- +- name: "auto" + color: bfdadc + description: "Marks a PR or issue that has been created automatically." - name: "breaking-change" color: ee0701 description: "A breaking change for existing users." @@ -38,7 +41,7 @@ description: "There has not been activity on this issue or PR for quite some time." - name: "no-stale" color: fef2c0 - description: "This issue or PR is exempted from the stable bot." + description: "This issue or PR is exempted from the stale bot." - name: "security" color: ee0701 diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 0a461a9..3f95967 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,38 +1,54 @@ +--- name-template: 'v$RESOLVED_VERSION 🌈' tag-template: 'v$RESOLVED_VERSION' change-template: '- $TITLE @$AUTHOR (#$NUMBER)' change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. + categories: - - title: '🚀 Features' + - title: '🚨 Breaking changes' labels: - - 'enhancement' - - 'refactor' + - 'breaking-change' + - title: '✨ New features' + labels: + - 'new-feature' - title: '🐛 Bug Fixes' labels: - - 'bug' + - 'bugfix' + - title: '🚀 Enhancements' + labels: + - 'enhancement' + - 'refactor' + - 'performance' - title: '🧰 Maintenance' - label: 'chore' -template: | - ## Changes + labels: + - 'maintenance' + - 'ci' + - title: '📚 Documentation' + labels: + - 'documentation' + - title: '⬆️ Dependency updates' + labels: + - 'dependencies' - $CHANGES version-resolver: major: labels: - - 'breaking change' + - 'major' + - 'breaking-change' minor: labels: + - 'minor' + - 'new-feature' + patch: + labels: + - 'bugfix' + - 'dependencies' - 'enhancement' + - 'performance' + - 'refactor' default: patch -autolabeler: - - label: 'bug' - branch: - - '/fix\/.+/' - title: - - '/fix/i' - - label: 'enhancement' - branch: - - '/feature\/.+/' - - label: 'chore' - branch: - - '/chore\/.+/' + +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index 019e0e7..5f54d18 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -2,18 +2,16 @@ name: PR Labels on: - pull_request: + pull_request_target: types: + - opened - synchronize - labeled - unlabeled - branches: - - master - -permissions: {} + workflow_call: jobs: - pr_labels: + pr-labels: name: Verify runs-on: ubuntu-latest steps: @@ -21,4 +19,11 @@ jobs: uses: ludeeus/action-require-labels@1.1.0 with: labels: >- - breaking-change, bugfix, chore, dependencies, documentation, enhancement, new-feature, refactor + breaking-change, bugfix, + ci, + dependencies, documentation, + enhancement, + maintenance, + new-feature, + performance, + refactor diff --git a/.github/workflows/pre-commit-updater.yml b/.github/workflows/pre-commit-updater.yml index 51250d3..7417f52 100644 --- a/.github/workflows/pre-commit-updater.yml +++ b/.github/workflows/pre-commit-updater.yml @@ -32,4 +32,4 @@ jobs: body: | Update versions of tools in pre-commit configs to latest version - labels: dependencies + labels: dependencies, auto, no-stale diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 528a28b..cbc8a56 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,17 +1,19 @@ -# Utilize release drafter action - +--- name: Release Drafter on: push: branches: - master + workflow_dispatch: + jobs: update_release_draft: + name: 📝 Draft release runs-on: ubuntu-latest steps: - # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.0.0 + - name: 🚀 Run Release Drafter + uses: release-drafter/release-drafter@v6.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}