-
Notifications
You must be signed in to change notification settings - Fork 782
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 providing a GitHub app as a pull request bypasser #1416
Add support for providing a GitHub app as a pull request bypasser #1416
Conversation
I cannot add labels so I am unable to complete your pull request checklist. |
Hah, so it turns out this doesn't fix what I was trying to fix. However, it does fix the diffing to prevent it trying to re-apply the addition of an app to the |
Any update on this? We're currently also running in the issue of not being able to add Github Apps in pull_request_bypassers list. |
This is very much appreciated for my part. Our tfplan is cluttered with false positives for re-applying apps that are already added as PR-bypassers |
How are you trying to do this ? Are you using the app data source and then using the node id attribute of that ? |
I tried getting this to work recently, but had some issues. I get the node_id by the following method: #1248 (comment) a bit time consuming for one-time jobs, but it works. |
@strideynet I'm sorry, I saw this after merging #1453 with the same changes! I probably should've merged yours as you created your PR first. |
I'll create a new release with these changes shortly so you can at least take advantage of them. |
Potentially resolves #1156
Replaces PR #1202
Behavior
Before the change?
Configuring a GitHub App as a pull request bypasser will always state there is one change to make.
After the change?
After applying the Terraform once, it will not show as a change again.
Other information
Have a great day 🖖
Additional info
Pull request checklist
Does this introduce a breaking change?
No
Pull request type
Some might argue this is a bugfix, some might argue it's a new feature /shrug
Please add the corresponding label for change this PR introduces:
Type: Feature
Manual testing
I created an app named
test-tf-branch-protection
.I applied:
The resulting config: