diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..917e23a --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,28 @@ +--- +name-template: $RESOLVED_VERSION +tag-template: v$RESOLVED_VERSION +filter-by-commitish: true +template: | + ## Changes + $CHANGES +categories: + - title: 🚀 Features + labels: [breaking, enhancement] + - title: 🐛 Bug Fixes + labels: [bug] + - title: 🧰 Maintenance + labels: [maintenance, test] + - title: 📝 Documentation + labels: [documentation] +exclude-labels: [skip_changelog] +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: + # - 'breaking' + minor: + labels: [breaking, enhancement] + patch: + labels: [maintenance, bug, test, documentation] + default: patch diff --git a/.github/workflows/workflow-version_task-semverGithub.yml b/.github/workflows/workflow-version_task-semverGithub.yml index 1306f86..dd1e32d 100644 --- a/.github/workflows/workflow-version_task-semverGithub.yml +++ b/.github/workflows/workflow-version_task-semverGithub.yml @@ -5,22 +5,8 @@ # - main branch is protected name: Bump version on: - workflow_dispatch: - inputs: - comments: - description: Comments - required: false - type: string - project-metadata: - description: File containing project metadata (e.g. pyproject.toml) - required: false - default: pyproject.toml - type: string - pipeline-description: - description: Boolean flag to update pipeline_description.json - required: false - default: false - type: boolean + pull_request_target: + types: [closed] workflow_call: inputs: project-metadata: