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: TA/BA Comment Messaging #1118

Merged
merged 7 commits into from
Mar 5, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
detail summary, always show
  • Loading branch information
ajay-sentry committed Mar 1, 2025
commit 780fc0a441ad3e6c6281f134fb7dfb48595cfef5
23 changes: 12 additions & 11 deletions services/notification/notifiers/mixins/message/__init__.py
Original file line number Diff line number Diff line change
@@ -187,22 +187,23 @@ def create_message(
)
extra_message = []

if not self.repository.test_analytics_enabled:
extra_message.append(
"- ❄ [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems."
)
if not self.repository.bundle_analysis_enabled and set(
{"javascript", "typescript"}
).intersection(self.repository.languages or {}):
extra_message.append(
"- 📦 [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges."
)
# if not self.repository.test_analytics_enabled:
extra_message.append(
"- ❄ [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems."
)
# if not self.repository.bundle_analysis_enabled and set(
# {"javascript", "typescript"}
# ).intersection(self.repository.languages or {}):
extra_message.append(
"- 📦 [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges."
)

if extra_message:
for i in [
"🚀 New features to boost your workflow:",
"<details><summary>🚀 New features to boost your workflow: </summary>",
"",
*extra_message,
"</details>",
]:
write(i)

Loading
Oops, something went wrong.