Skip to content

Commit 053a086

Browse files
committed
chore: also restrict the help slash command to users with write access
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 036ce67 commit 053a086

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/slash_commands.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ jobs:
234234
needs: [ add_initial_reaction ]
235235

236236
# Define the conditions under which the job should run:
237-
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib help')
237+
if: |
238+
github.event.issue.pull_request &&
239+
startsWith(github.event.comment.body, '/stdlib help') &&
240+
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)
238241
239242
# Define the job's steps:
240243
steps:

0 commit comments

Comments
 (0)