From abe8d2a331585772a5eef7010cc264eefc41f8d4 Mon Sep 17 00:00:00 2001 From: galargh Date: Tue, 18 Jul 2023 14:56:08 +0200 Subject: [PATCH] chore: go fmt --- actions/prepare_branch.go | 4 ++-- github/github.go | 6 +++--- repos/boxo.go | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/actions/prepare_branch.go b/actions/prepare_branch.go index 8b747c5..554eab4 100644 --- a/actions/prepare_branch.go +++ b/actions/prepare_branch.go @@ -245,11 +245,11 @@ func (ctx PrepareBranch) GetBody(branch, foreword string) (string, error) { --- -### Kubo commits **NOT** included in this release +#### Kubo commits **NOT** included in this release %s -### Boxo commits **NOT** included in this release +#### Boxo commits **NOT** included in this release %s`, foreword, kuboCommitsStr, boxoCommitsStr), nil } diff --git a/github/github.go b/github/github.go index 740b6ed..d85c0f8 100644 --- a/github/github.go +++ b/github/github.go @@ -359,9 +359,9 @@ func (c *Client) GetOrCreatePR(owner, repo, head, base, title, body string, draf func (c *Client) UpdatePR(pr *github.PullRequest) error { log.WithFields(log.Fields{ - "owner": pr.Base.Repo.Owner.GetLogin(), - "repo": pr.Base.Repo.GetName(), - "number": pr.GetNumber(), + "owner": pr.Base.Repo.Owner.GetLogin(), + "repo": pr.Base.Repo.GetName(), + "number": pr.GetNumber(), }).Debug("Updating PR...") _, _, err := c.v3.PullRequests.Edit(context.Background(), pr.Base.Repo.Owner.GetLogin(), pr.Base.Repo.GetName(), pr.GetNumber(), pr) diff --git a/repos/boxo.go b/repos/boxo.go index 48ff662..67186e1 100644 --- a/repos/boxo.go +++ b/repos/boxo.go @@ -1,13 +1,13 @@ package repos type boxo struct { - Owner string - Repo string - DefaultBranch string + Owner string + Repo string + DefaultBranch string } var Boxo = boxo{ - Owner: "ipfs", - Repo: "boxo", - DefaultBranch: "main", + Owner: "ipfs", + Repo: "boxo", + DefaultBranch: "main", }