-
Notifications
You must be signed in to change notification settings - Fork 11
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
Workflow failure: Could not resolve to a PullRequest with the number of 0 #392
Comments
Hi @garaujodev, thanks for raising this. I suspect this was inadvertently caused by v1.5.0 which was released last week. I'm about to go on holiday for a week, so as I don't have time to find the proper fix before I go I'll revert that change in a new release, working on that right now. |
Done, I have created a new release v1.5.4 which reverts the suspect v1.5.0 change. @garaujodev please confirm that this has fixed things for you, thanks. |
@garaujodev Can you tell what kind of event type it is exactly that is generating this error? It works for me for My workflow looks like this: name: Check labels
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
check-labels:
name: Check PR labels
runs-on: ubuntu-22.04
steps:
- name: Golden master label validation
uses: docker://agilepathway/pull-request-label-checker:v1.5.0
with:
one_of: golden-master-validated
none_of: do-not-merge
repo_token: ${{ secrets.GITHUB_TOKEN }} //EDIT Also checked with // EDIT 2 @garaujodev Can you try using |
Hello guys! Thanks for the quick support! I tried to use the latest version, but the problem still occurs. I forget to mention here in my configuration file, but I have other trigger:
Sorry for didn't mention this part. After an investigation, I noticed that the problem happens due to this trigger action ( |
@garaujodev Thanks for reply. I think In theory this action could try to check:
But this seems a little hackish. If this label check should only work with pull requests events then you should use
|
Thanks for looking into this so thoroughly, @piotrekkr, and for providing the additional info above, @garaujodev. I agree with @piotrekkr's proposal to always use the |
This reverts commit f7377ad. That commit reverted #386 as a precautionary measure, while [investigating a potential bug][1]. It turns out [that there was no bug][2], though, so this commit reverts that revert. [1]: #392 [2]: #392 (comment)
This is now done, in #400. I'll close this issue now, thanks again to both of you, @piotrekkr and @garaujodev for the thorough investigation 🙏🏻 |
I'm getting consecutive failures in the workflow. This is my output:
My workflow file
Any ideas?
The text was updated successfully, but these errors were encountered: