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

🐛 Bug: Does not recreate bypass_pull_request_allowances #13

Open
3 tasks done
JoshuaKGoldberg opened this issue Oct 2, 2023 · 0 comments
Open
3 tasks done
Labels
status: accepting prs Please, send a pull request to resolve this! type: bug Something isn't working :(

Comments

@JoshuaKGoldberg
Copy link
Owner

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

Every part of a branch protection that is removed by this action should be re-added at the end of the action.

Actual

bypass_pull_request_allowances had some odd typings and I don't need it for my personal repos... so I didn't implement it at first.

// TODO
// bypass_pull_request_allowances: {
// apps: currentBranchProtections.data.required_pull_request_reviews
// .bypass_pull_request_allowances?.apps,
// teams:
// currentBranchProtections.data.required_pull_request_reviews
// .bypass_pull_request_allowances?.teams,
// users:
// currentBranchProtections.data.required_pull_request_reviews
// .bypass_pull_request_allowances?.users,
// },

Accepting PRs to get it to work!

Additional Info

API docs for GitHub branch protections: https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28

@JoshuaKGoldberg JoshuaKGoldberg added type: bug Something isn't working :( status: accepting prs Please, send a pull request to resolve this! labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! type: bug Something isn't working :(
Projects
None yet
Development

No branches or pull requests

1 participant