yp05327 10 months ago committed by GitHub
parent 5d3fdd1212
commit c7e4629c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/private/actions.go
  2. 3
      modules/private/key.go
  3. 3
      modules/private/mail.go

@ -22,5 +22,8 @@ func GenerateActionsRunnerToken(ctx context.Context, scope string) (string, Resp
})
resp, extra := requestJSONResp(req, &responseText{})
if resp == nil {
return "", extra
}
return resp.Text, extra
}

@ -27,5 +27,8 @@ func AuthorizedPublicKeyByContent(ctx context.Context, content string) (string,
req := newInternalRequest(ctx, reqURL, "POST")
req.Param("content", content)
resp, extra := requestJSONResp(req, &responseText{})
if resp == nil {
return "", extra
}
return resp.Text, extra
}

@ -30,5 +30,8 @@ func SendEmail(ctx context.Context, subject, message string, to []string) (strin
})
resp, extra := requestJSONResp(req, &responseText{})
if resp == nil {
return "", extra
}
return resp.Text, extra
}

Loading…
Cancel
Save