Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: add flags to disable storing tool and history messages on run output #8202

feat: add flags to disable storing tool and history messages on run output

feat: add flags to disable storing tool and history messages on run output #8202

Workflow file for this run

name: PR Lint
on:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
lint-pr:
name: Lint PR Title and Body
runs-on: ubuntu-latest
steps:
- name: Check PR Title Format
env:
TITLE: "${{ github.event.pull_request.title }}"
run: |
TITLE_LOWER=$(echo "$TITLE" | tr '[:upper:]' '[:lower:]')
REGEX='^(\[(feat|fix|cookbook|test|refactor|build|ci|chore|perf|style|revert)\][[:space:]]+.+|(feat|fix|cookbook|test|refactor|build|ci|chore|perf|style|revert):[[:space:]]+.+|(feat|fix|cookbook|test|refactor|build|ci|chore|perf|style|revert)-[a-z0-9-]+)$'
if [[ "$TITLE_LOWER" =~ $REGEX ]]; then
echo "✅ PR Title format is valid."
else
echo "❌ PR Title '$TITLE' does not match the required format."
echo " Use one of: [feat] title, feat: title, or feat-some-title"
exit 1
fi
Morty Proxy This is a proxified and sanitized view of the page, visit original site.