Git Product home page Git Product logo

enable-automerge-action's People

Contributors

daneden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

enable-automerge-action's Issues

GraphqlError: ["Pull request Pull request is in unstable status"]

Hi,
getting the below when trying to use the action :


(node:202334) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'enablePullRequestAutoMerge' of undefined
    at main (/home/i/preProdCi/runner1/_work/_actions/daneden/enable-automerge-action/v1/dist/index.js:4632:7)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:202334) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:202334) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error: GraphqlError: ["Pull request Pull request is in unstable status"]

I get the error "HttpError: Not Found"

Hi,

first of all thanks for building this project. We've been using it successfully for a while on a project.

On two other projects, I do get this error:

(node:1478) UnhandledPromiseRejectionWarning: HttpError: Not Found
    at /home/runner/work/_actions/daneden/enable-automerge-action/v1/dist/index.js:2845:26
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async main (/home/runner/work/_actions/daneden/enable-automerge-action/v1/dist/index.js:4591:31)
(node:1478) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1478) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The configuration is exactly the same as for the other project where it does work. The configuration looks like this:

name: Enable automerge on dependabot PRs

on:
  pull_request_target:

jobs:
  automerge:
    name: ๐Ÿš€  Enable automerge on dependabot PRs
    runs-on: ubuntu-latest
    steps:
      - name: ๐Ÿš€  Enable automerge on dependabot PRs
        uses: daneden/enable-automerge-action@v1
        with:
          github-token: ${{ secrets.DEPENDABOT_AUTO_MERGE_PERSONAL_ACCESS_TOKEN }}

The Action itself says that it successfully completed, but the above error is outputted in the CLI output.

Any idea why this would work on some projects and not on others?

Best Regards

Wouter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.