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

Action result: undefined #191

Open
Cdimock opened this issue May 16, 2022 · 3 comments
Open

Action result: undefined #191

Cdimock opened this issue May 16, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Cdimock
Copy link

Cdimock commented May 16, 2022

Does anyone know whats going on here? It seems like its all working properly, but then it just doesn't merge and gives this non-descript error

Run pascalgn/automerge-action@v0.15.3
DEBUG Configuration: {
  mergeLabels: { required: [ 'automerge' ], blocking: [] },
  mergeRemoveLabels: [],
  mergeMethod: 'merge',
  mergeMethodLabels: [],
  mergeMethodLabelRequired: false,
  mergeForks: true,
  mergeCommitMessage: 'automatic',
  mergeCommitMessageRegex: '',
  mergeFilterAuthor: '',
  mergeRetries: 6,
  mergeRetrySleep: 5000,
  mergeRequiredApprovals: 0,
  mergeDeleteBranch: false,
  mergeDeleteBranchFilter: [],
  mergeErrorFail: false,
  updateLabels: { required: [ 'automerge' ], blocking: [] },
  updateMethod: 'merge',
  updateRetries: 1,
  updateRetrySleep: 5000,
  baseBranches: [],
  pullRequest: null
}
2022-05-16T19:54:02.806Z INFO  Event name: push
2022-05-16T19:54:02.806Z DEBUG Updated branch: main
2022-05-16T19:54:02.806Z DEBUG Listing pull requests...
2022-05-16T19:54:02.992Z INFO  Open PRs: 1
2022-05-16T19:54:02.992Z INFO  Updating PR #18 CI: Build Number bumped to [7](https://github.com/Cdimock/test-buildNumber-action/runs/6459120349?check_suite_focus=true#step:2:7)1
2022-05-16T19:54:02.993Z DEBUG Getting pull request info for 1[8](https://github.com/Cdimock/test-buildNumber-action/runs/6459120349?check_suite_focus=true#step:2:8) ...
2022-05-16T1[9](https://github.com/Cdimock/test-buildNumber-action/runs/6459120349?check_suite_focus=true#step:2:9):54:03.240Z INFO  No update necessary, mergeable_state: clean
2022-05-16T19:54:03.241Z INFO  1 PRs based on main have been updated
2022-05-16T19:54:03.241Z INFO  Action result: undefined
2022-05-16T19:54:03.243Z Error: invalid result!
    at executeGitHubAction (/home/runner/work/_actions/pascalgn/automerge-action/v0.15.3/dist/index.js:86:[11](https://github.com/Cdimock/test-buildNumber-action/runs/6459120349?check_suite_focus=true#step:2:11))
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async main (/home/runner/work/_actions/pascalgn/automerge-action/v0.[15](https://github.com/Cdimock/test-buildNumber-action/runs/6459120349?check_suite_focus=true#step:2:15).3/dist/index.js:22[21](https://github.com/Cdimock/test-buildNumber-action/runs/6459120349?check_suite_focus=true#step:2:21)5:5)
@pascalgn pascalgn added the bug Something isn't working label Oct 7, 2022
@laviniamnedelea
Copy link

+1. Any fix or workaround for this?

@wjf3121
Copy link

wjf3121 commented Apr 19, 2023

+1. Is there any update on this issue?

2023-04-19T04:33:49.835Z INFO  Event name: push
2023-04-19T04:33:50.436Z INFO  Open PRs: 10
2023-04-19T04:33:50.436Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.437Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.437Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.437Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.437Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.437Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.437Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.43[8](https://github.com/risingwavelabs/risingwave-cloud/actions/runs/4739566454/jobs/8414514089#step:2:9)Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-1[9](https://github.com/risingwavelabs/risingwave-cloud/actions/runs/4739566454/jobs/8414514089#step:2:10)T04:33:50.438Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.438Z INFO  Skipping PR update, required label missing: autoupdate_merge
2023-04-19T04:33:50.438Z INFO  [10](https://github.com/risingwavelabs/risingwave-cloud/actions/runs/4739566454/jobs/8414514089#step:2:11) PRs based on main have been updated
2023-04-[19](https://github.com/risingwavelabs/risingwave-cloud/actions/runs/4739566454/jobs/8414514089#step:2:20)T04:33:50.438Z INFO  Action result: undefined
[20](https://github.com/risingwavelabs/risingwave-cloud/actions/runs/4739566454/jobs/8414514089#step:2:21)23-04-19T04:33:50.439Z ERROR invalid result!

@koppor
Copy link

koppor commented Jul 3, 2023

Same here:

Run pascalgn/automerge-action@v0.15.6
  env:
    GITHUB_TOKEN: ***
    MERGE_FILTER_AUTHOR: github-actions
    MERGE_METHOD: merge
    MERGE_LABELS: 
2023-07-03T09:41:53.069Z INFO  Event name: push
2023-07-03T09:41:53.309Z INFO  No open PRs for add-automerge
2023-07-03T09:41:53.310Z INFO  Action result: undefined
2023-07-03T09:41:53.310Z ERROR invalid result!

My configuration is pretty basic:

jobs:
  automerge:
    runs-on: ubuntu-latest
    steps:
      - id: automerge
        name: automerge
        uses: "pascalgn/automerge-action@v0.15.6"
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
          MERGE_FILTER_AUTHOR: "github-actions"
          MERGE_METHOD: "merge"
          MERGE_LABELS: ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants