Skip to content

refactor(rocketchat): move configuration types into rocketchat package - #5384

Open
TheMeier wants to merge 1 commit into
prometheus:mainfrom
TheMeier:rocketchat_config
Open

refactor(rocketchat): move configuration types into rocketchat package#5384
TheMeier wants to merge 1 commit into
prometheus:mainfrom
TheMeier:rocketchat_config

Conversation

@TheMeier

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Which user-facing changes does this PR introduce?

NONE

@TheMeier
TheMeier requested a review from a team as a code owner July 14, 2026 17:57
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Rocketchat configuration types and YAML parsing move into notify/rocketchat. Receiver inheritance, notifier constructors, payload types, token helpers, attachment creation, and tests now use the package-local definitions.

Changes

Rocketchat configuration migration

Layer / File(s) Summary
Define local Rocketchat configuration
notify/rocketchat/config.go, config/notifiers.go
Rocketchat defaults, configuration fields, attachment types, and token validation are defined in notify/rocketchat. The previous config declarations are removed.
Wire receiver configuration
config/config.go
Receiver configuration and YAML inheritance use rocketchat.RocketchatConfig, including nil-entry initialization and global HTTP, API, and credential values.
Update notifier payload construction
notify/rocketchat/rocketchat.go, notify/rocketchat/rocketchat_test.go
Notifier constructors, token helpers, attachment payload construction, and tests use package-local Rocketchat types.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes release notes and sign-off confirmations but omits most required checklist sections and their applicable responses. Complete the checklist for issues, integration type, tests, performance, breaking changes, documentation, and other applicable requirements.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: moving Rocket.Chat configuration types into the rocketchat package.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
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