Stop duplicating Jira status updates#744
Stop duplicating Jira status updates#744openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
Conversation
rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can use your project's `golangci-lint` configuration to improve the quality of Go code reviews.Add a configuration file to your project to customize how CodeRabbit runs |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bradmwilliams, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pkg/jira/jira.go (1)
344-349:VERIFIEDguard is redundant in this branchAt Line 334, only
ON_QA/MODIFIEDstatuses can reach this block, so the check at Line 345 is always true. This makes the new guard non-functional for deduplication and adds misleading intent. Consider removing it, or move the dedupe check to the earlier status gate if you want it to be effective.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@pkg/jira/jira.go` around lines 344 - 349, The redundant VERIFIED-status guard inside the block that only executes for ON_QA/MODIFIED should be removed or relocated; update the code around the handler that calls c.jiraClient.UpdateStatus (and the surrounding status gate that allows only ON_QA/MODIFIED) by deleting the check against issue.Fields.Status.Name == jira.StatusVerified so the dedupe logic is either removed here or moved to the earlier status gate where ON_QA/MODIFIED are evaluated; ensure UpdateStatus is still called via c.jiraClient.UpdateStatus(issue.ID, jira.StatusVerified) and any error handling that appends to errs remains unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@pkg/jira/jira.go`:
- Around line 344-349: The redundant VERIFIED-status guard inside the block that
only executes for ON_QA/MODIFIED should be removed or relocated; update the code
around the handler that calls c.jiraClient.UpdateStatus (and the surrounding
status gate that allows only ON_QA/MODIFIED) by deleting the check against
issue.Fields.Status.Name == jira.StatusVerified so the dedupe logic is either
removed here or moved to the earlier status gate where ON_QA/MODIFIED are
evaluated; ensure UpdateStatus is still called via
c.jiraClient.UpdateStatus(issue.ID, jira.StatusVerified) and any error handling
that appends to errs remains unchanged.
|
@bradmwilliams: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED