Skip to content

Conversation

kmadel
Copy link
Contributor

@kmadel kmadel commented Aug 30, 2016

Regarding #3484

Requires gogs/go-gogs-client#47

HeadBranch: pr.HeadBranch,
HeadRepo: pr.HeadRepo.APIFormat(nil),
BaseBranch: pr.BaseBranch,
BaseRepo: pr.BaseRepo.APIFormat(nil),
Copy link
Member

@unknwon unknwon Aug 30, 2016

Choose a reason for hiding this comment

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

State: apiIssue.State,
Comments: apiIssue.Comments,
HeadBranch: pr.HeadBranch,
HeadRepo: pr.HeadRepo.APIFormat(nil),
Copy link
Member

Choose a reason for hiding this comment

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

Have you check all the places that calls PullRequest.APIFormat ensure HeadRepo and BaseRepo are not nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will double check - OR would it be better to do a nil check here and return nil?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added nil checks and comments

@unknwon unknwon added the status: needs feedback Tell me more about it label Aug 30, 2016
@kmadel kmadel mentioned this pull request Sep 2, 2016
@lstahlman
Copy link
Contributor

Any update on this PR?

@marcinwyszynski
Copy link

It would be fantastic to have this data. I'm trying to add Gogs support to codebeat and we're missing crucial pieces of info in the webhook payload:

  • source ref;
  • source repo;
  • base ref;
  • base repo;
  • last source commit hash;

GitHub, Bitbucket and Gitlab all provide these fields on one form or another so they're pretty much an industry standard and enable cool integrations.

@hhenkel
Copy link

hhenkel commented Nov 9, 2016

@kmadel Would it be possible for you to open this PR also on https://github.com/go-gitea/gitea ?

@kmadel
Copy link
Contributor Author

kmadel commented Nov 10, 2016

@hhenkel sure, np

@unknwon
Copy link
Member

unknwon commented Dec 22, 2016

Thanks!

@unknwon unknwon merged commit 3b0e2c1 into gogs:develop Dec 22, 2016
unknwon added a commit that referenced this pull request Dec 22, 2016
Martchus pushed a commit to Martchus/gogs that referenced this pull request Aug 27, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: needs feedback Tell me more about it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants