mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
21 lines
387 B
Go
21 lines
387 B
Go
|
package handler
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func parseRepo(r *http.Request) (host string, owner string, name string) {
|
||
|
host = r.FormValue(":host")
|
||
|
owner = r.FormValue(":owner")
|
||
|
name = r.FormValue(":name")
|
||
|
return
|
||
|
}
|
||
|
|
||
|
func parseBranch(r *http.Request) (branch string) {
|
||
|
return r.FormValue(":branch")
|
||
|
}
|
||
|
|
||
|
func parseCommit(r *http.Request) (commit string) {
|
||
|
return r.FormValue(":commit")
|
||
|
}
|