From f4c0275714ef93d44a76ccc5d4013aadc575f4ea Mon Sep 17 00:00:00 2001 From: Gary Holtz Date: Tue, 4 Feb 2025 22:23:00 -0600 Subject: [PATCH] chore: Upgrading client-go, fixing tests --- commands/ci/get/testdata/ci_get.result | 2 +- commands/ci/list/testdata/ciList.json | 5 +- commands/issuable/list/issuable_list.go | 16 ++--- commands/mr/list/testdata/mrList.json | 58 ++++++++----------- .../release/releaseutils/upload/upload.go | 2 +- docs/source/incident/list.md | 4 +- docs/source/issue/list.md | 4 +- go.mod | 4 +- go.sum | 12 ++-- 9 files changed, 51 insertions(+), 56 deletions(-) diff --git a/commands/ci/get/testdata/ci_get.result b/commands/ci/get/testdata/ci_get.result index d2cb64081..625fab127 100644 --- a/commands/ci/get/testdata/ci_get.result +++ b/commands/ci/get/testdata/ci_get.result @@ -1 +1 @@ -{"id":452959326,"iid":14,"project_id":29316529,"status":"success","source":"push","ref":"1-fake-issue-3","name":"","sha":"44eb489568f7cb1a5a730fce6b247cd3797172ca","before_sha":"001eb421e586a3f07f90aea102c8b2d4068ab5b6","tag":false,"yaml_errors":"","user":{"id":8814129,"username":"OWNER","name":"Some User","state":"active","created_at":null,"avatar_url":"https://gitlab.com/uploads/-/system/user/avatar/8814129/avatar.png","web_url":"https://gitlab.com/OWNER"},"updated_at":"2022-01-20T21:47:31.358Z","created_at":"2022-01-20T21:47:16.276Z","started_at":"2022-01-20T21:47:17.448Z","finished_at":"2022-01-20T21:47:31.35Z","committed_at":null,"duration":14,"queued_duration":1,"coverage":"","web_url":"https://gitlab.com/OWNER/REPO/-/pipelines/452959326","detailed_status":{"icon":"status_success","text":"Passed","label":"passed","group":"success","tooltip":"passed","has_details":true,"details_path":"/OWNER/REPO/-/pipelines/452959326","illustration":{"image":""},"favicon":"/assets/ci_favicons/favicon_status_success-8451333011eee8ce9f2ab25dc487fe24a8758c694827a582f17f42b0a90446a2.png"},"jobs":[{"commit":{"id":"44eb489568f7cb1a5a730fce6b247cd3797172ca","short_id":"44eb4895","title":"Add new file","author_name":"Some User","author_email":"OWNER@gitlab.com","authored_date":"2022-01-20T21:47:15Z","committer_name":"Some User","committer_email":"OWNER@gitlab.com","committed_date":"2022-01-20T21:47:15Z","created_at":"2022-01-20T21:47:15Z","message":"Add new file","parent_ids":["001eb421e586a3f07f90aea102c8b2d4068ab5b6"],"stats":null,"status":null,"last_pipeline":null,"project_id":0,"trailers":{},"extended_trailers":{},"web_url":"https://gitlab.com/OWNER/REPO/-/commit/44eb489568f7cb1a5a730fce6b247cd3797172ca"},"coverage":0,"allow_failure":false,"created_at":"2022-01-20T21:47:16.291Z","started_at":"2022-01-20T21:47:16.693Z","finished_at":"2022-01-20T21:47:31.274Z","erased_at":null,"duration":14.580467,"queued_duration":0.211715,"artifacts_expire_at":null,"tag_list":[],"id":1999017704,"name":"test_vars","pipeline":{"id":452959326,"project_id":29316529,"ref":"1-fake-issue-3","sha":"44eb489568f7cb1a5a730fce6b247cd3797172ca","status":"success"},"ref":"1-fake-issue-3","artifacts":[{"file_type":"trace","filename":"job.log","size":2770,"file_format":""}],"artifacts_file":{"filename":"","size":0},"runner":{"id":12270859,"description":"5-green.saas-linux-small-amd64.runners-manager.gitlab.com/default","active":true,"is_shared":true,"name":"gitlab-runner"},"stage":"test","status":"success","failure_reason":"","tag":false,"web_url":"https://gitlab.com/OWNER/REPO/-/jobs/1999017704","project":{"id":0,"description":"","default_branch":"","visibility":"","ssh_url_to_repo":"","http_url_to_repo":"","web_url":"","readme_url":"","tag_list":null,"topics":null,"owner":null,"name":"","name_with_namespace":"","path":"","path_with_namespace":"","issues_enabled":false,"open_issues_count":0,"merge_requests_enabled":false,"approvals_before_merge":0,"jobs_enabled":false,"wiki_enabled":false,"snippets_enabled":false,"resolve_outdated_diff_discussions":false,"container_registry_enabled":false,"container_registry_access_level":"","creator_id":0,"namespace":null,"permissions":null,"marked_for_deletion_at":null,"empty_repo":false,"archived":false,"avatar_url":"","license_url":"","license":null,"shared_runners_enabled":false,"group_runners_enabled":false,"runner_token_expiration_interval":0,"forks_count":0,"star_count":0,"runners_token":"","allow_merge_on_skipped_pipeline":false,"allow_pipeline_trigger_approve_deployment":false,"only_allow_merge_if_pipeline_succeeds":false,"only_allow_merge_if_all_discussions_are_resolved":false,"remove_source_branch_after_merge":false,"prevent_merge_without_jira_issue":false,"printing_merge_request_link_enabled":false,"lfs_enabled":false,"repository_storage":"","request_access_enabled":false,"merge_method":"","can_create_merge_request_in":false,"forked_from_project":null,"mirror":false,"mirror_user_id":0,"mirror_trigger_builds":false,"only_mirror_protected_branches":false,"mirror_overwrites_diverged_branches":false,"packages_enabled":false,"service_desk_enabled":false,"service_desk_address":"","issues_access_level":"","repository_access_level":"","merge_requests_access_level":"","forking_access_level":"","wiki_access_level":"","builds_access_level":"","snippets_access_level":"","pages_access_level":"","operations_access_level":"","analytics_access_level":"","environments_access_level":"","feature_flags_access_level":"","infrastructure_access_level":"","monitor_access_level":"","autoclose_referenced_issues":false,"suggestion_commit_message":"","squash_option":"","shared_with_groups":null,"statistics":null,"import_url":"","import_type":"","import_status":"","import_error":"","ci_default_git_depth":0,"ci_forward_deployment_enabled":false,"ci_forward_deployment_rollback_allowed":false,"ci_separated_caches":false,"ci_job_token_scope_enabled":false,"ci_opt_in_jwt":false,"ci_allow_fork_pipelines_to_run_in_parent_project":false,"ci_restrict_pipeline_cancellation_role":"","public_jobs":false,"build_timeout":0,"auto_cancel_pending_pipelines":"","ci_config_path":"","custom_attributes":null,"compliance_frameworks":null,"build_coverage_regex":"","issues_template":"","merge_requests_template":"","issue_branch_template":"","keep_latest_artifact":false,"merge_pipelines_enabled":false,"merge_trains_enabled":false,"restrict_user_defined_variables":false,"ci_pipeline_variables_minimum_override_role":"","merge_commit_template":"","squash_commit_template":"","auto_devops_deploy_strategy":"","auto_devops_enabled":false,"build_git_strategy":"","emails_enabled":false,"external_authorization_classification_label":"","requirements_enabled":false,"requirements_access_level":"","security_and_compliance_enabled":false,"security_and_compliance_access_level":"","mr_default_target_self":false,"model_experiments_access_level":"","model_registry_access_level":"","pre_receive_secret_detection_enabled":false,"emails_disabled":false,"public_builds":false},"user":{"id":8814129,"username":"OWNER","email":"","name":"Some User","state":"active","web_url":"https://gitlab.com/OWNER","created_at":"2021-05-03T14:58:50.059Z","bio":"","bot":false,"location":"Canada","public_email":"","skype":"","linkedin":"","twitter":"","website_url":"","organization":"GitLab","job_title":"Sr Backend Engineer","extern_uid":"","provider":"","theme_id":0,"last_activity_on":null,"color_scheme_id":0,"is_admin":false,"is_auditor":false,"avatar_url":"https://gitlab.com/uploads/-/system/user/avatar/8814129/avatar.png","can_create_group":false,"can_create_project":false,"projects_limit":0,"current_sign_in_at":null,"current_sign_in_ip":null,"last_sign_in_at":null,"last_sign_in_ip":null,"confirmed_at":null,"two_factor_enabled":false,"note":"","identities":null,"external":false,"private_profile":false,"shared_runners_minutes_limit":0,"extra_shared_runners_minutes_limit":0,"using_license_seat":false,"custom_attributes":null,"namespace_id":0,"locked":false}}],"variables":null} +{"id":452959326,"iid":14,"project_id":29316529,"status":"success","source":"push","ref":"1-fake-issue-3","name":"","sha":"44eb489568f7cb1a5a730fce6b247cd3797172ca","before_sha":"001eb421e586a3f07f90aea102c8b2d4068ab5b6","tag":false,"yaml_errors":"","user":{"id":8814129,"username":"OWNER","name":"Some User","state":"active","locked":false,"created_at":null,"avatar_url":"https://gitlab.com/uploads/-/system/user/avatar/8814129/avatar.png","web_url":"https://gitlab.com/OWNER"},"updated_at":"2022-01-20T21:47:31.358Z","created_at":"2022-01-20T21:47:16.276Z","started_at":"2022-01-20T21:47:17.448Z","finished_at":"2022-01-20T21:47:31.35Z","committed_at":null,"duration":14,"queued_duration":1,"coverage":"","web_url":"https://gitlab.com/OWNER/REPO/-/pipelines/452959326","detailed_status":{"icon":"status_success","text":"Passed","label":"passed","group":"success","tooltip":"passed","has_details":true,"details_path":"/OWNER/REPO/-/pipelines/452959326","illustration":{"image":""},"favicon":"/assets/ci_favicons/favicon_status_success-8451333011eee8ce9f2ab25dc487fe24a8758c694827a582f17f42b0a90446a2.png"},"jobs":[{"commit":{"id":"44eb489568f7cb1a5a730fce6b247cd3797172ca","short_id":"44eb4895","title":"Add new file","author_name":"Some User","author_email":"OWNER@gitlab.com","authored_date":"2022-01-20T21:47:15Z","committer_name":"Some User","committer_email":"OWNER@gitlab.com","committed_date":"2022-01-20T21:47:15Z","created_at":"2022-01-20T21:47:15Z","message":"Add new file","parent_ids":["001eb421e586a3f07f90aea102c8b2d4068ab5b6"],"stats":null,"status":null,"last_pipeline":null,"project_id":0,"trailers":{},"extended_trailers":{},"web_url":"https://gitlab.com/OWNER/REPO/-/commit/44eb489568f7cb1a5a730fce6b247cd3797172ca"},"coverage":0,"allow_failure":false,"created_at":"2022-01-20T21:47:16.291Z","started_at":"2022-01-20T21:47:16.693Z","finished_at":"2022-01-20T21:47:31.274Z","erased_at":null,"duration":14.580467,"queued_duration":0.211715,"artifacts_expire_at":null,"tag_list":[],"id":1999017704,"name":"test_vars","pipeline":{"id":452959326,"project_id":29316529,"ref":"1-fake-issue-3","sha":"44eb489568f7cb1a5a730fce6b247cd3797172ca","status":"success"},"ref":"1-fake-issue-3","artifacts":[{"file_type":"trace","filename":"job.log","size":2770,"file_format":""}],"artifacts_file":{"filename":"","size":0},"runner":{"id":12270859,"description":"5-green.saas-linux-small-amd64.runners-manager.gitlab.com/default","active":true,"is_shared":true,"name":"gitlab-runner"},"stage":"test","status":"success","failure_reason":"","tag":false,"web_url":"https://gitlab.com/OWNER/REPO/-/jobs/1999017704","project":{"id":0,"description":"","default_branch":"","visibility":"","ssh_url_to_repo":"","http_url_to_repo":"","web_url":"","readme_url":"","tag_list":null,"topics":null,"owner":null,"name":"","name_with_namespace":"","path":"","path_with_namespace":"","issues_enabled":false,"open_issues_count":0,"merge_requests_enabled":false,"approvals_before_merge":0,"jobs_enabled":false,"wiki_enabled":false,"snippets_enabled":false,"resolve_outdated_diff_discussions":false,"container_registry_enabled":false,"container_registry_access_level":"","creator_id":0,"namespace":null,"permissions":null,"marked_for_deletion_at":null,"empty_repo":false,"archived":false,"avatar_url":"","license_url":"","license":null,"shared_runners_enabled":false,"group_runners_enabled":false,"runner_token_expiration_interval":0,"forks_count":0,"star_count":0,"runners_token":"","allow_merge_on_skipped_pipeline":false,"allow_pipeline_trigger_approve_deployment":false,"only_allow_merge_if_pipeline_succeeds":false,"only_allow_merge_if_all_discussions_are_resolved":false,"remove_source_branch_after_merge":false,"prevent_merge_without_jira_issue":false,"printing_merge_request_link_enabled":false,"lfs_enabled":false,"repository_storage":"","request_access_enabled":false,"merge_method":"","can_create_merge_request_in":false,"forked_from_project":null,"mirror":false,"mirror_user_id":0,"mirror_trigger_builds":false,"only_mirror_protected_branches":false,"mirror_overwrites_diverged_branches":false,"packages_enabled":false,"service_desk_enabled":false,"service_desk_address":"","issues_access_level":"","repository_access_level":"","merge_requests_access_level":"","forking_access_level":"","wiki_access_level":"","builds_access_level":"","snippets_access_level":"","pages_access_level":"","operations_access_level":"","analytics_access_level":"","environments_access_level":"","feature_flags_access_level":"","infrastructure_access_level":"","monitor_access_level":"","autoclose_referenced_issues":false,"suggestion_commit_message":"","squash_option":"","shared_with_groups":null,"statistics":null,"import_url":"","import_type":"","import_status":"","import_error":"","ci_default_git_depth":0,"ci_forward_deployment_enabled":false,"ci_forward_deployment_rollback_allowed":false,"ci_separated_caches":false,"ci_job_token_scope_enabled":false,"ci_opt_in_jwt":false,"ci_allow_fork_pipelines_to_run_in_parent_project":false,"ci_restrict_pipeline_cancellation_role":"","public_jobs":false,"build_timeout":0,"auto_cancel_pending_pipelines":"","ci_config_path":"","custom_attributes":null,"compliance_frameworks":null,"build_coverage_regex":"","issues_template":"","merge_requests_template":"","issue_branch_template":"","keep_latest_artifact":false,"merge_pipelines_enabled":false,"merge_trains_enabled":false,"restrict_user_defined_variables":false,"ci_pipeline_variables_minimum_override_role":"","merge_commit_template":"","squash_commit_template":"","auto_devops_deploy_strategy":"","auto_devops_enabled":false,"build_git_strategy":"","emails_enabled":false,"external_authorization_classification_label":"","requirements_enabled":false,"requirements_access_level":"","security_and_compliance_enabled":false,"security_and_compliance_access_level":"","mr_default_target_self":false,"model_experiments_access_level":"","model_registry_access_level":"","pre_receive_secret_detection_enabled":false,"emails_disabled":false,"public_builds":false},"user":{"id":8814129,"username":"OWNER","email":"","name":"Some User","state":"active","web_url":"https://gitlab.com/OWNER","created_at":"2021-05-03T14:58:50.059Z","bio":"","bot":false,"location":"Canada","public_email":"","skype":"","linkedin":"","twitter":"","website_url":"","organization":"GitLab","job_title":"Sr Backend Engineer","extern_uid":"","provider":"","theme_id":0,"last_activity_on":null,"color_scheme_id":0,"is_admin":false,"is_auditor":false,"avatar_url":"https://gitlab.com/uploads/-/system/user/avatar/8814129/avatar.png","can_create_group":false,"can_create_project":false,"projects_limit":0,"current_sign_in_at":null,"current_sign_in_ip":null,"last_sign_in_at":null,"last_sign_in_ip":null,"confirmed_at":null,"two_factor_enabled":false,"note":"","identities":null,"external":false,"private_profile":false,"shared_runners_minutes_limit":0,"extra_shared_runners_minutes_limit":0,"using_license_seat":false,"custom_attributes":null,"namespace_id":0,"locked":false,"created_by":null}}],"variables":null} diff --git a/commands/ci/list/testdata/ciList.json b/commands/ci/list/testdata/ciList.json index 929736526..7c9e1d608 100644 --- a/commands/ci/list/testdata/ciList.json +++ b/commands/ci/list/testdata/ciList.json @@ -2,6 +2,7 @@ { "id": 1172622998, "iid": 338, + "name": "", "project_id": 37777023, "status": "success", "source": "schedule", @@ -14,6 +15,7 @@ { "id": 1172086480, "iid": 337, + "name": "", "project_id": 37777023, "status": "success", "source": "schedule", @@ -23,4 +25,5 @@ "updated_at": "2024-02-10T18:56:13.972Z", "created_at": "2024-02-10T18:55:16.722Z" } -] \ No newline at end of file +] + diff --git a/commands/issuable/list/issuable_list.go b/commands/issuable/list/issuable_list.go index 4b18c84f3..a89723dda 100644 --- a/commands/issuable/list/issuable_list.go +++ b/commands/issuable/list/issuable_list.go @@ -24,9 +24,9 @@ import ( type ListOptions struct { // metadata Assignee string - NotAssignee []string + NotAssignee string Author string - NotAuthor []string + NotAuthor string Labels []string NotLabels []string Milestone string @@ -129,9 +129,9 @@ func NewCmdList(f *cmdutils.Factory, runE func(opts *ListOptions) error, issueTy } cmdutils.EnableRepoOverride(issueListCmd, f) issueListCmd.Flags().StringVarP(&opts.Assignee, "assignee", "a", "", fmt.Sprintf("Filter %s by assignee .", issueType)) - issueListCmd.Flags().StringSliceVar(&opts.NotAssignee, "not-assignee", []string{}, fmt.Sprintf("Filter %s by not being assigneed to .", issueType)) + issueListCmd.Flags().StringVar(&opts.NotAssignee, "not-assignee", "", fmt.Sprintf("Filter %s by not being assigneed to .", issueType)) issueListCmd.Flags().StringVar(&opts.Author, "author", "", fmt.Sprintf("Filter %s by author .", issueType)) - issueListCmd.Flags().StringSliceVar(&opts.NotAuthor, "not-author", []string{}, "Filter by not being by author(s) .") + issueListCmd.Flags().StringVar(&opts.NotAuthor, "not-author", "", "Filter by not being by author(s) .") issueListCmd.Flags().StringVar(&opts.Search, "search", "", "Search in the fields defined by '--in'.") issueListCmd.Flags().StringVar(&opts.In, "in", "title,description", "search in: title, description.") issueListCmd.Flags().StringSliceVarP(&opts.Labels, "label", "l", []string{}, fmt.Sprintf("Filter %s by label .", issueType)) @@ -192,11 +192,11 @@ func listRun(opts *ListOptions) error { listOpts.AssigneeUsername = gitlab.Ptr(opts.Assignee) } if len(opts.NotAssignee) != 0 { - u, err := api.UsersByNames(apiClient, opts.NotAssignee) + u, err := api.UserByName(apiClient, opts.NotAssignee) if err != nil { return err } - listOpts.NotAssigneeID = cmdutils.IDsFromUsers(u) + listOpts.NotAssigneeID = gitlab.Ptr(u.ID) } if opts.Author != "" { u, err := api.UserByName(apiClient, opts.Author) @@ -206,11 +206,11 @@ func listRun(opts *ListOptions) error { listOpts.AuthorID = gitlab.Ptr(u.ID) } if len(opts.NotAuthor) != 0 { - u, err := api.UsersByNames(apiClient, opts.NotAuthor) + u, err := api.UserByName(apiClient, opts.NotAuthor) if err != nil { return err } - listOpts.NotAuthorID = cmdutils.IDsFromUsers(u) + listOpts.NotAuthorID = gitlab.Ptr(u.ID) } if opts.Search != "" { listOpts.Search = gitlab.Ptr(opts.Search) diff --git a/commands/mr/list/testdata/mrList.json b/commands/mr/list/testdata/mrList.json index b85bae650..f716ae509 100644 --- a/commands/mr/list/testdata/mrList.json +++ b/commands/mr/list/testdata/mrList.json @@ -11,9 +11,9 @@ "updated_at": "2022-01-20T21:47:54.11Z", "upvotes": 0, "downvotes": 0, - "author": - { + "author": { "id": 8814129, + "locked": false, "username": "OWNER", "name": "Some User", "state": "active", @@ -21,9 +21,9 @@ "avatar_url": "https://gitlab.com/uploads/-/system/user/avatar/8814129/avatar.png", "web_url": "https://gitlab.com/OWNER" }, - "assignee": - { + "assignee": { "id": 8814129, + "locked": false, "username": "OWNER", "name": "Some User", "state": "active", @@ -31,10 +31,10 @@ "avatar_url": "https://gitlab.com/uploads/-/system/user/avatar/8814129/avatar.png", "web_url": "https://gitlab.com/OWNER" }, - "assignees": - [ + "assignees": [ { "id": 8814129, + "locked": false, "username": "OWNER", "name": "Some User", "state": "active", @@ -43,8 +43,7 @@ "web_url": "https://gitlab.com/OWNER" } ], - "reviewers": - [], + "reviewers": [], "source_project_id": 29316529, "target_project_id": 29316529, "labels": [], @@ -70,20 +69,17 @@ "force_remove_source_branch": true, "allow_collaboration": false, "web_url": "https://gitlab.com/OWNER/REPO/-/merge_requests/4", - "references": - { + "references": { "short": "!4", "relative": "!4", "full": "OWNER/REPO!4" }, "discussion_locked": false, "changes": null, - "user": - { + "user": { "can_merge": false }, - "time_stats": - { + "time_stats": { "human_time_estimate": "", "human_total_time_spent": "", "time_estimate": 0, @@ -92,8 +88,7 @@ "squash": false, "pipeline": null, "head_pipeline": null, - "diff_refs": - { + "diff_refs": { "base_sha": "", "head_sha": "", "start_sha": "" @@ -103,8 +98,7 @@ "approvals_before_merge": 0, "reference": "!4", "first_contribution": false, - "task_completion_status": - { + "task_completion_status": { "count": 0, "completed_count": 0 }, @@ -125,9 +119,9 @@ "updated_at": "2022-01-18T18:06:50.054Z", "upvotes": 0, "downvotes": 0, - "author": - { + "author": { "id": 8814129, + "locked": false, "username": "OWNER", "name": "Some User", "state": "active", @@ -136,10 +130,8 @@ "web_url": "https://gitlab.com/OWNER" }, "assignee": null, - "assignees": - [], - "reviewers": - [], + "assignees": [], + "reviewers": [], "source_project_id": 29316529, "target_project_id": 29316529, "labels": [], @@ -165,20 +157,17 @@ "force_remove_source_branch": true, "allow_collaboration": false, "web_url": "https://gitlab.com/OWNER/REPO/-/merge_requests/1", - "references": - { + "references": { "short": "!1", "relative": "!1", "full": "OWNER/REPO!1" }, "discussion_locked": false, "changes": null, - "user": - { + "user": { "can_merge": false }, - "time_stats": - { + "time_stats": { "human_time_estimate": "", "human_total_time_spent": "", "time_estimate": 0, @@ -187,8 +176,7 @@ "squash": false, "pipeline": null, "head_pipeline": null, - "diff_refs": - { + "diff_refs": { "base_sha": "", "head_sha": "", "start_sha": "" @@ -198,8 +186,7 @@ "approvals_before_merge": 0, "reference": "!1", "first_contribution": false, - "task_completion_status": - { + "task_completion_status": { "count": 0, "completed_count": 0 }, @@ -208,4 +195,5 @@ "overflow": false, "merge_status": "can_be_merged" } -] \ No newline at end of file +] + diff --git a/commands/release/releaseutils/upload/upload.go b/commands/release/releaseutils/upload/upload.go index dbe5daef3..f8b34f8ba 100644 --- a/commands/release/releaseutils/upload/upload.go +++ b/commands/release/releaseutils/upload/upload.go @@ -81,7 +81,7 @@ func (c *Context) UploadFiles(projectID, tagName string) error { if err != nil { return err } - projectFile, _, err := c.Client.Projects.UploadFile( + projectFile, _, err := c.Client.Projects.UploadFile( //nolint:all projectID, r, file.Name, diff --git a/docs/source/incident/list.md b/docs/source/incident/list.md index 05c06cecb..ec3c37a45 100644 --- a/docs/source/incident/list.md +++ b/docs/source/incident/list.md @@ -45,8 +45,8 @@ glab incident list --milestone release-2.0.0 --opened --in string search in: title, description. (default "title,description") -l, --label strings Filter incident by label . -m, --milestone string Filter incident by milestone . - --not-assignee strings Filter incident by not being assigneed to . - --not-author strings Filter by not being by author(s) . + --not-assignee string Filter incident by not being assigneed to . + --not-author string Filter by not being by author(s) . --not-label strings Filter incident by lack of label . -O, --output string Options: 'text' or 'json'. (default "text") -F, --output-format string Options: 'details', 'ids', 'urls'. (default "details") diff --git a/docs/source/issue/list.md b/docs/source/issue/list.md index fe5f317cf..aef362a75 100644 --- a/docs/source/issue/list.md +++ b/docs/source/issue/list.md @@ -47,8 +47,8 @@ glab issue list --milestone release-2.0.0 --opened -i, --iteration int Filter issue by iteration . -l, --label strings Filter issue by label . -m, --milestone string Filter issue by milestone . - --not-assignee strings Filter issue by not being assigneed to . - --not-author strings Filter by not being by author(s) . + --not-assignee string Filter issue by not being assigneed to . + --not-author string Filter by not being by author(s) . --not-label strings Filter issue by lack of label . -O, --output string Options: 'text' or 'json'. (default "text") -F, --output-format string Options: 'details', 'ids', 'urls'. (default "details") diff --git a/go.mod b/go.mod index 5df45b8a3..1ee68fe66 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/stretchr/testify v1.10.0 github.com/tidwall/pretty v1.2.1 github.com/zalando/go-keyring v0.2.6 - gitlab.com/gitlab-org/api/client-go v0.116.0 + gitlab.com/gitlab-org/api/client-go v0.122.0 go.uber.org/goleak v1.3.0 go.uber.org/mock v0.5.0 golang.org/x/crypto v0.32.0 @@ -100,7 +100,7 @@ require ( go.uber.org/multierr v1.9.0 // indirect golang.org/x/net v0.33.0 // indirect golang.org/x/sys v0.29.0 // indirect - golang.org/x/time v0.7.0 // indirect + golang.org/x/time v0.9.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect k8s.io/klog/v2 v2.130.1 // indirect diff --git a/go.sum b/go.sum index f99b91324..20a764c9c 100644 --- a/go.sum +++ b/go.sum @@ -233,8 +233,10 @@ github.com/yuin/goldmark-emoji v1.0.3 h1:aLRkLHOuBR2czCY4R8olwMjID+tENfhyFDMCRhb github.com/yuin/goldmark-emoji v1.0.3/go.mod h1:tTkZEbwu5wkPmgTcitqddVxY9osFZiavD+r4AzQrh1U= github.com/zalando/go-keyring v0.2.6 h1:r7Yc3+H+Ux0+M72zacZoItR3UDxeWfKTcabvkI8ua9s= github.com/zalando/go-keyring v0.2.6/go.mod h1:2TCrxYrbUNYfNS/Kgy/LSrkSQzZ5UPVH85RwfczwvcI= -gitlab.com/gitlab-org/api/client-go v0.116.0 h1:Dy534gtZPMrnm3fAcmQRMadrcoUyFO4FQ4rXlSAdHAw= -gitlab.com/gitlab-org/api/client-go v0.116.0/go.mod h1:B29OfnZklmaoiR7uHANh9jTyfWEgmXvZLVEnosw2Dx0= +gitlab.com/gitlab-org/api/client-go v0.121.0 h1:tivRdXcu5d7sOB2aR2BhQkp16tMmESnfhYPYPZN03eo= +gitlab.com/gitlab-org/api/client-go v0.121.0/go.mod h1:ygHmS3AU3TpvK+AC6DYO1QuAxLlv6yxYK+/Votr/WFQ= +gitlab.com/gitlab-org/api/client-go v0.122.0 h1:Nog85APtgquS+HHkMkP4DiZ6lXlUZYhQKqguS4OJYNM= +gitlab.com/gitlab-org/api/client-go v0.122.0/go.mod h1:Jh0qjLILEdbO6z/OY94RD+3NDQRUKiuFSFYozN6cpKM= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= @@ -300,8 +302,10 @@ golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ= -golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg= +golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= +golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -- GitLab