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

2876 no copilot for ba comment #953

Merged
merged 16 commits into from
Dec 16, 2024
Merged

Conversation

adrian-codecov
Copy link
Contributor

@adrian-codecov adrian-codecov commented Dec 9, 2024

The copilot AI button appears in every PR comment but should not appear in the BA PR comment. This solution adds a way to specify the upload type and manipulate the data being sent in Shared.

Haven't added tests to confirm approach is good but will do once I get the green light.

This PR needs to be updated to the latest shared once that merges in. codecov/shared#452

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Copy link

sentry-io bot commented Dec 9, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: services/repository.py

Function Unhandled Issue
get_repo_provider_service NoConfiguredAppsAvailable app.tasks.upload.Upload...
Event Count: 503
get_repo_provider_service NoConfiguredAppsAvailable app.tasks.bundle_analys...
Event Count: 1

Did you find this useful? React with a 👍 or 👎

Copy link

github-actions bot commented Dec 9, 2024

This PR includes changes to shared. Please review them here: codecov/shared@8c5de3f...09f1c66

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.99%. Comparing base (2470ecc) to head (a040a04).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #953   +/-   ##
=======================================
  Coverage   97.99%   97.99%           
=======================================
  Files         443      443           
  Lines       35750    35781   +31     
=======================================
+ Hits        35034    35065   +31     
  Misses        716      716           
Flag Coverage Δ
integration 42.15% <47.05%> (-0.01%) ⬇️
unit 90.64% <94.11%> (+<0.01%) ⬆️

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

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

@codecov-notifications
Copy link

codecov-notifications bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Copy link

github-actions bot commented Dec 9, 2024

✅ All tests successful. No failed tests were found.

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

Copy link
Contributor

@giovanni-guidini giovanni-guidini left a comment

Choose a reason for hiding this comment

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

interesting choice to add more data to the service overall instead of changing just the functions related to PR comment. I think it's perfectly valid and we might have more difference in behaviors in the future.

Don't we need to do the same for TA?

@@ -39,6 +44,7 @@
def get_repo_provider_service(
repository: Repository,
installation_name_to_use: str = GITHUB_APP_INSTALLATION_DEFAULT_NAME,
additional_data: AdditionalData = {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Apparently this is not recommended.
See https://docs.astral.sh/ruff/rules/mutable-argument-default/

Copy link

github-actions bot commented Dec 13, 2024

This PR includes changes to shared. Please review them here: codecov/shared@8c5de3f...e41a4a1

@adrian-codecov adrian-codecov added this pull request to the merge queue Dec 16, 2024
Merged via the queue into main with commit 0f8147b Dec 16, 2024
26 of 27 checks passed
@adrian-codecov adrian-codecov deleted the 2876-no-copilot-for-BA-comment branch December 16, 2024 14:56
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