Skip to content

Commit

Permalink
chore: setup pr title linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehakan committed May 10, 2024
1 parent 3522355 commit 650535f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-title-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "PR Title Lint"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: write

jobs:
validate-title:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- name: Create Github App Token for Release Please
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.RELEASE_PLEASE_GH_APP_ID }}
private-key: ${{ secrets.RELEASE_PLEASE_GH_APP_PRIVATE_KEY }}

- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 comments on commit 650535f

Please sign in to comment.