Skip to content

Commit f82ffc9

Browse files
committed
build: rename slash command
--- 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 3774388 commit f82ffc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/slash_commands.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
6565
script: |
6666
const commentBody = context.payload.comment.body.trim();
67-
const RE_COMMANDS = /^\/stdlib\s+(help|check-files|update-copyright-years|lint-autofix|merge|rebase|commands-comment)$/i;
67+
const RE_COMMANDS = /^\/stdlib\s+(help|check-files|update-copyright-years|lint-autofix|merge|rebase|make-commands)$/i;
6868
const isRecognizedCommand = RE_COMMANDS.test( commentBody );
6969
7070
if ( isRecognizedCommand ) {
@@ -108,15 +108,15 @@ jobs:
108108
STDLIB_BOT_GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
109109

110110
# Define a command for leaving a comment with make command instructions:
111-
commands-comment:
111+
make-commands:
112112
# Define a display name:
113113
name: 'Post a comment with make command instructions'
114114

115115
# Ensure initial reaction job has completed before running this job:
116116
needs: [ add_initial_reaction ]
117117

118118
# Define the conditions under which the job should run:
119-
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib commands-comment')
119+
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib make-commands')
120120

121121
# Run reusable workflow:
122122
uses: ./.github/workflows/pr_commands_comment.yml
@@ -236,7 +236,7 @@ jobs:
236236
@${{ github.event.comment.user.login }}, available slash commands include:
237237
238238
- `/stdlib check-files` - Check for required files.
239-
- `/stdlib commands-comment` - Print `make` commands for package changed in PR.
239+
- `/stdlib make-commands` - Print `make` commands for package changed in PR.
240240
- `/stdlib update-copyright-years` - Update copyright header years.
241241
- `/stdlib lint-autofix` - Auto-fix lint errors.
242242
- `/stdlib merge` - Merge changes from develop branch into this PR.
@@ -255,7 +255,7 @@ jobs:
255255
runs-on: ubuntu-latest
256256

257257
# Ensure all previous jobs have completed before running this job:
258-
needs: [ add_initial_reaction, check_files, commands-comment, update_copyright_years, fix_lint_errors, merge_develop, rebase_develop, help ]
258+
needs: [ add_initial_reaction, check_files, make-commands, update_copyright_years, fix_lint_errors, merge_develop, rebase_develop, help ]
259259

260260
# Define the conditions under which the job should run:
261261
if: |

0 commit comments

Comments
 (0)