Add options to GetVersion for executeWithVersion and executeWithMinVersion #8
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: Semantic Pull Request | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
semantic-pr: | |
name: Validate PR title follows conventional commit format | |
runs-on: ubuntu-latest | |
# TODO: Remove this once we commit to conventional commits | |
continue-on-error: true | |
steps: | |
- name: Validate PR title | |
id: lint_pr_title | |
uses: amannn/[email protected] | |
with: | |
# Allow standard conventional commit types | |
types: | | |
fix | |
feat | |
docs | |
style | |
refactor | |
perf | |
test | |
chore | |
ci | |
build | |
# TODO: Remove this once we've decided on scopes | |
requireScope: false | |
# Skip validation for certain labels if needed | |
ignoreLabels: | | |
skip-commit-format | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Comment on PR if validation fails | |
if: steps.lint_pr_title.outputs.error_message != null | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `⚠️ **Semantic PR Check Failed** | |
**Error Details:** | |
\`\`\` | |
${{ steps.lint_pr_title.outputs.error_message }} | |
\`\`\` | |
**Required Format:** | |
\`\`\` | |
<type>: <description> | |
\`\`\` | |
**Allowed types:** fix, feat, docs, style, refactor, perf, test, chore, ci, build | |
**Examples:** | |
- \`feat: add user authentication system\` | |
- \`fix: resolve memory leak in worker pool\` | |
- \`docs: update API documentation\` | |
- \`test: add integration tests for auth flow\` | |
This is currently a **warning only** and won't block your PR from being merged.` | |
}) |