Commit Graph

100 Commits

Author SHA1 Message Date
Justen Stall 6d181a1f0b
fix(deps): update github.com/xanzy/go-gitlab to v0.101.0
- Update github.com/xanzy/go-gitlab from v0.93.0 to v0.101.0
- Update rebase MR functions to use RebaseMergeRequestOptions for setting the "skip_ci" field
- Update all request options to use the LabelOptions type
- Replace deprecated gitlab.{String,Int,Bool,etc} functions with gitlab.Ptr

Fixes #7504

Signed-off-by: Justen Stall <justenstall@gmail.com>
2024-04-04 14:24:13 -04:00
Gary Holtz 9e43c7e5bf chore: Keeping in regular repo in sync 2023-06-26 17:56:40 +00:00
Gary Holtz 25f2904f9e Merge branch 'reviewer-prompt' into 'main'
feat: Make mr create prompt for reviewers

Closes #1339

See merge request https://gitlab.com/gitlab-org/cli/-/merge_requests/1275

Merged-by: Gary Holtz <gholtz@gitlab.com>
Approved-by: Gary Holtz <gholtz@gitlab.com>
Approved-by: James Liu <jliu@gitlab.com>
Co-authored-by: Benedek Thaler <thaler@thaler.hu>
2023-05-25 17:26:34 +00:00
Benedek Thaler 185a4c6ef1 feat: Make mr create prompt for reviewers 2023-05-25 17:26:34 +00:00
Jay McCure 8759c09eab feat: better error messages for no matching remotes 2023-05-19 07:45:45 +00:00
Kai Armstrong 5d99d1b12f chore: modify MIT license and inspiration 2023-04-07 02:09:26 +00:00
Gary Holtz 30350df0ee chore: security release merge 2023-03-31 17:09:08 +00:00
Gary Holtz d736ef7837 Merge security fix for v1.26.0 release 2023-03-10 19:00:54 +00:00
Kai Armstrong cf0968d56d chore: fix ioutil lint deprecations 2022-11-30 12:45:08 +00:00
Kai Armstrong 39e9e21313 chore: re-add linting/formatting job to ci 2022-11-17 18:36:09 +00:00
Kai Armstrong b417b30284 chore: fix misspelled words from goreportcard 2022-10-05 15:50:43 -05:00
Oscar Tovar 163223de18 build(deps): upgrade github.com/xanzy/go-gitlab to v0.73.1 2022-10-04 19:29:02 +00:00
Oscar Tovar 40a5436789 chore: update module path 2022-09-19 20:23:45 +00:00
Clement Sam 40c8f6760e fix(check-update): check latest release from GitLab
Currently the check-update command which checks for
latest glab releases, checks from the releases page
of the old GitHub repo.

This MR changes this behaviour to check releases
from the new gitlab-org/cli repo.
2022-08-10 18:58:23 +00:00
Tomas Vik 21025017a9 ci: add unit test task to the CI 2022-06-09 14:29:02 +02:00
zemzale a5f4099291
fix: Don't show non-templates when asking chosing (#927)
* feat(git): Allow for overriding the TopLevelDir

This would allow us to use a different output for this command in tests.

Issue #923

* fix: Don't show non-templates when asking chosing

In cases where users have non template files in the .gitlab/[template]/
folder they might will be picked up and displayed.

This fixes that by filtering out all the files that are hidden and don't
end in .md

Issue #923

* feat(cmdutils): Sort templates in alphabetical order
2022-01-31 18:20:22 +00:00
Lucas Jenß 127e4df513
feat: add transfer command (#929)
* Add command for transferring repositories

* minor fixes

Co-authored-by: Clement Sam <clementsam75@gmail.com>
2022-01-29 14:56:52 +00:00
addshore b8928008b5 Move glinstance to pkg 2021-09-24 18:51:08 +01:00
Alberts Zemzale 0cf8e61103 feat(cmdutils): Add group milestones to the prompt
When creating issues we prompted only project milestones. This would
break workflows where group milestones were used.

They are two different APIs so we have to normalize their output and
merge it to one.

Issue #698
2021-08-14 21:33:27 +03:00
Clement Sam cc571db7d2 feat: add `release delete` command 2021-05-24 20:44:27 +00:00
Clement Sam af5ba63dc6 interactive options and better error handling 2021-05-23 02:51:23 +00:00
Clement Sam c707d7d3f7 feat: add `release create` command 2021-05-22 02:58:29 +00:00
Clement Sam ecdfc7f9a9
Merge pull request #694 from kousikmitra/update-mr-reviewer
feat(mr/view): update mr reviewers
2021-04-30 06:45:28 +00:00
Clement Sam 2e3738f83c fix reviewer action messages 2021-04-30 06:08:22 +00:00
Clement Sam 4076dd77c0 feat: mr merge options
This adds merge options when merging an MR. The user is given three merge options
- create merge commit
- squash and merge
- rebase and merge

NB: This options are only available on TTYs. On non-ttys, the default is to create a merge commit unless the user explicitly specifies the merge method using the available flag options
2021-04-29 20:08:04 +00:00
Clement Sam 42930fd55f move /internal/git to /pkg/git 2021-01-29 10:15:59 +00:00
Clement Sam d52c01a482 refactor: move pkg/api package to /api 2021-01-29 08:43:18 +00:00
Clement Sam a8ac704ccd refactor: move internal/utils package to pkg/utils 2021-01-29 08:40:52 +00:00
Clement Sam 8352f6e427 reasonably change iostream methods
Change iostreams methods names and references
2021-01-28 23:07:05 +00:00
Clement Sam e4acafd006 refactor: move iostreams to own separate package
- Move iostreams to own separate package
- Fix references to iostream package
- Add StartSpinner and StopSpinner methods
2021-01-28 22:38:32 +00:00
Clement Sam 1bd14eaf39 remove support for project ID
Only public projects can be found using the project ID
2021-01-27 03:24:01 +00:00
Clement Sam c03d8a2dfb ensure errors are displayed 2021-01-27 03:22:35 +00:00
Leo 601fe28bb7 test(commands/cmdutils): add tests for ConfirmSubmission() 2021-01-07 08:18:39 -03:00
Leo 3c4ea9aa2f refactor(command/cmdutils): rewrite ConfirmSubmission() 2021-01-07 08:09:10 -03:00
Leo 316efd4005 test(commands/cmdutils): test API failure in AssigneesPrompt() 2021-01-07 08:00:25 -03:00
Leo 99a43c99e2 test(commands/cmdutils): Test LabelsPrompt() 2021-01-06 19:01:50 -03:00
Leo d69a8a66d3 refactor(commands/cmdutils): rewrite LabelsPrompt()
- Don't cache stuff anymore, Network requests are not very time
  consuming.
- If no labels are defined in the project then prompt the user to define
  them via a comma-separated list of strings, otherwise present the
  defined ones to the user.
2021-01-06 19:01:49 -03:00
Leo 12162b165f feat(commands/cmdutils): make LabelsPrompt() respect existing labels 2021-01-06 17:56:54 -03:00
Leo 2c31afe3db test(commands/cmdutils): AssigneesPrompt() should respect command flags 2021-01-06 08:08:11 -03:00
Leo 53c0ae7f16 test(commands/cmdutils): adapt tests to new AssigneesPrompt() 2021-01-06 06:50:17 -03:00
Leo 445b21af73 feat(commands/cmdutils): make AssigneesPrompt() interactive 2021-01-06 06:50:16 -03:00
Leo 5d1d4abbed test(*): use backticks inside strings that use double-quotes 2021-01-05 18:42:07 -03:00
Clement Sam 770a3954ba
Merge pull request #500 from profclems/fix-gitlab-host-env
respect GITLAB_HOST when resolving remotes
2021-01-03 22:21:40 +00:00
Clement Sam acd93745a5 fix(commands/cmdutils/factory): use hostname from ssh config
Resolves #354
2021-01-03 21:30:43 +00:00
Clement Sam b43849504c respect GITLAB_HOST when resolving remotes
When GITLAB_HOST or GITLAB_URI has been set, we resolve only local remotes that match the set hostname.
With this in place, a heterogeneous mix of hosts in a local remote file will not cause GITLAB_HOST to be ignored.

An error is returned if the hostname specified in GITLAB_HOST is not present in the local remotes.
2021-01-03 21:22:27 +00:00
Leo 386be421c1 test(commands/cmdutils): test for prompt failures 2021-01-03 09:33:25 -03:00
Leo 0d571f00b3 test(command/cmdutils): add tests for IDsFromUsers() 2021-01-02 07:41:26 -03:00
Leo 3f13766546 test(commands/cmdutils): test error handling on MilestonesPrompt() 2021-01-02 05:22:01 -03:00
Leo e538026645 test(commands/cmdutils): test error output of MilestonesPrompt() 2021-01-02 05:18:44 -03:00
Leo 6dcc0766c6 refactor(commands/cmdutils): remove redundant assignment of gitlab.Client{} 2021-01-02 05:17:21 -03:00