Closed penelopeysm closed 2 months ago
If a PR is made from a fork their_fork/docs with branch name their_branch, the create-pr action in version_check.yml attempts to open a PR against the their_branch branch in this repository, i.e. TuringLang/docs.
their_fork/docs
their_branch
TuringLang/docs
This causes the action to fail because their_branch doesn't exist as a branch in this repo. See e.g. #509 and in particular this run https://github.com/TuringLang/docs/actions/runs/10505358369/job/29136841113
This PR fixes this by detecting if the PR is being made from a fork. If so, don't attempt to open a PR.
Preview the changes: https://turinglang.org/docs/pr-previews/511 Please avoid using the search feature and navigation bar in PR previews!
Looks good, thank you, @penelopeysm, feel free to merge!
If a PR is made from a fork
their_fork/docs
with branch nametheir_branch
, the create-pr action in version_check.yml attempts to open a PR against thetheir_branch
branch in this repository, i.e.TuringLang/docs
.This causes the action to fail because
their_branch
doesn't exist as a branch in this repo. See e.g. #509 and in particular this run https://github.com/TuringLang/docs/actions/runs/10505358369/job/29136841113This PR fixes this by detecting if the PR is being made from a fork. If so, don't attempt to open a PR.