pygithub
pygithub copied to clipboard
Git and GitHub API in Python. This repo contains some examples and an article about how to sign commits automatically using GitHub Actions.
I've finished the example using the REST API and also the article: https://github.com/josecelano/pygithub/blob/main/docs/how_to_create_a_single_commit_with_multiple_files_using_github_api.md#solution-01-using-github-rest-api But I would like to re-write the example and the article using the [GitHub GraphQL API](https://docs.github.com/en/graphql/reference/mutations#createcommitonbranch). https://github.com/josecelano/pygithub/blob/main/docs/how_to_create_a_single_commit_with_multiple_files_using_github_api.md#solution-02-using-github-graphql-api
The workflow failed: https://github.com/Nautilus-Cyberneering/pygithub/runs/6231187549?check_suite_focus=true#step:4:18 It failed because we changed the default organization workflow permissions. ``` Run docker run --rm \ Traceback (most recent call last): File "/app/src/04_sign_commit_with_multiple_files_using_github_api.py", line [7](https://github.com/Nautilus-Cyberneering/pygithub/runs/6231187549?check_suite_focus=true#step:4:7)7, in...
This issue is only a test issue to test GitHub API. See https://github.com/josecelano/pygithub/blob/main/src/main.py