mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
When we copy a Pull Request from CE to Ent we already add a status comment to the origin PR but we don't actually bubble up the information to the workflow summary. Instead, render the copy PR output as a markdown table and write it to the step summary. Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
parent
7efe8aa99b
commit
7e098d833b
1 changed files with 4 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ func runCopyGithubPullRequestCmd(cmd *cobra.Command, args []string) error {
|
|||
return errors.Join(err, err1)
|
||||
}
|
||||
fmt.Println(string(b))
|
||||
case "markdown":
|
||||
tbl := res.ToTable(err)
|
||||
tbl.SetTitle("Copy Pull Request")
|
||||
fmt.Println(tbl.RenderMarkdown())
|
||||
default:
|
||||
fmt.Println(res.ToTable(err).Render())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue