-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Github Action: pull_request_target not supported #13
Comments
Hi, thanks for trying it out. It depends on the go-github library supporting that event. On a quick inspection it looks like the latest version doesn't support it yet (https://github.com/google/go-github/blob/159b448168db1fc1bc61a556e6280e12dfc00a6d/github/messages.go#L43). If you can make a feature request there I'm able to integrate it fairly quickly once it's available. I may be able to implement it myself but can't promise it'll be too fast. |
I just noticed there is an open PR for that new event type so it'll hopefully get merged soon. |
It's been merged, I'll wait for a release and upgrade. |
Hi @srvaroa, has this been fixed? The If this has been merged, can you cut a release or let me know which release version needs to be used so that |
Hi @kbendick I haven't seen a release including that PR yet. What we can do is try to bump the go-github version and use the current master so we can see that event before they publish a final release. I can try this this week, but do feel free to send a PR! |
@srvaroa Think this might be out in a release now |
Thanks for the heads up @akinsolb I'll take a look |
@srvaroa folks at goolge said that the feature in the PR mentioned in #13 (comment) will cut into a release within the next few hours/maybe a day or two. Now, inspecting the webhook event mapping you pointed, that PR does not include the |
Thank you, @jhlegarreta - it looks like we haven't implemented support for that webhook event. I've opened a new issue to support it: google/go-github#1834 |
@srvaroa provided that they tag a new version (they do that on demand), do you think that is enough to support them in the |
Hi, sorry I missed replying here. A release from their side would help to try and implement this case here. I can probably put a bit of time to try and get it working (of course, very happy if someone else wants to take a stab at it). |
So a tagged release of |
yup, thanks! |
I finally got an LGTM, so https://github.com/google/go-github/releases/tag/v35.0.0 has now been released. |
Hi, thanks @gmlewis and @jhlegarreta, I've just submitted a PR that should make this work. I can't test it more thoroughly now but if you can try it out (using PR: #27 Cheers, |
Thanks for the effort @srvaroa 👍. Unfortunately, it looks like the first attempt was unsuccessful here: But that's because the workflow is still attempting to use the And I fear that unless I merge the PR, we will not know if the changes in #27 work for the target use case. I'd like to avoid doing various merge and revert cycles or tests on that repository for many reasons 😔. Maybe your or I can open a test repository that includes an action that uses your labeler, and the other one can try submitting a PR to see if |
For the records, following the above comment we tested the branch in another repository and the action labeled the issue 🚀 ! Besides, the action creates the corresponding label if it does not exist when a match is found in the configuration file. Thnx @srvaroa 💯 ! |
I have added this GitHub action to my repo with the event type:
pull_request_target
instead ofpull_request
. This seems to run on the base repository as expected but I get the following error message:2020/09/11 18:18:35 Trigger event: pull_request_target
2020/09/11 18:18:35 Unable to execute action: unknown X-Github-Event in message: pull_request_target
Is there anyway this can be supported?
The text was updated successfully, but these errors were encountered: