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

Trim '[bot]' suffix from botIdentity #41

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

ashvarts
Copy link

@ashvarts ashvarts commented Nov 14, 2024

Description

Telefonistka wasn't minimizing its own previous comments. This is because the comment author and the commenter identity did not match. The commenter identity as returned by graphql had [bot] appended to the name, while the comment author did not. This is fixed by trimming the [bot] suffix from the identity before comparing it to the comment author.

tested: https://github.com/commercetools/k8s-manifests-poc/pull/327

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

Copy link

@hnnsgstfssn hnnsgstfssn left a comment

Choose a reason for hiding this comment

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

Would put PR description in commit but looks good otherwise. Nice find!

@ashvarts ashvarts merged commit 8ded097 into main Nov 15, 2024
5 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.

3 participants