enable-github-automerge-action
enable-github-automerge-action copied to clipboard
Error: "Pull request is in unstable status"
Hi,
hope it's okay to ask for support this way. I've set up a workflow using this action to enable auto-merge on all pull requests from dependabot as shown in the readme. Unfortunately, the runs fail with the above error message.
I'm not quite sure what "unstable status" refers to, as I could neither find it in the source code of this action nor in the GitHub Docs π€·π»ββοΈ My first thought ran to some kind of timing issue, but re-running the workflow after the pr had been open for some time didn't yield another result.
I'm pasting my workflow file and debug log below βΒ any ideas would be appreciated ππ»
Thanks
Workflow
name: Auto-Merge
# https://github.com/marketplace/actions/enable-github-automerge#2-usage
on:
pull_request_target:
types: [labeled]
jobs:
enable-auto-merge:
runs-on: ubuntu-latest
# Specifically check that dependabot (or another trusted party) created this pull-request, and that it has been labelled correctly.
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
steps:
- uses: alexwilson/enable-github-automerge-action@main
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Debug Log
##[debug]Evaluating condition for step: 'Run alexwilson/enable-github-automerge-action@main'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run alexwilson/enable-github-automerge-action@main
##[debug]Loading inputs
##[debug]Evaluating: secrets.GITHUB_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GITHUB_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run alexwilson/enable-github-automerge-action@main
with:
github-token: ***
##[debug]Retrieving merge-method...
##[debug]Successfully retrieved merge-method as: SQUASH
##[debug]Enabling auto-merge for pull-request #11...
Error: ["Pull request Pull request is in unstable status"]
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run alexwilson/enable-github-automerge-action@main
We are currently facing the same issue, Thanks for creating an issue for this @LucasForster.
If you haven't resolved your issue by now, you may want to take a look at https://github.com/peter-evans/enable-pull-request-automerge/issues/355. Same error, similar workflow, but with a discussion of possible solutions.