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

fix: Fix link to custom gh app for self-hosted #3492

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

suejung-sentry
Copy link
Contributor

@suejung-sentry suejung-sentry commented Nov 13, 2024

Self-hosted deployments (config.IS_SELF_HOSTED, for Dedicated Enterprise Cloud customers and self-hosted) cannot use the default GitHub codecov app that can be installed from this link: https://github.com/apps/codecov/installations/select_target

Instead, that slug codecov needs to be replaced by the custom GitHub app name as explained in our docs here
So something like https://github.com/apps/my-custom-app-name/installations/select_target
Note that the slug ("GitHub App Name") is a lowercase hyphen separated string version of the entered name

Update the "Install Codecov GitHub app" link in the header to redirect to the custom app based on the existing env var (REACT_APP_GH_APP=my-custom-app-name).

Screenshot 2024-11-12 at 6 25 07 PM

Closes codecov/engineering-team#2251

Copy link

codecov bot commented Nov 13, 2024

Bundle Report

Changes will decrease total bundle size by 192 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.56MB 51 bytes (-0.0%) ⬇️
gazebo-production-system-esm 5.61MB 141 bytes (-0.0%) ⬇️

@codecov-staging
Copy link

codecov-staging bot commented Nov 13, 2024

Bundle Report

Changes will decrease total bundle size by 262 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.61MB 253 bytes (-0.0%) ⬇️
gazebo-staging-system 5.56MB 9 bytes (-0.0%) ⬇️

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.09%. Comparing base (0953a88) to head (3720d49).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3492   +/-   ##
=======================================
  Coverage   99.09%   99.09%           
=======================================
  Files         806      806           
  Lines       14354    14358    +4     
  Branches     4075     4083    +8     
=======================================
+ Hits        14224    14228    +4     
  Misses        123      123           
  Partials        7        7           
Files with missing lines Coverage Δ
src/config.js 95.00% <100.00%> (+0.26%) ⬆️
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.81% <ø> (ø)
Services 99.36% <100.00%> (ø)
Shared 99.73% <ø> (ø)
UI 99.21% <100.00%> (+<0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0953a88...3720d49. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3492   +/-   ##
=======================================
  Coverage   99.09%   99.09%           
=======================================
  Files         806      806           
  Lines       14354    14358    +4     
  Branches     4075     4076    +1     
=======================================
+ Hits        14224    14228    +4     
  Misses        123      123           
  Partials        7        7           
Files with missing lines Coverage Δ
src/config.js 95.00% <100.00%> (+0.26%) ⬆️
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.81% <ø> (ø)
Services 99.36% <100.00%> (ø)
Shared 99.73% <ø> (ø)
UI 99.21% <100.00%> (+<0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0953a88...3720d49. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.09%. Comparing base (0953a88) to head (3720d49).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3492   +/-   ##
=======================================
  Coverage   99.09%   99.09%           
=======================================
  Files         806      806           
  Lines       14354    14358    +4     
  Branches     4082     4083    +1     
=======================================
+ Hits        14224    14228    +4     
  Misses        123      123           
  Partials        7        7           
Files with missing lines Coverage Δ
src/config.js 95.00% <100.00%> (+0.26%) ⬆️
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.81% <ø> (ø)
Services 99.36% <100.00%> (ø)
Shared 99.73% <ø> (ø)
UI 99.21% <100.00%> (+<0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0953a88...3720d49. Read the comment docs.

Copy link

codecov-public-qa bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.09%. Comparing base (0953a88) to head (3720d49).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3492   +/-   ##
=======================================
  Coverage   99.09%   99.09%           
=======================================
  Files         806      806           
  Lines       14354    14358    +4     
  Branches     4082     4083    +1     
=======================================
+ Hits        14224    14228    +4     
  Misses        123      123           
  Partials        7        7           
Files with missing lines Coverage Δ
src/config.js 95.00% <100.00%> (+0.26%) ⬆️
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.81% <ø> (ø)
Services 99.36% <100.00%> (ø)
Shared 99.73% <ø> (ø)
UI 99.21% <100.00%> (+<0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0953a88...3720d49. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Nov 13, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
d00f04d Wed, 13 Nov 2024 02:34:05 GMT Expired Expired
0363ea3 Wed, 13 Nov 2024 20:51:08 GMT Expired Expired
3720d49 Wed, 13 Nov 2024 21:05:06 GMT Cloud Enterprise

@@ -60,7 +60,7 @@ describe('useStaticNavLinks', () => {
${links.uploaderCLI} | ${'https://docs.codecov.com/docs/codecov-uploader#using-the-cli-to-upload-reports-with-codecovio-cloud'}
${links.integrityCheck} | ${'https://docs.codecov.com/docs/codecov-uploader#integrity-checking-the-uploader'}
${links.codecovGithubApp} | ${'https://github.com/apps/codecov'}
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe replace this one too? Not sure where used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah good catch. I updated to pull from the var (which is set to codecov by default). It's used in some banners it looks like - I won't hide in those cases since the close-enough link is probably better than no link

@suejung-sentry
Copy link
Contributor Author

Removed the "Switch context" row per this convo

Screenshot 2024-11-13 at 2 27 13 PM

@suejung-sentry
Copy link
Contributor Author

I'll wait for this before merging this - https://github.com/codecov/internal-issues/issues/1073

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.

[Self hosted] Add GH organization button links to cloud GH app, even when custom app is configured
3 participants