Skip to content

Commit 0a6ec9d

Browse files
committed
Post the command to try a pull request on the pull request
A PR gets a ready-to-paste command for every script it touches. An install script has no entry point of its own, so it is mapped back to the ct/ script that pulls it in, and a PR touching both halves of one script produces one command rather than two. The comment spells out why COMMUNITY_SCRIPTS_URL has to be set: fetching a ct/ script from a branch does not tell the engine where that branch is, so without it the install script would be looked up in upstream main. pull_request_target for fork PRs, with nothing from the pull request checked out or executed -- branch name and file list come from the API, and the comment is assembled in JavaScript.
1 parent 4321e01 commit 0a6ec9d

1 file changed

Lines changed: 97 additions & 0 deletions

File tree

.github/workflows/pr-test-command.yml

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)