]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #698 from makermelissa/release-drafter 8.21.0
authorScott Shawcroft <scott@adafruit.com>
Wed, 6 Sep 2023 17:10:57 +0000 (10:10 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2023 17:10:57 +0000 (10:10 -0700)
Add Release Drafter to make releases easier

.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..70b453a
--- /dev/null
@@ -0,0 +1,18 @@
+# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
+
+categories:
+  - title: "New Boards"
+    collapse-after: 1
+    labels:
+      - "New Board Request"
+change-template: "- $TITLE #$NUMBER by @$AUTHOR"
+template: |
+  ## What's Changed
+
+  $CHANGES
+
+  To use in CPython, `pip3 install adafruit-blinka`.
+
+  Read the [docs](https://circuitpython.readthedocs.io/projects/blinka/en/latest/) for info on how to use it.
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
new file mode 100644 (file)
index 0000000..bc9d42f
--- /dev/null
@@ -0,0 +1,25 @@
+# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
+
+name: Release Drafter
+
+on:
+  push:
+    branches:
+      - main
+
+permissions:
+  contents: read
+
+jobs:
+  update_release_draft:
+    permissions:
+        # write permission is required to create a github release
+        contents: write
+        pull-requests: read
+    runs-on: ubuntu-latest
+    steps:
+      - uses: release-drafter/release-drafter@v5
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}