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

Moving the update_in_comment option from the process param into the config file. #1

Merged
merged 2 commits into from
Jul 20, 2023
Merged

Conversation

cropalato
Copy link

I really like that feature, thanks for your PR, But I agree with @MytkoEnko ( prometheus-community#161 (comment) ). Should be more flexible if we use config file to manage that.
So, here is my 2 cents...

@cropalato cropalato changed the title Moving update in comment option from process argumento into config file. Moving update_in_comment option from process param into config file. Jun 23, 2023
@cropalato cropalato changed the title Moving update_in_comment option from process param into config file. Moving the update_in_comment option from the process param into the config file. Jun 23, 2023
Copy link
Owner

@twotired twotired left a comment

Choose a reason for hiding this comment

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

there are just a couple minor issues but otherwise LGTM

@@ -149,6 +149,9 @@ type ReceiverConfig struct {
// Label copy settings
AddGroupLabels bool `yaml:"add_group_labels" json:"add_group_labels"`

// Flag to auto-resolve opened issue when the alert is resolved.
Copy link
Owner

Choose a reason for hiding this comment

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

this should be "// Flag to enable updates in comments"

@@ -385,6 +388,8 @@ func newReceiverTestConfig(mandatory []string, optional []string) *receiverTestC
var value reflect.Value
if name == "AddGroupLabels" {
value = reflect.ValueOf(true)
} else if name == "UpdateInComment" {
Copy link
Owner

Choose a reason for hiding this comment

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

indentation appears inconsistent

- Changed comment;
- Replaced space indentation by tab indentation.
@cropalato
Copy link
Author

Fixed.

@cropalato
Copy link
Author

@twotired Do you want me to change something else?

@twotired twotired merged commit 4aed740 into twotired:updates-in-comments Jul 20, 2023
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