mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
comment fix (#98)
This commit is contained in:
parent
1eba93695b
commit
49cd521593
@ -25,7 +25,7 @@ type CreateInput struct {
|
||||
TargetBranch string `json:"targetBranch"`
|
||||
}
|
||||
|
||||
// Create creates a new repository.
|
||||
// Create creates a new pull request.
|
||||
func (c *Controller) Create(ctx context.Context, session *auth.Session, repoRef string, in *CreateInput) (*types.PullReq, error) {
|
||||
var pr *types.PullReq
|
||||
now := time.Now().UnixMilli()
|
||||
@ -64,7 +64,7 @@ func (c *Controller) Create(ctx context.Context, session *auth.Session, repoRef
|
||||
return err
|
||||
}
|
||||
|
||||
// create new repo object
|
||||
// create new pull request object
|
||||
pr = &types.PullReq{
|
||||
ID: 0, // the ID will be populated in the data layer
|
||||
CreatedBy: session.Principal.ID,
|
||||
|
Loading…
x
Reference in New Issue
Block a user