-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
API to get single commit via SHA and Ref #10915
API to get single commit via SHA and Ref #10915
Conversation
@lunny you could use |
@zeripath @lafriks @guillep2k so the summary of the discusion is ... we can pass the string as ref as it is. (for and if we restrict |
This will aid with a Drone feature that is not implemented for Gitea: drone/go-scm#50 |
Codecov Report
@@ Coverage Diff @@
## master #10915 +/- ##
==========================================
+ Coverage 43.40% 43.42% +0.01%
==========================================
Files 597 597
Lines 84527 84578 +51
==========================================
+ Hits 36692 36725 +33
- Misses 43311 43329 +18
Partials 4524 4524
Continue to review full report at Codecov.
|
I maintain my opinion that some sanitation should be performed 🙄. Commits are hex strings from 4 (min) to 40 (max) chars, all lower-case (regexp: |
6091661
to
6e53c78
Compare
c5c5d9c
to
c6c66e9
Compare
THIS is ready to review now |
CI fail looks unrelated @techknowlogick can we add this to 1.12.0? |
ready to merge 🚀 |
Breaking functionality resolved in #11368 |
* GET /repos/:owner/:repo/commits/:ref * add Validation Checks * Fix & Extend TEST * add two new tast cases
close #10089
GET /repos/:owner/:repo/commits/:ref