From 49cd5215939b264159fcff1ee890b0e5ceadc53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Ga=C4=87e=C5=A1a?= Date: Tue, 29 Nov 2022 17:00:28 +0100 Subject: [PATCH] comment fix (#98) --- internal/api/controller/pullreq/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/controller/pullreq/create.go b/internal/api/controller/pullreq/create.go index 149815752..53da806eb 100644 --- a/internal/api/controller/pullreq/create.go +++ b/internal/api/controller/pullreq/create.go @@ -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,