Open lukejgaskell opened 2 years ago
I'm facing the same issue. Here is my yaml file :
name: automerge check
on:
pull_request:
types:
- labeled
check_suite:
types:
- completed
permissions:
contents: read
pull-requests: write
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.8.3"
env:
GITHUB_TOKEN: "${{ github.token }}"
MERGE_LABELS: ":rocket: Ready to Merge"
MERGE_COMMIT_MESSAGE: "pull-request-title"
UPDATE_LABELS: ":rocket: Ready to Merge"
UPDATE_METHOD: "rebase"
MERGE_FORKS: "false"
It was working fine before I added the permissions
part.
Anyone has an idea ?
Works for me: Change the trigger event from pull_request to pull_request_target
Have same problem, Not work on forks?
I had the same issue, it fixes when you use a PAT with permissions to manage PRs
I met this problem and finally found that the GITHUB_TOKEN
token does not exist. You can check whether the secrets.GITHUB_TOKEN
exists or whether there is an error. @mmiranda @totoprayogo1916
I found the solution: Go to the settings of your repo, actions, general. Then change the permission to read and write, and allow it to open and approve pull requests.
I found the solution: Go to the settings of your repo, actions, general. Then change the permission to read and write, and allow it to open and approve pull requests.
This one particularly did not work for me as I already had the said settings enabled. Still facing the issue.
Description
Running into an issue where the action intermittently is unable to merge the pull request. It complains about the resource not being accessible from the integration (
Failed to merge PR: Resource not accessible by integration
).Setup
pull_request_target
event.Has anyone seen this issue? Is there a certain way a pull request could be created from a fork that might cause this?
Logs