Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "Pull request is in unstable status" #227

Open
LucasForster opened this issue Aug 9, 2022 · 2 comments
Open

Error: "Pull request is in unstable status" #227

LucasForster opened this issue Aug 9, 2022 · 2 comments

Comments

@LucasForster
Copy link

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
@b-remo
Copy link

b-remo commented Sep 28, 2022

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

@JeffHCross
Copy link

If you haven't resolved your issue by now, you may want to take a look at peter-evans/enable-pull-request-automerge#355. Same error, similar workflow, but with a discussion of possible solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants