Auto Merge fails on initial try
See original GitHub issueThe action runs on checksuite-success. It retries three times and fails on each.
Doing a dependabot recreate
triggers automerge correctly, and the rebasing of other open dependabot prs closes other PRs successfully too.
It fails on with the following error message:
Run ridedott/dependabot-auto-merge-action@master
Found pull request information: {"reviewEdges":[{"node":{"state":"APPROVED"}}]}.
##[error]An unexpected error occurred: (e || "").replace is not a function, TypeError: (e || "").replace is not a function
at escapeData (evalmachine.<anonymous>:1:65447)
at Command.toString (evalmachine.<anonymous>:1:65373)
at issueCommand (evalmachine.<anonymous>:1:64866)
at Object.issue (evalmachine.<anonymous>:1:64935)
at Object.error (evalmachine.<anonymous>:1:91320)
at Object.t.pullRequestHandle (evalmachine.<anonymous>:1:117513)
at processTicksAndRejections (internal/process/task_queues.js:93:5).
##[error]Node run failed with exit code 1
What are the expected results?
It should work on initial try.
What are the actual results?
PRs are not properly merged on the initial try, but the Checksuite is all green. It retries 3 times and then fails.
Rebasing or recreating the PR with dependabot recreate
in chat resolves the issue as shown in the pr example below.
How much does it hurt?
Telling Dependabot to recreate takes as long as merging with admin privileges. Therefore the action does not smooth anything when this bug occurs.
Further Links:
An example failing Action and the corresponding failing example PR.
The Action YML Is the default.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top GitHub Comments
@Twonki @nuria-fl @hiwelo I merged two PRs: fix to the logging mechanism and better setup/configuration instructions (see the Readme). Let me know what the results are.
Just wanted to confirm that the issue seems to be resolved.
Thank you very much for the quick fix 😃