Check that the reviewed commit belongs to the fetched PR #448

Open
superhero-520 wants to merge 1 commit from superhero-520/Darner:testing-guide-pr-history into Main
Contributor

Contributor role (optional)

superhero-520

What it changes

Step 2 of the testing guide could check out a full SHA from another branch. It now checks that the supplied commit is in the fetched PR history before checkout and the SDK download. If the PR gained commits after review, the guide still checks out the supplied SHA.

How it was tested

On 7bceafc417e095f5f05aa83ba6d0a493fbde153d, I ran the guide's PowerShell block against local text-only Git repositories on Windows PowerShell 5.1. The download command was replaced with a marker. The current PR tip and a reviewed ancestor reached the marker once each at the requested SHA. A commit from another branch, an old commit dropped by a rewrite, an unknown SHA and a missing PR ref all stopped before the marker.

git diff --check origin/main...HEAD passed. cargo xtask policy passed for 564 files. No workspace-wide Rust gates or gameplay runs were performed.

Checklist

  • Docs only. The Windows checkout instructions were exercised directly.
  • One change based on main.
  • The diff follows the asset policy.
  • Dependencies checked. None.

Checked for overlap

  • Checked open and closed issues, PRs and changes to this file.
  • Follow-up to merged #203. No competing open PR found.
## Contributor role (optional) superhero-520 ## What it changes Step 2 of the testing guide could check out a full SHA from another branch. It now checks that the supplied commit is in the fetched PR history before checkout and the SDK download. If the PR gained commits after review, the guide still checks out the supplied SHA. ## How it was tested On `7bceafc417e095f5f05aa83ba6d0a493fbde153d`, I ran the guide's PowerShell block against local text-only Git repositories on Windows PowerShell 5.1. The download command was replaced with a marker. The current PR tip and a reviewed ancestor reached the marker once each at the requested SHA. A commit from another branch, an old commit dropped by a rewrite, an unknown SHA and a missing PR ref all stopped before the marker. `git diff --check origin/main...HEAD` passed. `cargo xtask policy` passed for 564 files. No workspace-wide Rust gates or gameplay runs were performed. ## Checklist - [x] Docs only. The Windows checkout instructions were exercised directly. - [x] One change based on main. - [x] The diff follows the asset policy. - [x] Dependencies checked. None. ## Checked for overlap - [x] Checked open and closed issues, PRs and changes to this file. - Follow-up to merged #203. No competing open PR found.
superhero-520 changed title from WIP: [pr-docs] Check that the reviewed commit belongs to the fetched PR to [pr-docs] Check that the reviewed commit belongs to the fetched PR 2026-12-04 23:28:04 +00:00
TrustNo1 changed title from [pr-docs] Check that the reviewed commit belongs to the fetched PR to Check that the reviewed commit belongs to the fetched PR 2026-12-06 03:28:57 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'testing-guide-pr-history:superhero-520-testing-guide-pr-history'
git switch 'superhero-520-testing-guide-pr-history'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'superhero-520-testing-guide-pr-history'
git switch 'superhero-520-testing-guide-pr-history'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'superhero-520-testing-guide-pr-history'
git switch 'superhero-520-testing-guide-pr-history'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'superhero-520-testing-guide-pr-history'
git switch 'Main'
git merge --squash 'superhero-520-testing-guide-pr-history'
git switch 'Main'
git merge --ff-only 'superhero-520-testing-guide-pr-history'
git switch 'Main'
git merge 'superhero-520-testing-guide-pr-history'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!448
No description provided.