ome / ngff

Next-generation file format (NGFF) specifications for storing bioimaging data in the cloud.
https://ngff.openmicroscopy.org
Other
119 stars 41 forks source link

Review workflow: fix generated URL. #129

Closed sbesson closed 2 years ago

sbesson commented 2 years ago

As per https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target github.sha will point to the base branch SHA

github-actions[bot] commented 2 years ago

Automated Review URLs

joshmoore commented 2 years ago

Just doing this to but I don't think a pull_request_target PR will likely not let you appropriately test. That was my problem with the previous attempts.

But I'll leave you to investigate.

sbesson commented 2 years ago

Just doing this to but I don't think a pull_request_target PR will likely not let you appropriately test.

Ah now I get the "This event runs in the context of the base of the pull request, rather than in the context of the merge commit, as the pull_request event does.". Yes not sure how to test this now

joshmoore commented 2 years ago

~Shall we reopen my origin/review branch, push your commit there, and open PRs against it?~

Edit: actually that probably won't work either. Maybe it's just pushes to main.

joshmoore commented 2 years ago

I'll move this to origin/main and revert if necessary.

joshmoore commented 2 years ago

After pushing head.ref this has been updated, but that doesn't resolve, since ome/ngff/review_sha doesn't exist. I'll try to find an explicit sha for the PR.