Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
version: 'v0.0.3'
workflows:
'.github/workflows/conventional-commits.yml':
- 'actions/create-github-app-token@v3.3.0'
- 'ytanikin/pr-conventional-commits@1.5.2'
'.github/workflows/deploy-mkdocs.yml':
- 'actions/checkout@v7.0.1'
Expand All @@ -27,11 +26,6 @@ dependencies:
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
owner_id: 44036562
repo_id: 197814629
'actions/create-github-app-token@v3.3.0':
ref: 'v3.3.0'
commit: 'sha1-64ab729a6294000f5aa4a4bc0b73d1f32bc45510'
owner_id: 44036562
repo_id: 642580244
'actions/download-artifact@v8.0.2':
ref: 'v8.0.2'
commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: PR Conventional Commit Validation

on:
pull_request_target:
pull_request:
types: [opened, synchronize, reopened, edited]

permissions: {}

jobs:
validate-pr-title:
runs-on: ubuntu-latest
permissions:
pull-requests: write # add the type label, creating it if missing
steps:
- uses: actions/create-github-app-token@v3.3.0
id: app-token
with:
client-id: ${{ secrets.DS_RELEASE_BOT_ID }}
private-key: ${{ secrets.DS_RELEASE_BOT_PRIVATE_KEY }}
permission-pull-requests: write

- name: PR Conventional Commit Validation
uses: ytanikin/pr-conventional-commits@1.5.2
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
token: ${{ steps.app-token.outputs.token }}
# Fork PRs get a read-only token, so labeling would fail the check.
add_label: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
Loading