Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jun 15, 2023
1 parent 97e6283 commit 78e8264
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions internal/client/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ func headString(base, head Repo) string {
}

func (c *githubClient) getPRTemplate(ctx *context.Context, repo Repo) (string, error) {
// https://github.com/microsoft/winget-pkgs/blob/master/.github/PULL_REQUEST_TEMPLATE.md
content, _, _, err := c.client.Repositories.GetContents(ctx, repo.Owner, repo.Name, ".github/PULL_REQUEST_TEMPLATE.md", &github.RepositoryContentGetOptions{
Ref: repo.Branch,
})
content, _, _, err := c.client.Repositories.GetContents(
ctx, repo.Owner, repo.Name,
".github/PULL_REQUEST_TEMPLATE.md",
&github.RepositoryContentGetOptions{
Ref: repo.Branch,
},
)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 78e8264

Please sign in to comment.