Skip to content

Commit d51a71a

Browse files
committed
build: write PR title to file when linting
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 5fd8af8 commit d51a71a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/lint_pr_title.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,7 @@ jobs:
9090
run: |
9191
echo "Pull request titles should follow stdlib's Git commit message conventions."
9292
echo "Linting pull request title..."
93-
make lint-commit-message GIT_COMMIT_MESSAGE="${PR_TITLE}"
93+
PR_TITLE_FILE="${GITHUB_WORKSPACE}/pr_title.txt"
94+
printf '%s\n' "$PR_TITLE" > "$PR_TITLE_FILE"
95+
make lint-commit-files FILES="$PR_TITLE_FILE"
9496
timeout-minutes: 5

0 commit comments

Comments
 (0)