Skip to content
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

Add allowed_to_create support for tag protection #505

Closed
amimas opened this issue Feb 24, 2023 · 2 comments · Fixed by #551
Closed

Add allowed_to_create support for tag protection #505

amimas opened this issue Feb 24, 2023 · 2 comments · Fixed by #551

Comments

@amimas
Copy link
Collaborator

amimas commented Feb 24, 2023

Currently gitlabform can be used for branch protection with additional options of allowed_to_merge and allowed_to_push.

Gitlab has similar option for protected tags named allowed_to_create but looks like that can't be configured using gitlabform at the moment. Tag protection is only configurable using create_access_level.

This would be useful for protecting tags that are created by release bots only or by specific users.

@gdubicki
Copy link
Member

gdubicki commented Feb 24, 2023

Hi @amimas! I confirm that the current code supports only create_access_level, but it should be easy to extend it to support allowed_to_create too. PRs are welcome!

@gdubicki gdubicki changed the title Add allowed_to_create for tag protection Add allowed_to_create support for tag protection Feb 24, 2023
@amimas
Copy link
Collaborator Author

amimas commented Sep 16, 2023

This is now available in v3.8.0: https://github.com/gitlabform/gitlabform/releases/tag/v3.8.0

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

Successfully merging a pull request may close this issue.

2 participants