Skip to content

Commit

Permalink
Merge pull request #4 from lowply/lowply/urlencode
Browse files Browse the repository at this point in the history
url.QueryEscape for label as label name can contain a space
  • Loading branch information
lowply authored Apr 26, 2021
2 parents 4d253cc + d683f7d commit 4b7c4d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auto_closer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"strconv"
"strings"
Expand Down Expand Up @@ -43,7 +44,7 @@ func newAutoCloser() (*autoCloser, error) {
a.token = os.Getenv("GITHUB_TOKEN")
a.repository = os.Getenv("GITHUB_REPOSITORY")
a.label = os.Getenv("AC_LABEL")
a.endpoint = "https://api.github.com/repos/" + a.repository + "/issues?labels=" + a.label
a.endpoint = "https://api.github.com/repos/" + a.repository + "/issues?labels=" + url.QueryEscape(a.label)
return a, nil
}

Expand Down

0 comments on commit 4b7c4d2

Please sign in to comment.