To publish changes to content, you submit a pull request from your fork. Every pull request has to be reviewed before it can merged.
All changes should be made to the staging
branch. Changes should never be targeted at the live
branch. Changes made in the staging
branch get merged into live
so any changes made to live
are overwritten.
If you are submitting a change to documentation that only applies to an unreleased version of
PowerShell, check to see if there is a release branch for that version. All changes that apply to
a specific, future version should be targeted at the release branch. Release branches have the
following name pattern: release-<version>
.
There are two basic realities in the PR queue:
- Pull requests that are small in scope and relate changes take less time to review.
- Pull requests that are large in scope or that contain unrelated changes take more time to review.
Separate minor updates to existing articles from new articles or major rewrites. Work on these changes in separate working branches.
Bulk changes drive PRs with large numbers of changed files. Limit your PRs to a maximum of 50 changed files. Large PRs are difficult to review and are more prone to contain errors.
When you rename or delete files, avoid mixing these changes with content additions or updates. Handle these changes in a separate PR that gets merged after the PR for related updates. For example, update the redirects file and verify the redirect is working before deleting an article.
You must update all files that link to the renamed file. This includes any TOC files. You must also
add redirection entries in the master redirection file (.openpublishing.redirection.json
) in the
root of the repository.
The Docs PR validation service is a GitHub app that runs validation rules on the files in a PR.
You'll see the following behavior:
-
You submit a PR.
-
In the GitHub comment that indicates the status of your PR, you'll see the status of "checks" enabled on the repo. Note that in this example, there are two checks enabled, "Commit Validation" and "OpenPublishing.Build":
Build can pass even if commit validation fails.
-
Click Details for more information.
-
On the Details page, you'll see all the validation checks that failed, with information about how to fix the issues.
-
When validation succeeds, the following comment is added to the PR:
If you are an external (non-Microsoft) contributor you do not have access to the detailed build reports or preview links.