Skip to content

Commit

Permalink
ci: add workflow for PR semantic check (#2)
Browse files Browse the repository at this point in the history
* ci: add workflow for PR semantic check

* ci: allow wip pull requests

* ci: wip management needs write permission on pull-requests

* ci: pr linting workflow is executed from other workflows

* ci: semantic pr workflow requires github pat to run
  • Loading branch information
paoloyx authored May 28, 2024
1 parent ad37ade commit 546b2ab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/semantic-pull-requests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Lint PR"

on:
workflow_call:
secrets:
GIT_HUB_PAT:
description: "GitHub Personal Access Token for authentication"
required: true

permissions:
pull-requests: write

jobs:
main:
name: Validate PR title
runs-on: ubuntu-22.04
steps:
- uses: amannn/action-semantic-pull-request@v5
with:
wip: true
env:
GITHUB_TOKEN: ${{ secrets.GIT_HUB_PAT }}

0 comments on commit 546b2ab

Please sign in to comment.