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

Fix @bot describe locks to get triggered #1148

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

mumoshu
Copy link
Contributor

@mumoshu mumoshu commented Oct 4, 2024

This mainly fixes parseDescribeLocks in the implementation to make describe locks actually usable.

Previously, the command has never been triggered when you say @bot describe-locks, because the function was not taking into account that mentions to the bot contains text prefixed by the bot user ID.

This PR also tweaks the test so that test data contains the bot user ID as prefixes in the mentioned texts, along with adding support for CONFIG_NAMESPACE in the test, allowing you to configure which k8s namespace to use in the test.

@mumoshu mumoshu force-pushed the fix-describe-locks branch from 1238306 to b28b007 Compare October 4, 2024 00:58
@pirlodog1125 pirlodog1125 merged commit 241a4c6 into kufu-ai:master Oct 4, 2024
4 checks passed
@mumoshu mumoshu deleted the fix-describe-locks branch October 6, 2024 07:37
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