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

Add option for Telegram to use a thread id when posting notification #265

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Add option for Telegram to use a thread id when posting notification #265

merged 3 commits into from
Feb 13, 2024

Conversation

Techwolf12
Copy link
Contributor

This also migrates the go library to the one from OvyFlash, since the current one seems to be no longer maintained:
go-telegram-bot-api/telegram-bot-api#695

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

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

Comparison is base (ace379e) 55.14% compared to head (4479ff4) 55.50%.

Files Patch % Lines
pkg/services/telegram.go 42.85% 15 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #265      +/-   ##
==========================================
+ Coverage   55.14%   55.50%   +0.36%     
==========================================
  Files          35       35              
  Lines        3400     3412      +12     
==========================================
+ Hits         1875     1894      +19     
+ Misses       1251     1242       -9     
- Partials      274      276       +2     

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

go.mod Show resolved Hide resolved
pkg/services/telegram.go Show resolved Hide resolved
Signed-off-by: Christiaan de Die le Clercq <[email protected]>
Copy link
Member

@pasha-codefresh pasha-codefresh left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@pasha-codefresh pasha-codefresh merged commit 743f877 into argoproj:master Feb 13, 2024
4 of 5 checks passed
kzap added a commit to kzap/argo-rollouts that referenced this pull request Feb 20, 2024
- Update go.mod: github.com/go-telegram-bot-api/telegram-bot-api/v5 => github.com/OvyFlash/telegram-bot-api/v5 v5.0.0-20240108230938-63e5c59035bf
  - Ref: argoproj/notifications-engine#265
- Could also be done via go replace --edit
- go mod tidy also ran

Signed-off-by: Andre Marcelo-Tanner <[email protected]>
zachaller pushed a commit to argoproj/argo-rollouts that referenced this pull request Feb 27, 2024
* Run: go get github.com/argoproj/notifications-engine@7a069766e95476e1074eeed6145085160e2fec63

Updating and fetch latest notifications-engine dependencies

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Run: go get github.com/argoproj/notifications-engine/pkg/[email protected]

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Replace telegram-bot-api and run go mod tidy

- Update go.mod: github.com/go-telegram-bot-api/telegram-bot-api/v5 => github.com/OvyFlash/telegram-bot-api/v5 v5.0.0-20240108230938-63e5c59035bf
  - Ref: argoproj/notifications-engine#265
- Could also be done via go replace --edit
- go mod tidy also ran

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Add strReplaceDocFiles to update strings from default docs

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Run: make docs

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* replace <config-map-name> with argo-rollouts-notification-configmap and also replace secret with argocd-notifications-secret

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* add Ada company to USERS.md

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* chore: update contributing docs with notifications engine section

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

---------

Signed-off-by: Andre Marcelo-Tanner <[email protected]>
ParjadM pushed a commit to ParjadM/ArgoRollOut that referenced this pull request Dec 8, 2024
* Run: go get github.com/argoproj/notifications-engine@7a069766e95476e1074eeed6145085160e2fec63

Updating and fetch latest notifications-engine dependencies

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Run: go get github.com/argoproj/notifications-engine/pkg/[email protected]

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Replace telegram-bot-api and run go mod tidy

- Update go.mod: github.com/go-telegram-bot-api/telegram-bot-api/v5 => github.com/OvyFlash/telegram-bot-api/v5 v5.0.0-20240108230938-63e5c59035bf
  - Ref: argoproj/notifications-engine#265
- Could also be done via go replace --edit
- go mod tidy also ran

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Add strReplaceDocFiles to update strings from default docs

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* Run: make docs

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* replace <config-map-name> with argo-rollouts-notification-configmap and also replace secret with argocd-notifications-secret

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* add Ada company to USERS.md

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

* chore: update contributing docs with notifications engine section

Signed-off-by: Andre Marcelo-Tanner <[email protected]>

---------

Signed-off-by: Andre Marcelo-Tanner <[email protected]>
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