Skip to content

ci: refactor deployment workflows and add docs #281

ci: refactor deployment workflows and add docs

ci: refactor deployment workflows and add docs #281

Workflow file for this run

# based on https://github.com/web-infra-dev/rspack/blob/main/.github/workflows/lint-pr.yaml
name: Lint PR Title
on:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
lint-pr-title:
if: github.repository == 'callstack/rspress-theme'
name: Validate PR title
permissions:
pull-requests: read
runs-on: ubuntu-latest
steps:
# https://github.com/amannn/action-semantic-pull-request
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # tag v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed (newline-delimited).
# Derived from https://github.com/commitizen/conventional-commit-types
types: |
fix
feat
refactor
chore
revert
release
ci
# Configure which scopes are allowed (newline-delimited).
# These are regex patterns auto-wrapped in `^ $`.
scopes: |
^(?![A-Z]).+$
# Configure that a scope must always be provided.
requireScope: false
# Configure which scopes are disallowed in PR titles (newline-delimited).
# For instance by setting the value below, `chore(release): ...` (lowercase)
# and `ci(e2e,release): ...` (unknown scope) will be rejected.
# These are regex patterns auto-wrapped in `^ $`.
disallowScopes: |
[A-Z]+
# Configure additional validation for the subject based on a regex.
ignoreLabels: |
bot