Skip to content

Conversation

@deoshreyas
Copy link
Contributor

This adds a ?reopen macro for support team members that allows for (only closed) tickets to be reopened.
Reopening tickets sends a user-facing message saying that the ticket has been reopened, and also sends a message in the internal tickets channel.

image

@Copilot Copilot AI review requested due to automatic review settings October 26, 2025 12:48
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 ?reopen macro that allows support team members to reopen closed tickets. The macro updates the ticket status in the database, notifies users that their ticket has been reopened, posts a message in the internal tickets channel, and updates reaction indicators on the original message.

Key changes:

  • New Reopen macro class that handles ticket reopening logic
  • Modified message event handler to distinguish between reopen macro (for closed tickets) and other macros (for open tickets)
  • Added the Reopen macro to the list of available macros

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
nephthys/macros/reopen.py Implements the Reopen macro with database updates, user notifications, and internal messaging
nephthys/macros/init.py Registers the Reopen macro in the macros list
nephthys/events/message.py Updates message handling logic to route reopen macro to closed tickets and other macros to open tickets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@MMK21Hub MMK21Hub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome! I've suggested two things (which you probably didn't do to avoid refactoring too much, tbf!)

The bot messages look great, and thanks for considering the edge cases with allowing macros on closed tickets :)

lmk if you have any questions about the requested changes!

@Copilot Copilot AI review requested due to automatic review settings October 26, 2025 14:51
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 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@deoshreyas deoshreyas mentioned this pull request Oct 26, 2025
Copy link
Collaborator

@MMK21Hub MMK21Hub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@MMK21Hub MMK21Hub added this pull request to the merge queue Oct 26, 2025
Merged via the queue into hackclub:main with commit b53e1c5 Oct 26, 2025
4 checks passed
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