Show pull request commits #332

Closed
opened 2020-06-04 02:26:06 +00:00 by 6543 · 7 comments
Member
  • Commit viw from branches could be reused
  • same api coud be used with pull head.commit.sha or pull rev ... but it would be usefull if only commits between head and base branch are displayed
* Commit viw from branches could be reused * same api coud be used with pull head.commit.sha or pull rev ... but it would be usefull if only commits between head and base branch are displayed
6543 added the
🛰️ API-dependency
🎉 Feature
🪜 Upstream
labels 2020-06-04 02:26:06 +00:00
Owner

Is there an Api for this yet. I beleive not yet.

Is there an Api for this yet. I beleive not yet.
Author
Member
Upstream: https://github.com/go-gitea/gitea/issues/10918
Owner

Thank You.

Will this API provide single commit changes?

https://github.com/go-gitea/gitea/issues/10871

Thank You. Will this API provide single commit changes? https://github.com/go-gitea/gitea/issues/10871
Author
Member

#10871 is simmilar - but you can compare anything

#10918 <- you need the pull index to get commits
#10871 <- you have to fetch head base and its sorce repos names first then call the api to get the same result ...

I think both api endpoints are good to have and they could share some codebase :)

#10871 is simmilar - but you can compare anything #10918 <- you need the pull index to get commits #10871 <- you have to fetch head base and its sorce repos names first then call the api to get the same result ... I think both api endpoints are good to have and they could share some codebase :)
Owner

Yup that's right.

My actual question is to have API to get the commit changes like below not list of commits.

b2f34f819c

I guess there is no API and issue created for it yet if above #10918 is not for it.

Yup that's right. My actual question is to have API to get the commit changes like below not list of commits. https://gitea.com/gitnex/GitNex/commit/b2f34f819c4958130b056c1f9535b76175d9e4f3 I guess there is no API and issue created for it yet if above #10918 is not for it.
Author
Member

@mmarif I dont think this will happen since the main "API" for this is git

but you have access to this inf via this:

  • a commit by sha as diff/patch:
    https://gitea.com/gitnex/GitNex/commit/b2f34f819c4958130b056c1f9535b76175d9e4f3.diff
    https://gitea.com/gitnex/GitNex/commit/b2f34f819c4958130b056c1f9535b76175d9e4f3.patch
@mmarif I dont think this will happen since the main "API" for this is `git` but you have access to this inf via this: * a commit by sha as diff/patch: `https://gitea.com/gitnex/GitNex/commit/b2f34f819c4958130b056c1f9535b76175d9e4f3.diff` `https://gitea.com/gitnex/GitNex/commit/b2f34f819c4958130b056c1f9535b76175d9e4f3.patch`
Contributor

This was added in Gitea 1.15: https://github.com/go-gitea/gitea/pull/16300

This was added in Gitea 1.15: https://github.com/go-gitea/gitea/pull/16300
qwerty287 removed the
🪜 Upstream
🛰️ API-dependency
labels 2021-09-16 12:58:16 +00:00
qwerty287 changed title from [New] Show pull request commits to Show pull request commits 2022-05-04 15:15:15 +00:00
qwerty287 added this to the 4.4.0 milestone 2022-06-03 05:36:48 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#332
No description provided.