Skip to content

Commit

Permalink
ci: convert semantic pr title check to use action (dashpay#5071)
Browse files Browse the repository at this point in the history
* ci: add semantic pr check action (#6)

* ci: add types and scopes for pr title checks

* ci: change action name

* ci: add comment and link for our commit types/scopes

* ci: remove config for deprecated service

* Update .github/workflows/semantic-pull-request.yml

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
  • Loading branch information
thephez and UdjinM6 authored Nov 7, 2022
1 parent 083c860 commit 76d70bd
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/semantic.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Check PR title format"

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

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed (newline delimited).
# Default: https://github.com/commitizen/conventional-commit-types
# Our specific types/scopes (from https://github.com/dashpay/dash/blob/master/CONTRIBUTING.md#contributor-workflow)
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
trivial
backport
# Configure which scopes are allowed (newline delimited).
scopes: |
consensus
qt
log
mining
net
rpc/rest/zmq
scripts
utils
wallet

0 comments on commit 76d70bd

Please sign in to comment.