-
Notifications
You must be signed in to change notification settings - Fork 2.2k
refactor!: Change GitService
methods to pass required params by-value instead of by-ref
#3654
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
refactor!: Change GitService
methods to pass required params by-value instead of by-ref
#3654
Conversation
Please follow step 4 in CONTRIBUTING.md and push the changes to this PR. |
d124f0e
to
826440e
Compare
done ✔️ @gmlewis |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3654 +/- ##
==========================================
- Coverage 91.25% 91.20% -0.05%
==========================================
Files 185 185
Lines 16378 16360 -18
==========================================
- Hits 14945 14921 -24
- Misses 1249 1254 +5
- Partials 184 185 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
64a09b4
to
d813b23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @rupokghosh!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
Please extend the PR header to mention that only |
GitService
endpoints to pass required params by-value instead of by-ref
@alexandear - how's that? |
GitService
endpoints to pass required params by-value instead of by-refGitService
methods to pass required params by-value instead of by-ref
Whups, I think "methods" is better than "endpoints", agreed? |
d813b23
to
939e78a
Compare
update exmaples change to using values refactor(git)!: improve CreateRef API with value types and exported struct format new updateref struct remove backwards compatibility create tag in git tags slfhg
939e78a
to
92a65bb
Compare
let me know if we can merge this in now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @rupokghosh and @alexandear!
LGTM.
Merging.
BREAKING CHANGE:
GitService
methods now pass required params by-value instead of by-ref.What problem are you solving?
Notes
This is most likely going to be a multi PR issue, since this is my first time working on this codebase. I started by picking a "service" area ( Git ) and converted each function that I thought met the criteria set in the issue mentioned, which are: