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

Remove repo from function for modifying requests #3252

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

fthomas
Copy link
Member

@fthomas fthomas commented Dec 23, 2023

This removes the unnecessary Repo parameter from the function for modifying requests to add authentication headers. This parameter was added in #373 but wasn't ever used as can be observed in the diff of ForgeSelection. My motivation for adding Repo back then was to eventually use different credentials for different repositories for proper GitHub App support. But #3250 demonstrates that we can achieve this without this extra parameter.

This removes the unnecessary `Repo` parameter from the function for
modifying requests to add authentication headers. This parameter was
added in #373 but wasn't ever used as can be observed in the diff of
`ForgeSelection`. My motivation for adding `Repo` back then was to
eventually use different credentials for different repositories
for proper GitHub App support. But #3250 demonstrates that we can
achieve this without this extra parameter.
@fthomas fthomas added this to the 0.29.0 milestone Dec 23, 2023
Copy link

codecov bot commented Dec 23, 2023

Codecov Report

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

Comparison is base (556eb5c) 91.18% compared to head (881d322) 91.18%.

Files Patch % Lines
...steward/core/forge/bitbucket/BitbucketApiAlg.scala 90.90% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3252   +/-   ##
=======================================
  Coverage   91.18%   91.18%           
=======================================
  Files         167      167           
  Lines        3404     3404           
  Branches      306      306           
=======================================
  Hits         3104     3104           
  Misses        300      300           

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

@fthomas fthomas merged commit ce93c01 into main Dec 28, 2023
@fthomas fthomas deleted the topic/rm-repo-from-modify branch December 28, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants