You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/PR-PREVIEW.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,19 @@ This repository publishes docs previews for pull requests under:
8
8
9
9
1. On PR open/reopen/synchronize:
10
10
- builds docs with preview-specific `site_url`,
11
-
- updates `previews/pr-<number>/` content via a PR into `gh-pages`,
12
-
- enables auto-merge for that `gh-pages` PR,
11
+
- updates `previews/pr-<number>/` content by pushing directly to `gh-pages` as the Scribbler app,
13
12
- comments on the source PR with the preview URL,
14
13
- reports the preview URL through a named environment (`pr-preview-<number>`).
15
14
2. On PR close (merge or abandon):
16
-
- removes `previews/pr-<number>/` via a PR into `gh-pages`,
17
-
- enables auto-merge for that cleanup PR,
15
+
- removes `previews/pr-<number>/` by pushing directly to `gh-pages` as the Scribbler app,
18
16
- deletes all preview deployments and the preview environment.
19
17
20
18
## Required repository configuration
21
19
22
20
1. Ensure `gh-pages` branch exists.
23
21
2. Configure GitHub Pages to publish from `gh-pages`.
24
-
3. Protect `gh-pages`so direct commits are blocked and updates happen through PRs only.
25
-
4.Allow auto-merge for PRs in this repository.
22
+
3. Protect `gh-pages`and restrict push access so **only Scribbler bot app** can push.
23
+
4.In the `gh-pages` branch protection/ruleset, add **Scribbler bot app** as the only actor allowed to bypass required pull requests and any required status checks for that branch.
26
24
27
25
## Scribbler GitHub App permissions
28
26
@@ -31,8 +29,7 @@ The app needs the following repository permissions:
31
29
| Permission | Access | Why |
32
30
| --- | --- | --- |
33
31
| Metadata | Read | Required baseline for API access |
0 commit comments