Skip to content

fix(bitbucket): update snapshot on review events + throttle tada mess…#34

Merged
daabr merged 2 commits into
mainfrom
fix-ed-remi-bugs
Mar 9, 2026
Merged

fix(bitbucket): update snapshot on review events + throttle tada mess…#34
daabr merged 2 commits into
mainfrom
fix-ed-remi-bugs

Conversation

@daabr
Copy link
Copy Markdown
Member

@daabr daabr commented Mar 9, 2026

…ages

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 9, 2026

Codecov Report

❌ Patch coverage is 0% with 37 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/bitbucket/workflows/pullrequest.go 0.00% 24 Missing ⚠️
pkg/bitbucket/workflows/repository.go 0.00% 6 Missing ⚠️
pkg/bitbucket/workflows/temporal.go 0.00% 6 Missing ⚠️
pkg/temporal/dispatcher.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts Bitbucket Temporal workflows to keep PR snapshot state in sync for review events and reduce Slack noise from repeated “ready to merge” announcements.

Changes:

  • Throttle “PR is ready to be merged” Slack announcements to at most once per hour per PR.
  • Update PR snapshot handling and alerting behavior for Bitbucket PR update + review events.
  • Reduce dispatcher signal-drain “lame duck” cycles before reset.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
pkg/temporal/dispatcher.go Reduces drain-loop cycles before continue-as-new/shutdown.
pkg/bitbucket/workflows/temporal.go Aligns workflow registration entries; uses the Config receiver for review workflow.
pkg/bitbucket/workflows/repository.go Adds per-PR throttling for “ready to merge” announcements via in-memory cache.
pkg/bitbucket/workflows/pullrequest.go Improves snapshot/error handling for PR updates; updates snapshots on review events and adds alerting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread pkg/bitbucket/workflows/repository.go Outdated
Comment thread pkg/bitbucket/workflows/pullrequest.go
Comment thread pkg/bitbucket/workflows/pullrequest.go
@daabr daabr merged commit 8154e6f into main Mar 9, 2026
4 checks passed
@daabr daabr deleted the fix-ed-remi-bugs branch March 9, 2026 04:42
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