Skip to content

Commit

Permalink
ci: lint PR titles (#1116)
Browse files Browse the repository at this point in the history
This should prevent PRs from getting merged that don't use convention
commit messages as titles. Eventually, we might generate changelogs and
release-versions out of this.

Until shared workflow actions have their own versioning, this will
probably only be pinned to the main branch.
  • Loading branch information
zerok authored Jul 30, 2024
1 parent d1e7d18 commit 2f62276
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint PR title

on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
branches:
- main

jobs:
lint-pr-title:
runs-on: ubuntu-latest
steps:
- uses: grafana/shared-workflows/actions/lint-pr-title@main
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 2f62276

Please sign in to comment.