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

Consolidate API for getting single commit #11368

Merged
merged 4 commits into from
May 11, 2020
Merged

Conversation

CirnoT
Copy link
Contributor

@CirnoT CirnoT commented May 11, 2020

This is an alternative to #11367

As discussed on Discord; this PR removes new API endpoint introduced by #10915 and reverts it's breaking change of disallowing Git ref on already existing ones. It makes drone/go-scm#50 unnecessary.

In addition, this PR updates documentation regarding this API endpoint to make it obvious that it accepts valid git ref.

Functionally, #10915 made no changes except introducing redundant API endpoint.

Closes #11367

@CirnoT CirnoT changed the title Patch 8 Consolidate API for getting single commit May 11, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 11, 2020
@lafriks lafriks added this to the 1.12.0 milestone May 11, 2020
@lafriks lafriks added issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself modifies/api This PR adds API routes or modifies them labels May 11, 2020
Copy link
Contributor

@zeripath zeripath left a comment

Choose a reason for hiding this comment

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

I never liked the breaking change re: 40 byte shas it seemed unnecessary to me.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 11, 2020
@lafriks lafriks added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label May 11, 2020
@lafriks
Copy link
Member

lafriks commented May 11, 2020

make lg-tm work

@lafriks lafriks merged commit 32b8172 into go-gitea:master May 11, 2020
@CirnoT CirnoT deleted the patch-8 branch May 11, 2020 20:01
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* Allow Git ref for /repos/{owner}/{repo}/git/commits/{sha}

* Consolidate API for getting single commit

* Fix tests and do it differently

Co-authored-by: zeripath <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants