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 support for commit_committer_check and reject_unsigned_commits in push rules #246

Closed
wants to merge 1 commit into from
Closed

Add support for commit_committer_check and reject_unsigned_commits in push rules #246

wants to merge 1 commit into from

Conversation

jrdelarosa8
Copy link
Contributor

@jrdelarosa8 jrdelarosa8 commented Jan 14, 2020

Resolves #202, depends on #245

@roidelapluie
Copy link
Collaborator

There is not setter? is this computed? can you modify existing tests?

@jrdelarosa8
Copy link
Contributor Author

Hey @roidelapluie, I can definitely look at the existing tests. Can you clarify what you mean by:

There is not setter? is this computed?

Thanks!

@jrdelarosa8
Copy link
Contributor Author

jrdelarosa8 commented Jan 28, 2020

When creating a push rule resource via Terraform, we'll receive a 422 response because the push rule(s) already exist (new projects get push rules by default).

This happens via AddProjectPushRule from the client library.

It seems that we can get around this issue by using the PUT/ProjectPushRulesUpdate function and removing the create since this will continue to cause problems/confusion.

Any thoughts?

@jrdelarosa8
Copy link
Contributor Author

Are any maintainers available to take a look at my most recent question? @roidelapluie

@roidelapluie
Copy link
Collaborator

Mmmh that's a tricky one. I will think about it and come back to you.

@jrdelarosa8
Copy link
Contributor Author

Do you have any additional thoughts?

@armsnyder
Copy link
Collaborator

Can you update the test please?

@armsnyder
Copy link
Collaborator

I like the idea of changing AddProjectPushRule to EditProjectPushRule, provided that it doesn't cause a problem where EditProjectPushRule also fails due to the push rule not existing, with the same exact race condition.

I also noticed in your change that you are reading these attributes, but you are not setting them in the create or update functions. That's probably what @roidelapluie meant.

@armsnyder
Copy link
Collaborator

Closing this since we merged #422 where we added these attributes but moved the config into gitlab_project. Thanks!

@armsnyder armsnyder closed this Sep 21, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

[Bug] Unsupported argument: commit_committer_check
3 participants