-
Notifications
You must be signed in to change notification settings - Fork 159
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 is not creating any comments on PR #250
Comments
I think I found out what the problem is: Since I trigger the workflow on github-action-benchmark/src/write.ts Lines 247 to 249 in 55f6195
the function leaveCommitComment will be called. Don't know how to fix it yet, but it shouldn't be too hard to get the parent PR from a comment.
|
it's apparently not possible to also provide a PR number for the comment to target, since that is automically determined by the action (and wrong for workflow_run workflows) See also: benchmark-action/github-action-benchmark#250
…3716) * provide reference ref for benchmark action it's apparently not possible to also provide a PR number for the comment to target, since that is automically determined by the action (and wrong for workflow_run workflows) See also: benchmark-action/github-action-benchmark#250 * guard benchmark action with performance label again This check was removed in #2774 for simplicity, bring it back to spam less
Over at yew, we also have a setup which currently only comments on the commits themselves, not the PR. The benchmarking is run on We thus have a similar issue. While it's possible to guide |
@nilsfriess You're missing permissions in your workflow: permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
# allow posting comments to pull request
pull-requests: write |
I was trying to setup a Github action that runs when I open a PR and add a comment with the content
/benchmark
.Here's my workflow file:
The
gen_random_result.py
script does exactly what its name says, it just generates some random data of the formThe action runs as expected but it doesn't generate a comment on the PR with the results.
Is there something I'm missing?
The text was updated successfully, but these errors were encountered: