Return URL of issue opened
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
@@ -57,7 +57,7 @@ func (g *GithubIssuesOpener) Run(ctx context.Context, params action.ActionParams
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
resultString = fmt.Sprintf("Error creating issue: %v", err)
|
resultString = fmt.Sprintf("Error creating issue: %v", err)
|
||||||
} else {
|
} else {
|
||||||
resultString = fmt.Sprintf("Created issue %d in repository %s/%s", createdIssue.GetNumber(), result.Owner, result.Repository)
|
resultString = fmt.Sprintf("Created issue %d in repository %s/%s: %s", createdIssue.GetNumber(), result.Owner, result.Repository, createdIssue.GetURL())
|
||||||
}
|
}
|
||||||
|
|
||||||
return action.ActionResult{Result: resultString}, err
|
return action.ActionResult{Result: resultString}, err
|
||||||
|
|||||||
Reference in New Issue
Block a user