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

feat(opsgenie): Add support for setting priority in Opsgenie notification #267

Merged

Conversation

bofaalsarah
Copy link
Contributor

This PR adds support for setting the priority field in Opsgenie notifications. If a priority is provided in the notification, it will be included in the alert creation request to Opsgenie. Additionally, the code now checks for missing description in Opsgenie notifications and returns an error if it's missing.

@bofaalsarah bofaalsarah force-pushed the feature/opsgenie-priority branch 2 times, most recently from 6613522 to 8ddfc22 Compare February 8, 2024 15:46
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (c0913e2) 54.79% compared to head (1b66450) 54.99%.

Files Patch % Lines
pkg/services/opsgenie.go 0.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #267      +/-   ##
==========================================
+ Coverage   54.79%   54.99%   +0.19%     
==========================================
  Files          35       35              
  Lines        3376     3386      +10     
==========================================
+ Hits         1850     1862      +12     
+ Misses       1254     1251       -3     
- Partials      272      273       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bofaalsarah bofaalsarah force-pushed the feature/opsgenie-priority branch 2 times, most recently from 4e7d028 to eedc5d3 Compare February 8, 2024 15:59
@bofaalsarah bofaalsarah force-pushed the feature/opsgenie-priority branch from eedc5d3 to 595b339 Compare February 8, 2024 16:01
@pasha-codefresh
Copy link
Member

Thank you @bofaalsarah , could you please add test for it ?

@bofaalsarah
Copy link
Contributor Author

Thank you @bofaalsarah , could you please add test for it ?

Done ✅

@pasha-codefresh
Copy link
Member

LGTM, thank you

@pasha-codefresh pasha-codefresh merged commit 4222fe0 into argoproj:master Feb 8, 2024
4 of 5 checks passed
@pasha-codefresh
Copy link
Member

@bofaalsarah only one thing, could you please add some documentation about it? it can be dedicated PR

@bofaalsarah
Copy link
Contributor Author

Sure, I will create another PR for the documentation

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