Skip to content

Commit

Permalink
chore: update playgroud server
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 4, 2021
1 parent 803d4cd commit 560872a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/whatchanged-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func handler(w http.ResponseWriter, r *http.Request) {

query := r.URL.Query()

username := query.Get("username")
repo := query.Get("repo")
branch := query.Get("branch")
version := query.Get("version")
Expand All @@ -64,9 +63,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
branch = branchDecoded
}

url := fmt.Sprintf("https://github.com/%s/%s", username, repo)

if err = whatchanged.Generate(r.Context(), url, output, &option.Options{
if err = whatchanged.Generate(r.Context(), repo, output, &option.Options{
Version: regexp.MustCompile(`\s+`).Split(version, -1),
Branch: branch,
Template: template,
Expand Down

0 comments on commit 560872a

Please sign in to comment.