Skip to content

Action fails quietly due to Unhandled promise rejection #5

@abrkn

Description

@abrkn
Run gha-utilities/init-pull-request@v0.0.7
  with:
    pull_request_token: ***
    head: release-0.0.2
    base: master`
    title: Release v0.0.2
    body: Perhaps a multi-line description about latest features and such.
  
Failed to initialize Pull Request
Please check that your Workflow file looks similar to...
  - name: Initialize Pull Request
    uses: gha-utilities/init-pull-request
    with:
      pull_request_token: ${{ secrets.PULL_REQUEST_TOKEN }}
      head: feature-branch
      base: master
      title: Adds awesome feature
      body: >
        Some thing can now be done that could
        not be done before.
(node:2777) UnhandledPromiseRejectionWarning: HttpError: Validation Failed: {"resource":"PullRequest","field":"base","code":"invalid"}
    at /home/runner/work/_actions/gha-utilities/init-pull-request/v0.0.7/node_modules/@octokit/request/dist-node/index.js:66:23
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:2777) 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:2777) [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions