github-action-benchmark icon indicating copy to clipboard operation
github-action-benchmark copied to clipboard

Support manually setting the relevant PR number that the action should comment to

Open ktrz opened this issue 8 months ago • 1 comments

If the action is not triggered by a pull_request trigger, in some cases it's impossible to infer what the relevant PR is. In those cases the easiest solution could be to have an input option to provide a PR number that we want the action to post to.

Relevant comment from another issue: https://github.com/benchmark-action/github-action-benchmark/issues/250#issuecomment-2307796766

ktrz avatar Mar 29 '25 09:03 ktrz

I'm not sure how feasible it is to detect the PR that actually triggered an arbitrary workflow several layers deep. For example workflow_run could check the workflow that triggered it to recursively check for the PR it originated from.

So, a manual option would work for my use case.

WorldSEnder avatar Mar 29 '25 15:03 WorldSEnder