Skip to content

Test Louhi PoC with Status Update - #21

Merged
q4rk merged 1 commit into
mainfrom
test-louhi-poc
Jun 1, 2026
Merged

q4rk merged 1 commit into
mainfrom
test-louhi-poc

Conversation

@q4rk

@q4rk q4rk commented Jun 1, 2026 •

Copy link
Copy Markdown
Owner

Testing Louhi integration and Buganizer status update.

FIX: b/518744224

@q4rk
q4rk merged commit 01eb448 into main Jun 1, 2026
1 check passed
@q4rk
q4rk deleted the test-louhi-poc branch June 1, 2026 13:41

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📋 Review Summary

This pull request effectively enhances the update_buganizer.py script by introducing the capability to not only comment on Buganizer issues but also to close them based on specific commit message tags. The changes are well-implemented, improving the automation and integration with Buganizer.

🔍 General Feedback

  • The refactoring of the regex and the introduction of extract_bug_actions and modify_buganizer_issue significantly improve the script's flexibility and power.
  • The use of the :modify endpoint for Buganizer API calls is a good practice for handling both comments and status updates in a single request.

@@ -17,8 +17,8 @@
BUGANIZER_API_KEY = os.getenv("BUGANIZER_API_KEY", "YOUR_PUBLIC_ONEPLATFORM_API_KEY_HERE")
BUGANIZER_API_URL = "https://issuetracker.corp.googleapis.com/v1/issues"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[THOUGHT] The enhanced regex for TAG_REGEX to capture the tag type is a great improvement. It allows for more granular control over the Buganizer actions based on the commit message.

"""Extracts Buganizer IDs matching the required line-start syntax."""
bug_ids = []
def extract_bug_actions(commit_lines):
"""Extracts Buganizer IDs and determines if they should be closed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[THOUGHT] Refactoring post_comment_to_buganizer to modify_buganizer_issue and leveraging the :modify endpoint, along with the updated payload for status changes, is a robust and efficient way to interact with the Buganizer API. This ensures proper handling of both comments and status updates.

@@ -36,14 +36,22 @@ def get_git_commits():
print(f"Error reading git logs: {e.stderr}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[THOUGHT] The extract_bug_actions function, returning a tuple of (bug_id, should_close), significantly improves the script's capability by enabling conditional bug closure based on commit message tags. This is a very useful enhancement.

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.

1 participant