Skip to content

fix(cli): exception to prevent swallowing unexpected errors #122

fix(cli): exception to prevent swallowing unexpected errors

fix(cli): exception to prevent swallowing unexpected errors #122

Workflow file for this run

# -----------------------------------------------------------------------------
# PR Title Lint Workflow
#
# Purpose:
# Enforces Conventional Commits format for pull request titles to maintain a
# clear, consistent, and machine-readable change history across our repository.
#
# Enforced Commit Message Format (Conventional Commits 1.0.0):
# <type>[optional scope]: <description>
# [optional body]
# [optional footer(s)]
#
# Allowed Types:
# β€’ feat β€” a new feature (MINOR bump)
# β€’ fix β€” a bug fix (PATCH bump)
# β€’ docs β€” documentation only changes
# β€’ style β€” formatting, missing semi-colons, etc.; no code change
# β€’ refactor β€” code change that neither fixes a bug nor adds a feature
# β€’ perf β€” code change that improves performance
# β€’ test β€” adding missing tests or correcting existing tests
# β€’ build β€” changes that affect the build system or external dependencies
# β€’ ci β€” continuous integration/configuration changes
# β€’ chore β€” other changes that don't modify src or test files
# β€’ revert β€” reverts a previous commit
# β€’ release β€” prepare a new release
#
# Allowed Scopes (optional):
# core, cli, langchain, standard-tests, docs, anthropic, chroma, deepseek,
# exa, fireworks, groq, huggingface, mistralai, nomic, ollama, openai,
# perplexity, prompty, qdrant, xai
#
# Rules & Tips for New Committers:
# 1. Subject (type) must start with a lowercase letter and, if possible, be
# followed by a scope wrapped in parenthesis `(scope)`
# 2. Breaking changes:
# – Append "!" after type/scope (e.g., feat!: drop Node 12 support)
# – Or include a footer "BREAKING CHANGE: <details>"
# 3. Example PR titles:
# feat(core): add multi‐tenant support
# fix(cli): resolve flag parsing error
# docs: update API usage examples
# docs(openai): update API usage examples
#
# Resources:
# β€’ Conventional Commits spec: https://www.conventionalcommits.org/en/v1.0.0/
# -----------------------------------------------------------------------------
name: PR Title Lint
permissions:
pull-requests: read
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
lint-pr-title:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- name: Validate PR Title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
release
scopes: |
core
cli
langchain
standard-tests
docs
anthropic
chroma
deepseek
exa
fireworks
groq
huggingface
mistralai
nomic
ollama
openai
perplexity
prompty
qdrant
xai
requireScope: false
disallowScopes: |
release
[A-Z]+
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
ignoreLabels: |
ignore-lint-pr-title