-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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] Pull Requests #248
[API] Pull Requests #248
Conversation
Had to update the vendored |
@@ -101,3 +102,24 @@ func ExtractOwnerAndRepo() macaron.Handler { | |||
ctx.Data["Repository"] = repo | |||
} | |||
} | |||
|
|||
// ReferencesGitRepo ... I have no clue what this does :laughing: |
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.
Anyone wanna have a crack at guessing what this function does? 😆
@@ -584,6 +584,25 @@ func (err ErrPullRequestNotExist) Error() string { | |||
err.ID, err.IssueID, err.HeadRepoID, err.BaseRepoID, err.HeadBarcnh, err.BaseBranch) | |||
} | |||
|
|||
type ErrPullRequestAlreadyExists struct { |
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.
golint
@@ -0,0 +1,418 @@ | |||
// Copyright 2015 The Gogs Authors. All rights reserved. |
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.
comment :)
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.
Right, I'm not entirely sure if we can just change it, since I'm not the original author of this... @lstahlman is IIRC
8b131af
to
23e7ccc
Compare
There, fixed the things @lunny said, should be good for merging :) |
LGTM |
LGTM |
Builds are failing because of Linting, Need to so some final testing before this goes into master though... |
73311ac
to
6f22001
Compare
Builds are green! 😄 |
Verified that it works using the (currently under development) Gitea-importer in GitLab :) |
3d62890
to
4dbead0
Compare
So drop the status/wip label ? :) |
@strk since it was "Green" I tacked on the wip-label so no-one accidentally merged it 😛 |
Ops, an accident occurred ! |
Add Pull-Request API
Migrated and Rebased from gogs/gogs#3755