forked from forgejo/forgejo
Vendor Update: go-gitlab v0.22.1 -> v0.31.0 (#11136)
* vendor update: go-gitlab to v0.31.0 * migrate client init to v0.31.0 * refactor
This commit is contained in:
parent
5c092eb0ef
commit
82dbb34c9c
256 changed files with 36039 additions and 12965 deletions
6
vendor/github.com/xanzy/go-gitlab/todos.go
generated
vendored
6
vendor/github.com/xanzy/go-gitlab/todos.go
generated
vendored
|
@ -134,7 +134,7 @@ type ListTodosOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/todos.html#get-a-list-of-todos
|
||||
func (s *TodosService) ListTodos(opt *ListTodosOptions, options ...OptionFunc) ([]*Todo, *Response, error) {
|
||||
func (s *TodosService) ListTodos(opt *ListTodosOptions, options ...RequestOptionFunc) ([]*Todo, *Response, error) {
|
||||
req, err := s.client.NewRequest("GET", "todos", opt, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -152,7 +152,7 @@ func (s *TodosService) ListTodos(opt *ListTodosOptions, options ...OptionFunc) (
|
|||
// MarkTodoAsDone marks a single pending todo given by its ID for the current user as done.
|
||||
//
|
||||
// GitLab API docs: https://docs.gitlab.com/ce/api/todos.html#mark-a-todo-as-done
|
||||
func (s *TodosService) MarkTodoAsDone(id int, options ...OptionFunc) (*Response, error) {
|
||||
func (s *TodosService) MarkTodoAsDone(id int, options ...RequestOptionFunc) (*Response, error) {
|
||||
u := fmt.Sprintf("todos/%d/mark_as_done", id)
|
||||
|
||||
req, err := s.client.NewRequest("POST", u, nil, options)
|
||||
|
@ -166,7 +166,7 @@ func (s *TodosService) MarkTodoAsDone(id int, options ...OptionFunc) (*Response,
|
|||
// MarkAllTodosAsDone marks all pending todos for the current user as done.
|
||||
//
|
||||
// GitLab API docs: https://docs.gitlab.com/ce/api/todos.html#mark-all-todos-as-done
|
||||
func (s *TodosService) MarkAllTodosAsDone(options ...OptionFunc) (*Response, error) {
|
||||
func (s *TodosService) MarkAllTodosAsDone(options ...RequestOptionFunc) (*Response, error) {
|
||||
req, err := s.client.NewRequest("POST", "todos/mark_as_done", nil, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue