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 fails to find the requested PR to merge it #39

Open
andrewfullard opened this issue Dec 5, 2022 · 2 comments
Open

Action fails to find the requested PR to merge it #39

andrewfullard opened this issue Dec 5, 2022 · 2 comments

Comments

@andrewfullard
Copy link

We are attempting to use this action for our release pipeline, https://github.com/tardis-sn/tardis/actions/workflows/pre-release.yml

Workflow setup:

 - name: Approve pull request
        uses: juliangruber/approve-pull-request-action@v2
        with:
          github-token: ${{ secrets.PR_APPROVAL_TOKEN }}
          number: ${{ steps.create-pr.outputs.pull-request-number }}
        if: steps.create-pr.outputs.pull-request-operation == 'created'

Relevant log output:

2022-12-04T00:23:45.9869326Z Created pull request #2166 (tardis-bot:pre-release-2022.12.04 => master)
[...]
2022-12-04T00:23:47.4887232Z Persisted git credentials restored
2022-12-04T00:23:47.4887819Z ##[endgroup]
2022-12-04T00:23:47.5019152Z ##[group]Run sleep 30
2022-12-04T00:23:47.5019380Z �[36;1msleep 30�[0m
2022-12-04T00:23:47.5071646Z shell: /usr/bin/bash -l {0}
2022-12-04T00:23:47.5071889Z env:
2022-12-04T00:23:47.5072078Z   DATE: 2022.12.04
2022-12-04T00:23:47.5072301Z   PULL_REQUEST_NUMBER: 2166
2022-12-04T00:23:47.5072518Z ##[endgroup]
2022-12-04T00:24:17.6216479Z ##[group]Run juliangruber/approve-pull-request-action@v2
2022-12-04T00:24:17.6216759Z with:
2022-12-04T00:24:17.6217191Z   github-token: ***
2022-12-04T00:24:17.6217958Z   number: 2166
2022-12-04T00:24:17.6218146Z env:
2022-12-04T00:24:17.6218320Z   DATE: 2022.12.04
2022-12-04T00:24:17.6218537Z   PULL_REQUEST_NUMBER: 2166
2022-12-04T00:24:17.6218749Z ##[endgroup]
2022-12-04T00:24:17.8465051Z ##[error]Not Found

The sleep is intended to allow the PR to be created by the previous action.

Would greatly appreciate any help with this.

@nvtanhh
Copy link

nvtanhh commented Feb 12, 2023

hello, not relative but what was your PR_APPROVAL_TOKEN?

@andrewfullard
Copy link
Author

hello, not relative but what was your PR_APPROVAL_TOKEN?

Just a token that should allow the action to approve the PR for merging.

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
@andrewfullard @nvtanhh and others