enable-github-automerge-action icon indicating copy to clipboard operation
enable-github-automerge-action copied to clipboard

Error: "Pull request is in unstable status"

Open LucasForster opened this issue 2 years ago β€’ 2 comments

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

LucasForster avatar Aug 09 '22 09:08 LucasForster

We are currently facing the same issue, Thanks for creating an issue for this @LucasForster.

b-remo avatar Sep 28 '22 06:09 b-remo

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.

JeffHCross avatar Feb 15 '23 21:02 JeffHCross