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

Configure auto-merge and default permissions on a repository #228

Open
yaleman opened this issue Apr 14, 2023 · 4 comments
Open

Configure auto-merge and default permissions on a repository #228

yaleman opened this issue Apr 14, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@yaleman
Copy link
Owner

yaleman commented Apr 14, 2023

Allow for configuring auto-merge on a repository, it should be under the generic tests.

@yaleman yaleman added the enhancement New feature or request label Apr 14, 2023
@yaleman yaleman self-assigned this Apr 14, 2023
@yaleman
Copy link
Owner Author

yaleman commented Apr 15, 2023

... ugh, this relies on posting to a form because the REST API doesn't allow for it.

@yaleman yaleman removed their assignment Apr 15, 2023
@yaleman yaleman self-assigned this May 10, 2023
@yaleman
Copy link
Owner Author

yaleman commented Aug 5, 2023

You should be able to update this setting from the Update a repository endpoint. You'll pass that configuration using the allow_auto_merge parameter on the body of that request.

@yaleman
Copy link
Owner Author

yaleman commented Aug 5, 2023

The GitHub Actions bot should be able to merge pull requests if it has write permission on pull requests. If you need to grant write permissions to GitHub Actions workflow through the API, you can do that using the following endpoints(both organizational and repository level):

https://docs.github.com/en/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-an-organization

https://docs.github.com/en/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-a-repository

@yaleman yaleman changed the title Configure auto-merge on a repository Configure auto-merge and default permissions on a repository Aug 5, 2023
@yaleman
Copy link
Owner Author

yaleman commented Aug 5, 2023

permissions is getting merged in #260

yaleman added a commit that referenced this issue Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant