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: script/README.md
+32-12
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,15 @@ Runs tests. Equivalent of `npm test`.
30
30
31
31
## Additional scripts
32
32
33
+
### [`anonymize-branch.js`](anonymize-branch.js)
34
+
35
+
Flatten all the commits in the current branch into a single anonymized @Octomerger commit
36
+
37
+
Usage: script/anonymize-branch.js <new-commit-message> [base-branch] Example: script/anonymize-branch.js "nothing to see here" If the optional [base-branch] argument is omitted, it will default to `main`
Run this script during the Enterprise deprecation process to download static copies of all pages for the oldest supported Enterprise version. See the Enterprise deprecation issue template for instructions.
This script stitches and unstitches the `github/github` OpenAPI description via `rest-api-operations` to produce a local preview in docs-internal.
311
-
312
-
`github`, `rest-api-operations`, and `docs-internal` must share a parent directory locally.
313
-
314
-
You must bootstrap `github` for this script to work. To check if you need to bootstrap, check if the `bin` directory in `github` exists locally. If it does not exist, run `./script/bootstrap` from the `github` directory.
315
332
316
-
To stitch the repos together and do an npm build, pass the `stitch` argument.
317
-
318
-
To unstitch the repos and revert them to their pre-stitched state, pass the `unstitch` argument.
319
333
320
334
---
321
335
@@ -379,13 +393,19 @@ Run this script to remove reusables and image files that exist in the repo but a
379
393
380
394
This is a convenience script for replacing the contents of translated files with the English content from their corresponding source file.
381
395
382
-
It's intended to be a workaround to temporarily bypass Crowdin parser bugs while we wait for Crowdin to fix them.
396
+
It's intended to be a workaround to temporarily bypass Crowdin parser bugs while we wait for translators to fix them.
397
+
398
+
Usage: script/reset-translated-file.js <filename>
399
+
400
+
Examples:
401
+
402
+
reset a single translated file using a relative path: $ script/reset-translated-file.js translations/es-XL/content/actions/index.md
reset a single translated file using a full path: $ script/reset-translated-file.js /Users/z/git/github/docs-internal/translations/es-XL/content/actions/index.md
385
405
386
-
script/reset-translated-File.js content/desktop/foo.md -> resets all translations of foo.md
406
+
reset all language variants of a single English file (using a relative path): $ script/reset-translated-file.js content/actions/index.md $ script/reset-translated-file.js data/ui.yml
387
407
388
-
script/reset-translated-File.js content/desktop/foo.md de -> resets german translation of foo.md
408
+
reset all language variants of a single English file (using a full path): $ script/reset-translated-file.js /Users/z/git/github/docs-internal/content/desktop/index.md $ script/reset-translated-file.js /Users/z/git/github/docs-internal/data/ui.yml
0 commit comments