daneden / enable-automerge-action Goto Github PK
View Code? Open in Web Editor NEW๐ค A GitHub action that enables automerge for pull requests opened by a specified author
License: MIT License
๐ค A GitHub action that enables automerge for pull requests opened by a specified author
License: MIT License
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"]
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.