Skip to content
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

Add lock and unlock gocat Slack commands #1124

Merged
merged 12 commits into from
Aug 14, 2024

Conversation

mumoshu
Copy link
Contributor

@mumoshu mumoshu commented Aug 9, 2024

Adds the gocat Slack commands @bot lock and @bot unlock on top of #1123.

You can see a number of commits for refactoring, fixes, and CI improvements, but the gist of this PR are:

  • 1780e59 + dec0920: Enhances the existing SlackListener who handles any @bot command to additionally support @bot lock and @bot unlock.
  • 9bb907c: Adds the new test file slack_test.go for testing the gocat Slack bot's behavior, using a fake Slack API, a fake GitHub API, and a preconfigured Kubernetes cluster like kind.

What's NOT included

There might be a plenty of potential improvements we can make further:

  • Improve the lock error message to contain by who and why the lock is held: project X environment ' has already been locked by user1 for REASON
  • Improve the lock error message to let the actor know who can resolve the issue, like lock failed due to permission error: consult anyone with Developer role to lock it.

But those are out of the scope of this PR!

@mumoshu mumoshu changed the title Add /lock and /unlock gocat Slack commands Add lock and unlock gocat Slack commands Aug 9, 2024
@pirlodog1125 pirlodog1125 merged commit 85055a8 into kufu-ai:master Aug 14, 2024
5 checks passed
@mumoshu mumoshu deleted the lock-unlock branch August 16, 2024 01:22
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