Skip to content

Commit 80dff76

Browse files
committed
build: access PR title via environment variable
--- 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 194c6f9 commit 80dff76

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
@@ -84,8 +84,10 @@ jobs:
8484

8585
# Perform linting:
8686
- name: 'Perform linting'
87+
env:
88+
PR_TITLE: ${{ github.event.pull_request.title }}
8789
run: |
8890
echo "Pull request titles should follow stdlib's Git commit message conventions."
8991
echo "Linting pull request title..."
90-
make lint-commit-message GIT_COMMIT_MESSAGE='${{ github.event.pull_request.title }}'
92+
make lint-commit-message GIT_COMMIT_MESSAGE="${PR_TITLE}"
9193
timeout-minutes: 5

0 commit comments

Comments
 (0)