feat: add configkey in extension #201
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR merge gate | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
branches: [ "main" ] | |
jobs: | |
pr-merge-gate: | |
runs-on: ubuntu-latest | |
#if: (github.repository == 'traas-stack/holoinsight-agent') | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: pre-commit | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
# https://conventionalcommits.org/ | |
- name: Check Commit Type | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)(\(\S+\))?!?:(\s.*)' | |
error: 'Must use conventional commits' | |
excludeTitle: 'false' | |
excludeDescription: 'true' | |
checkAllCommitMessages: 'true' | |
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true |