]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
Add release drafter
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Tue, 19 Mar 2024 21:43:44 +0000 (14:43 -0700)
committerMelissa LeBlanc-Williams <melissa@adafruit.com>
Tue, 19 Mar 2024 21:43:44 +0000 (14:43 -0700)
.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..9963f9f
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
+
+change-template: "- $TITLE #$NUMBER by @$AUTHOR"
+template: |
+  ## What's Changed
+
+  $CHANGES
+
+  To use in CPython, `pip3 install adafruit-blinka-displayio`.
+
+  Read the [docs](https://adafruit-blinka-displayio.readthedocs.io/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 }}