Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update pkg/plugins/github/pullrequest.go
Co-authored-by: Damien Duportal <[email protected]>
  • Loading branch information
olblak and dduportal authored Mar 2, 2021
commit 337d922849cd7ed4513e8115ff61293de5bda8d9
35 changes: 22 additions & 13 deletions pkg/plugins/github/pullrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,28 @@ import (
)

// PULLREQUESTBODY is the pull request template used as pull request description
const PULLREQUESTBODY = "## Report\n" +
"{{ .Report }}" +
"\n" +
"## Changelog\n" +
"<details><summary>Click to expand</summary>\n" +
"\n```\n" +
"{{ .Description }}\n" +
"```\n" +
"</details>\n" +
"\n" +
"## Remark\n" +
"This pull request was automatically created using [Updatecli](https://www.updatecli.io).\n" +
"Please report any issues with this tool [here](https://github.com/updatecli/updatecli/issues/new)\n"
// Please note that triple backticks are concatenated with the literals, as they cannot be escaped
const PULLREQUESTBODY = `

## Report

{{ .Report }}

## Changelog

<details><summary>Click to expand</summary>

` + "```\n{{ .Description }}\n```" + `

</details>

## Remark

This pull request was automatically created using [Updatecli](https://www.updatecli.io).

Please report any issues with this tool [here](https://github.com/updatecli/updatecli/issues/new)

`

// PullRequest contains multiple fields mapped to Github V4 api
type PullRequest struct {
Expand Down