]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add release-drafter (#7878)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Tue, 13 Oct 2020 19:34:47 +0000 (22:34 +0300)
committerGitHub <noreply@github.com>
Tue, 13 Oct 2020 19:34:47 +0000 (15:34 -0400)
* Add release-drafter
* Review feedback

.github/release-drafter.yml [new file with mode: 0644]
.github/workflows/release-drafter.yml [new file with mode: 0644]

diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
new file mode 100644 (file)
index 0000000..169cb9f
--- /dev/null
@@ -0,0 +1,53 @@
+name-template: 'v$RESOLVED_VERSION'
+tag-template: 'v$RESOLVED_VERSION'
+categories:
+  - title: '# Breaking Changes'
+    labels:
+        - 'breaking change'
+  - title: '# Enhancements'
+    labels:
+      - 'type: enhancement'
+  - title: '# Performance'
+    labels:
+      - 'type: performance'
+  - title: '# Bugs Fixed'
+    labels:
+      - 'type: bug'
+  - title: '# Types'
+    labels:
+      - 'type: types'
+  - title: '# Documentation'
+    labels:
+      - 'type: documentation'
+  - title: '# Development'
+    labels:
+      - 'type: chore'
+change-template: '- #$NUMBER $TITLE'
+change-title-escapes: '\<*_&`#@'
+version-resolver:
+  major:
+    labels:
+      - 'breaking change'
+  minor:
+    labels:
+      - 'type: enhancement'
+  patch:
+    labels:
+      - 'type: bug'
+      - 'type: chore'
+      - 'type: types'
+  default: patch
+template: |
+  # Essential Links
+
+  * [npm](https://www.npmjs.com/package/chart.js)
+  * [Migration guide](https://www.chartjs.org/docs/next/getting-started/v3-migration)
+  * [Docs](https://www.chartjs.org/docs/next/)
+  * [API](https://www.chartjs.org/docs/next/typedoc/)
+  * [Samples](https://www.chartjs.org/samples/next/)
+
+  ## Changes
+
+  $CHANGES
+
+  Thanks to $CONTRIBUTORS
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
new file mode 100644 (file)
index 0000000..23bd2b9
--- /dev/null
@@ -0,0 +1,14 @@
+name: Release Drafter
+
+on:
+  push:
+    branches:
+      - next
+
+jobs:
+  update_release_draft:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: release-drafter/release-drafter@v5
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}