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

feat: add a flag to silence policy checks comments when there's no error #2405

Merged
merged 10 commits into from
Oct 27, 2022

Conversation

Fauzyy
Copy link
Contributor

@Fauzyy Fauzyy commented Jul 19, 2022

Description

This PR adds a new server config flag quiet-policy-checks which exclude policy check comments from pull requests unless there's an actual error from conftest.

This helps cut down some noise on PRs, especially when planning multiple workspaces at once where you have multiple conftest comments.

Testing

We've been using this in our fork for several months. I've also added a few test cases to the events controller e2e.

@Fauzyy Fauzyy requested a review from a team as a code owner July 19, 2022 18:00
@jamengual jamengual added waiting-on-review Waiting for a review from a maintainer feature New functionality/enhancement labels Jul 19, 2022
@jamengual
Copy link
Contributor

@Fauzyy can you add Tests?

@Fauzyy
Copy link
Contributor Author

Fauzyy commented Jul 20, 2022

@jamengual yes will do!

@Fauzyy Fauzyy force-pushed the Fauzyy/quiet-policy-checks branch from 092fd5f to a9d9efb Compare July 22, 2022 23:10
@Fauzyy
Copy link
Contributor Author

Fauzyy commented Jul 22, 2022

Hi @jamengual, I added a couple test cases to the events controller e2e - thank you

@Fauzyy Fauzyy changed the title Add a flag to silence policy checks comments when there's no error feat: add a flag to silence policy checks comments when there's no error Aug 2, 2022
@Fauzyy
Copy link
Contributor Author

Fauzyy commented Sep 2, 2022

Hey @jamengual, I just wanted to see what else is required to get this merged. Thanks!

@jamengual
Copy link
Contributor

jamengual commented Sep 2, 2022 via email

@jamengual
Copy link
Contributor

@Fauzyy could you please the conflicts?

@Fauzyy
Copy link
Contributor Author

Fauzyy commented Oct 17, 2022

@jamengual done! Sorry about the slow response here, I was away

@jamengual jamengual merged commit 3bfd769 into runatlantis:master Oct 27, 2022
@Fauzyy Fauzyy deleted the Fauzyy/quiet-policy-checks branch October 27, 2022 18:37
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
…ror (runatlantis#2405)

* Add a flag to silence policy checks comments when there's no error

* Add e2e test cases for the quiet policy checks flag

* add documentation for quiet-policy-checks flag

* Update user_config.go

Fix indentation

* Update user_config.go

* fmt
@nitrocode nitrocode added this to the 0.21.0 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement waiting-on-review Waiting for a review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants