Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Aaron1011
Copy link
Member

@Aaron1011 Aaron1011 commented Nov 12, 2025

Important

Adds a comment step in GitHub Actions to notify users without permission for slash commands.

  • Behavior:
    • Adds a step in .github/workflows/slash-command-dispatch.yml to leave a comment if the user is not a public member of the tensorzero organization.
    • Uses peter-evans/create-or-update-comment to post a comment on the pull request when permission check fails.
  • Conditions:
    • The comment is triggered if steps.check-permission.outputs.ACTOR_MEMBER is not equal to '1'.
  • Misc:
    • The comment body states: "❌ Only public members of the tensorzero organization can use slash commands".

This description was created by Ellipsis for 3d1430b. You can customize this summary. It will automatically update as commits are pushed.

Copilot AI review requested due to automatic review settings November 12, 2025 18:36
Copilot finished reviewing on behalf of Aaron1011 November 12, 2025 18:37
Copy link
Contributor

Copilot AI left a 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]>
Copilot AI review requested due to automatic review settings November 12, 2025 18:44
Co-authored-by: Copilot <[email protected]>
Copilot finished reviewing on behalf of Aaron1011 November 12, 2025 18:45
Copy link
Contributor

Copilot AI left a 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_comment events (line 9), which fires on both issues and pull requests. However, line 31 in the diff uses github.event.issue.number while the actual file (line 31) uses github.event.pull_request.number. For issue_comment events, the correct reference is github.event.issue.number since 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants