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

Authenticate automated commits as Hypothesis GitHub App #109

Open
seanh opened this issue Feb 2, 2023 · 0 comments
Open

Authenticate automated commits as Hypothesis GitHub App #109

seanh opened this issue Feb 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@seanh
Copy link
Contributor

seanh commented Feb 2, 2023

Automated PRs from the update_repos.yml workflow authenticate themselves to GitHub as GitHub Hypothesis App but the author of the individual commits is set to GitHub Actions Cookiecutter Workflow (example PR, example commit).

It would be nicer if the commits themselves were also recognised by GitHub as coming from Hypothesis GitHub App and I think this is possible. We need to set the git email address (git config --global user.email "...") to the form userID + name[bot] + @users.noreply.github.com and apparently we can get the right email and user ID from the response from the https://docs.github.com/en/rest/repos/contents#create-or-update-file-contents endpoint (to a request authenticated as the app).

@seanh seanh added the enhancement New feature or request label Feb 2, 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