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

Enable toggling for codecov slack app notifications #88

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

joseph-sentry
Copy link
Contributor

@joseph-sentry joseph-sentry commented Sep 5, 2023

This PR enables toggling for the slack app notifications via the codecov config slack_app option.

Requires updating shared to use the new codecov schema containing the slack_app option.

Fixes: codecov/engineering-team#401
Depends on: codecov/shared#34

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #88 (9968b87) into main (643129e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Changes have been made to critical files, which contain lines commonly executed in production. Learn more

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #88   +/-   ##
=======================================
  Coverage   98.48%   98.48%           
=======================================
  Files         364      364           
  Lines       26818    26826    +8     
=======================================
+ Hits        26412    26420    +8     
  Misses        406      406           
Flag Coverage Δ
integration 98.45% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.45% <100.00%> (+<0.01%) ⬆️
onlysomelabels 98.48% <100.00%> (+<0.01%) ⬆️
unit 98.45% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 97.14% <100.00%> (+<0.01%) ⬆️
OutsideTasks 98.25% <100.00%> (+<0.01%) ⬆️
Files Changed Coverage Δ
services/yaml/tests/test_yaml.py 100.00% <ø> (ø)
services/notification/__init__.py Critical 97.41% <100.00%> (+0.04%) ⬆️
...rvices/notification/notifiers/codecov_slack_app.py 100.00% <100.00%> (ø)
...ion/notifiers/tests/unit/test_codecov_slack_app.py 100.00% <100.00%> (ø)
Related Entrypoints
run/app.tasks.notify.Notify

decoration_type=self.decoration_type,
)
# yield notifier if slack_app field is True, nonexistent, or a non-empty dict
slack_app_yaml_field = read_yaml_field(self.current_yaml, ("slack_app",), True)
Copy link
Contributor

Choose a reason for hiding this comment

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

does this makes the slack app enabled by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

This commit enables toggling for the slack app notifications
via the codecov config slack_app option.

Signed-off-by: joseph-sentry <[email protected]>
@joseph-sentry joseph-sentry merged commit 53ecfc0 into main Sep 13, 2023
12 checks passed
@joseph-sentry joseph-sentry deleted the joseph/toggle-slack-app branch September 13, 2023 20:43
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.

Slack app notifications can be toggled on/off
3 participants