stefanzweifel / git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
MIT License
2.06k stars 230 forks source link

Docs: users must allow maintainer edits for the action to work #281

Closed Prince213 closed 1 year ago

Prince213 commented 1 year ago

git-auto-commit Version

v4

Machine Type

Ubuntu (ubuntu-latest)

Bug description

See https://github.com/L3MON4D3/LuaSnip/pull/734. The first CI run failed:

To https://github.com/Prince213/LuaSnip
 ! [remote rejected] HEAD -> typo-fix (permission denied)
error: failed to push some refs to 'https://github.com/Prince213/LuaSnip'

But when Allow edits by maintainers is checked, the second run succeeded.

Related: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork

Steps to reproduce

Try to create PR and uncheck Allow edits by maintainers. The check it and try again.

Tried solutions

Check Allow edits by maintainers.

Example Workflow

https://github.com/L3MON4D3/LuaSnip/blob/master/.github/workflows/push.yaml

Relevant log output

To https://github.com/Prince213/LuaSnip
 ! [remote rejected] HEAD -> typo-fix (permission denied)
error: failed to push some refs to 'https://github.com/Prince213/LuaSnip'