Skip to content

Added NO_ACCESS const #1108

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

Merged
merged 1 commit into from
Jul 2, 2020
Merged

Conversation

stuartgunter
Copy link

This constant is useful for cases where no access is granted, e.g. when creating a protected branch.

The NO_ACCESS const corresponds to the definition in https://docs.gitlab.com/ee/api/protected_branches.html

@nejch
Copy link
Member

nejch commented Jun 8, 2020

Thanks for this @stuartgunter, that is useful and might pop up in other scenarios later.

There have been some breaking changes in GitLab 13.0, which is why there have been some unrelated build failures recently. Could you rebase this on top of master - then this should go green? Thanks! :)

@max-wittig
Copy link
Member

kinda little nitpick on how the conventional changelog linter works. Could you begin your message in small case so that the pipeline goes green? feat: add NO_ACCESS const

This constant is useful for cases where no access is granted,
e.g. when creating a protected branch.

The `NO_ACCESS` const corresponds to the definition in
https://docs.gitlab.com/ee/api/protected_branches.html
@stuartgunter
Copy link
Author

Hi @max-wittig ... no problem. I've updated the commit message.

While I like the idea behind conventional changelog, it's quite an overhead for a small change like this from an infrequent contributor. I understand why it's been chosen but it has discouraged me from contributing more.

If only there was a consistent contribution guide for all/most OSS projects so we could reduce the barrier to entry :(

@max-wittig
Copy link
Member

max-wittig commented Jul 2, 2020

@stuartgunter That's true, but otherwise the history is gonna be a mess and you will never find any reasonable messages (everyone would just use. Update objects.py or you have to keep a changelog file. It's a difficult thing to align

@max-wittig
Copy link
Member

Thanks for the addition and sorry for the hassle

@max-wittig max-wittig merged commit 3a76d91 into python-gitlab:master Jul 2, 2020
@stuartgunter
Copy link
Author

No problem at all. I do understand the rationale for using conventional changelog. My comments weren't intended as criticism, and I hope they were received well.

I wonder whether a pre-commit hook would help avoid having to amend commit messages and force push. That would certainly help new contributors get it right the first time and avoid too much Git-foo :)

@max-wittig
Copy link
Member

No I totally get your point and I'm annoyed by it myself that others cannot contribute that easily, but I'm not sure that having the wild west of commit messages be the better solution 😄

A pre-commit hooks would actually be very nice. Thanks for the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants