fix(workflow run): apply url.PathEscape when compiling URL
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
3e9fbbb2fa
commit
36a85fd71f
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strings"
|
||||
|
|
@ -319,7 +320,7 @@ func runRun(opts *RunOptions) error {
|
|||
returnRunDetailsSupported = features.DispatchRunDetails
|
||||
}
|
||||
|
||||
path := fmt.Sprintf("repos/%s/actions/workflows/%d/dispatches", ghrepo.FullName(repo), workflow.ID)
|
||||
path := fmt.Sprintf("repos/%s/%s/actions/workflows/%d/dispatches", url.PathEscape(repo.RepoOwner()), url.PathEscape(repo.RepoName()), workflow.ID)
|
||||
|
||||
requestBody := map[string]interface{}{
|
||||
"ref": ref,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue