-
Notifications
You must be signed in to change notification settings - Fork 726
Leave a comment if user doesn't have permission for slash command #4572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a feature to leave a comment when a user who doesn't have permission tries to use slash commands. This provides clearer feedback to users about why their command wasn't executed.
- Adds a new step to leave a comment when permission check fails
- Uses the same permission check condition as the existing slash command dispatch step
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
.github/workflows/slash-command-dispatch.yml:1
- The workflow is triggered by
issue_commentevents (line 9), which fires on both issues and pull requests. However, line 31 in the diff usesgithub.event.issue.numberwhile the actual file (line 31) usesgithub.event.pull_request.number. Forissue_commentevents, the correct reference isgithub.event.issue.numbersince both issues and pull requests are treated as issues in this context. The diff shows the correct implementation, but verify this matches what's actually being deployed.
name: Slash Command Dispatch
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Important
Adds a comment step in GitHub Actions to notify users without permission for slash commands.
.github/workflows/slash-command-dispatch.ymlto leave a comment if the user is not a public member of thetensorzeroorganization.peter-evans/create-or-update-commentto post a comment on the pull request when permission check fails.steps.check-permission.outputs.ACTOR_MEMBERis not equal to '1'.tensorzeroorganization can use slash commands".This description was created by
for 3d1430b. You can customize this summary. It will automatically update as commits are pushed.