Skip to content

Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.

ci: check pull request titles follow Conventional Commits

Joshb874f849bd4f
diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml
new file mode 100644
index 0000000..77a1679
--- /dev/null
+++ b/.github/workflows/pr-title.yml
@@ -0,0 +1,20 @@
+# Pull request titles follow Conventional Commits (feat: …, fix: …, docs: …, chore: …): a pull
+# request is squash-merged and its title becomes the commit on main. This check fails while the
+# title doesn't; editing the title re-runs it. It reads only the title, never the pull request's code.
+name: PR title
+
+on:
+ pull_request_target:
+ types: [opened, edited, reopened, synchronize]
+
+permissions:
+ pull-requests: read
+
+jobs:
+ title:
+ name: Conventional title
+ runs-on: ubuntu-latest
+ steps:
+ - uses: amannn/action-semantic-pull-request@v6
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}