-
-
Notifications
You must be signed in to change notification settings - Fork 57
Support create comment on pull_request_target event #22
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
Conversation
I just created #25 . See my reasonings in the PR. Will the changes in this PR work the same way as mine? Because the event is always non-null (non-empty) when the work flow is triggered? So we might as well drop the check on the event name itself? |
@jhen0409 By the way, you have not uploaded the generated files under dist folder. My understanding is that that we need those files to for the github actions to work. My PRs all contain those files. May be I have misunderstood something? |
I hope the PR can be reduced the review noises, so I expected it can be build when release new version.
I saw #25 I think it will broke the workflow on another trigger types, because it not always have pr number on every trigger types. |
Ah got it.
I dont think I understand the comment. But I think you prefer to get the PR number for ever comment. Is that correct? |
I mean |
Hello everyone. I just want to make sure I'm processing the right PR. So in lieu of this PR, #25 can be merged and this can be closed? |
It might depend on the use case like I saw in #22 (comment). However, these more trigger types may includes the payload. The best way probably is skip create comment when the payload is empty. |
From my side, I dont mind creation of multiple comments. Creation of a comment is a minor action and it does not take long. And I can also manually delete comments that are not needed. But this is just my use case. The primary goal of #25 is that if I update my PR with more unit tests and the coverage improves, I want it to show up as a comment. If that is achieved in a better way, I will be happy to accept the solution. |
Note the PR #28 . This allows us to skip creating multiple comments. :-) |
Thank you for your patience and contribution. I'm kind of lost in the conversation but I've decided to merge this relatively straightforward PR. Thank you again! |
Bumps [@actions/artifact](https://github.com/actions/toolkit/tree/HEAD/packages/artifact) from 2.1.0 to 2.1.1. - [Changelog](https://github.com/actions/toolkit/blob/main/packages/artifact/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/@actions/[email protected]/packages/artifact) --- updated-dependencies: - dependency-name: "@actions/artifact" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The pull_request_target event is similar to
pull_request
but allows specific activity types. In my case, I want to limit the trigger to[opened, synchronize]
.