-
Notifications
You must be signed in to change notification settings - Fork 27
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
the action doesn't not return data on closed pr #165
Comments
I had same issue similar like this, waiting for solution regarding this |
I'm gonna check it out over this weekend and get back to you 👍🏼 |
yep, can confirm the issue/bug. It's because Github's Api Endpoint completely ignores closed PRs and only cares about merged and open PRs. |
Still thinking about this one. But yeah, currently I'm leaning towards either just marking this as a limitation in the Readme for now. This library purely functions and acts on the current commit sha and lets GithubApi do all the heavy lifting, whether we have a PR for that commit or not.
This is very much bruteforce and doesn't scale well with old repos (=many PRs) or big PRs(=many commits). But yeah, sadly I'm not able to tell you that this is something that will be resolved soonish |
Do any of you want to give the implementation a shot? @rhgenius @GagahGK |
Subject of the issue
the action doesn't return api data on closed pr event
Your git environment
I have two github jobs one is to get the data using this repo action and one is a job that triggered when a pr is closed
Steps to reproduce
with the following if condition on the job
Expected behaviour
needs.get-pr.outputs.PR return json data , the job will triggered
Actual behaviour
the
closed_by_user
jobs didn't run because the needs.get-pr.outputs.PR didn't return any json datawhen I removed the
needs.get-pr.outputs.PR != ''
the job is triggered, but got error since I need a data from the API, but the data is emptyThe text was updated successfully, but these errors were encountered: