1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-06-30 22:13:45 +02:00

Replace drone strings with woodpecker (#391)

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Anbraten
2021-10-02 10:59:34 +02:00
committed by GitHub
parent ba0286d055
commit bb37836600
34 changed files with 126 additions and 126 deletions

View File

@ -93,7 +93,7 @@ func (c *Coding) Login(ctx context.Context, res http.ResponseWriter, req *http.R
// get the OAuth code
code := req.FormValue("code")
if len(code) == 0 {
http.Redirect(res, req, config.AuthCodeURL("drone"), http.StatusSeeOther)
http.Redirect(res, req, config.AuthCodeURL("woodpecker"), http.StatusSeeOther)
return nil, nil
}
@ -331,7 +331,7 @@ func (c *Coding) newClientToken(ctx context.Context, token string) *internal.Cli
},
},
}
return internal.NewClient(ctx, c.URL, "/api", token, "drone", client)
return internal.NewClient(ctx, c.URL, "/api", token, "woodpecker", client)
}
func (c *Coding) resourceLink(resourcePath string) string {