docs: overhaul guides and redesign the documentation site #47
Workflow file for this run
This file contains hidden or 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: conventional-commits | |
| on: # zizmor: ignore[dangerous-triggers] reads only the PR title and executes no untrusted code | |
| pull_request_target: | |
| types: [opened, edited, reopened, synchronize] | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| title: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check pull request title | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| pattern='^(chore|ci|docs|feat|fix|perf|refactor|revert|security|style|test)(\([[:alnum:]][[:alnum:]./_-]*\))?!?: [[:lower:]](.*[[:graph:]])?$' | |
| if [[ ! "$PR_TITLE" =~ $pattern ]]; then | |
| echo "::error title=Invalid pull request title::The title does not match the required format." | |
| printf 'Received title: %q\n' "$PR_TITLE" | |
| echo "Use: <type>[optional scope][optional !]: <description starting lowercase>" | |
| exit 1 | |
| fi |