Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(api): add merge request pipeline manager and deprecate mr.pipelines() method#1323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JohnVillalovos merged 1 commit intomasterfromfeat/mr-pipeline-manager
Jun 14, 2021

Conversation

nejch
Copy link
Member

@nejchnejch commentedFeb 23, 2021
edited
Loading

Closes#1312.
Closes#1239.

todo: technically this breaks the CLIgitlab project-merge-request pipelines and requiresproject-merge-request-pipelines list instead. I'll see if I can hack theregister_custom_action decorator to accept custom action names, not just the current method name. I had to remove it as there would be a namespace clash between the old method and the new manager.

Well, I've managed to hackregister_custom_action a little so it takes an optionalcustom_action argument to override the current function name as the CLI action, so should be backwards compatible, but then realized the old method probably never worked in CLI due to missing CLI args 🤦

Still, now you can do (until 3.0.0 or so, but probably useless anyway):

gitlab project-merge-request pipelines --helpusage: gitlab project-merge-request pipelines [-h] --project-id PROJECT_ID [--sudo SUDO] --iid IIDoptional arguments:  -h, --help            show thishelp message andexit  --project-id PROJECT_ID  --sudo SUDO  --iid IID

And the new list, with proper help and args:

gitlab project-merge-request-pipeline list --helpusage: gitlab merge-request-pipeline list [-h] [--sudo SUDO] --project-id PROJECT_ID --mr-iid MR_IID                                          [--page PAGE] [--per-page PER_PAGE] [--all]optional arguments:  -h, --help            show thishelp message andexit  --sudo SUDO  --project-id PROJECT_ID  --mr-iid MR_IID  --page PAGE  --per-page PER_PAGE  --all

beanaroo reacted with thumbs up emoji
@nejchnejchforce-pushed thefeat/mr-pipeline-manager branch 3 times, most recently fromc8fed5a tof12841fCompareFebruary 26, 2021 19:35
@nejchnejch marked this pull request as ready for reviewFebruary 26, 2021 19:49
@nejch
Copy link
MemberAuthor

Maybe@JohnVillalovos you want to have a look at the typing here as well, I always forget decorators and have to google the wrap functions every time I work with them 🤣

@JohnVillalovos
Copy link
Member

Maybe@JohnVillalovos you want to have a look at the typing here as well, I always forget decorators and have to google the wrap functions every time I work with them 🤣

From my initial look it seems correct. Also mypy is checking thatgitlab/cli.py file, so seems good.

Looks Good To Me (LGTM) 👍

Thanks!

@max-wittig
Copy link
Member

We're most likely gonna go to 3.0.0 directly, because of this breaking change:#1278. Maybe have those two in one release would be nice 😄

@msune
Copy link

👍 on this.

I seem to be hitting a limitation/bug ofpipelines()#1312 (comment) and in another issue that I will not bother mentioning.

Any chance this could be integrated soon?

@nejchnejch added this to thev3.0.0 milestoneApr 27, 2021
@max-wittig
Copy link
Member

@nejch Sorry for making you wait for long that everything conflicts. I just see like 15 notifications everyday from this project. You people are crazy 😄

Would you mind to rebase?

@nejchnejchforce-pushed thefeat/mr-pipeline-manager branch fromf12841f toabe4242CompareJune 13, 2021 18:00
Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Overall looks good to me. Left one thing I think should be fixed.

@nejchnejchforce-pushed thefeat/mr-pipeline-manager branch fromabe4242 to954357cCompareJune 13, 2021 19:19
Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks. This looks good.

I'll let you merge it or if you want to wait for@max-wittig to review. Your choice.

@JohnVillalovosJohnVillalovos merged commite77554c intomasterJun 14, 2021
@JohnVillalovosJohnVillalovos deleted the feat/mr-pipeline-manager branchJune 14, 2021 17:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JohnVillalovosJohnVillalovosJohnVillalovos approved these changes

Assignees

@nejchnejch

Labels

None yet

Projects

None yet

Milestone

v3.0.0

Development

Successfully merging this pull request may close these issues.

ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList' Add function to create pipeline for merge request

4 participants

@nejch@JohnVillalovos@max-wittig@msune

[8]ページ先頭

©2009-2025 Movatter.jp