-
Notifications
You must be signed in to change notification settings - Fork 84
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitlab: AddCollaborator tell when user is a member #299
gitlab: AddCollaborator tell when user is a member #299
Conversation
Hi @manuelstein. Thanks for your PR. I'm waiting for a jenkins-x or todo member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @manuelstein you might just forget to get check the ci status. Please take a look at it.
what is "check ci status" even supposed to mean in this context? In case of GitLab, the SCM client returns an error with the 409 status, meaning the user is already a member and the code fails the task at this point. |
If you make the commit message conform to semantic commit messages we can get this merged /ok-to-test |
Fixing AddCollaborator to tell when a user is already a member: - response 409 Conflict signals user having already been a member GitLab doesn't implement the invite/accept workflow: - successfully adding a member also reports it as being a member Signed-off-by: Manuel Stein <[email protected]>
b2ba453
to
3bfe234
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msvticket The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@manuelstein: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here. |
Ah, so it was all about the commit msg not following semver 😌 |
Fixing AddCollaborator to tell when a user is already a member:
GitLab doesn't implement the invite/accept workflow:
This is to prevent client code continuing with the invite/accept workflow after calling AddCollaborator.
E.g. jenkins-x-plugins/jx-project#454