Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 748d1e3

Browse files
heiskrPeter Bengtsson
andauthored
Move files out of script/ (#45454)
Co-authored-by: Peter Bengtsson <[email protected]>
1 parent 3ecf408 commit 748d1e3

86 files changed

Lines changed: 121 additions & 111 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
contributing/
66
docs/
77
node_modules/
8-
script/
98
tests/
109
# Folder is cloned during the preview + prod workflows, the assets are merged into other locations for use before the build
1110
docs-early-access/

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
"tmp/*",
2121
"!/.*",
2222
"/.next/",
23-
"script/bookmarklets/*",
23+
"src/bookmarklets/*",
2424
"src/open-source/scripts/add-pr-links.js",
2525
"src/open-source/scripts/pr-link-source.js",
2626
"rest-api-description/",

.github/actions/warmup-remotejson-cache/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ runs:
3333
- name: Run script
3434
if: ${{ inputs.restore-only == '' }}
3535
shell: bash
36-
run: node script/warmup-remotejson.js
36+
run: node src/archives/scripts/warmup-remotejson.js
3737

3838
- name: Cache .remotejson-cache (save)
3939
if: ${{ inputs.restore-only == '' }}

.github/workflows/check-broken-links-github-github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Run broken github/github link check
6868
run: |
69-
script/check-github-github-links.js broken_github_github_links.md
69+
src/links/scripts/check-github-github-links.js broken_github_github_links.md
7070
7171
- name: Get title for issue
7272
# If the file 'broken_github_github_links.md' got created,

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104

105105
- name: Check the test fixture data (if applicable)
106106
if: ${{ matrix.name == 'rendering-fixtures' }}
107-
run: ./script/copy-fixture-data.js --check
107+
run: ./src/tests/scripts/copy-fixture-data.js --check
108108

109109
# This keeps our fixture content/data in check
110110
- name: Check the test fixture content (if applicable)

.github/workflows/triage-unallowed-contributions.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ on:
1313
- 'assets/fonts/**'
1414
- 'data/graphql/**'
1515
- 'Dockerfile*'
16-
- 'src/**'
16+
- 'src/*/scripts/**'
17+
- 'src/**.json'
18+
- 'src/workflows/**'
1719
- 'lib/redirects/**'
1820
- 'package*.json'
19-
- 'script/**'
2021
- 'content/actions/deployment/security-hardening-your-deployments/**'
2122

2223
permissions:
@@ -55,10 +56,11 @@ jobs:
5556
- 'assets/fonts/**'
5657
- 'data/graphql/**'
5758
- 'Dockerfile*'
58-
- 'src/**'
59+
- 'src/*/scripts/**'
60+
- 'src/**.json'
61+
- 'src/workflows/**'
5962
- 'lib/redirects/**'
6063
- 'package*.json'
61-
- 'scripts/**'
6264
- 'content/actions/deployment/security-hardening-your-deployments/**'
6365
6466
# When there are changes to files we can't accept, leave a comment
@@ -75,10 +77,11 @@ jobs:
7577
'assets/fonts/**',
7678
'data/graphql/**',
7779
'Dockerfile*',
78-
'src/**',
80+
'src/*/scripts/**',
81+
'src/**.json',
82+
'src/workflows/**',
7983
'lib/redirects/**',
8084
'package*.json',
81-
'scripts/**',
8285
'content/actions/deployment/security-hardening-your-deployments/**',
8386
]
8487

.github/workflows/validate-asset-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Validate asset images
22

3-
# **What it does**: Run ./script/validate-asset-images.js on all images in assets/
3+
# **What it does**: Run ./src/assets/scripts/validate-asset-images.js on all images in assets/
44
# **Why we have it**: To protect from innocent and potentially malicious bad image assets
55
# **Who does it impact**: Docs content.
66

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ coverage/
99
/assets/images/early-access
1010
/content/early-access
1111
/data/early-access
12-
/script/dev-toc/static
12+
/src/dev-toc/static
1313
.next
1414
.eslintcache
1515
*.tsbuildinfo
@@ -30,7 +30,7 @@ lib/redirects/.redirects-cache*.json
3030
user-code/
3131

3232
# Logs from scripts
33-
script/logs/
33+
*/logs/
3434
external-link-checker-db.json
3535

3636
# Playwright related

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data/release-notes/
2-
script/bookmarklets/
2+
src/bookmarklets/
33
src/open-source/scripts/add-pr-links.js
44
/.next/
55

content/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ featuredLinks:
196196

197197
### `allowTitleToDifferFromFilename`
198198

199-
- Purpose: Indicates whether a page is allowed to have a title that differs from its filename. Pages with this frontmatter set to `true` will not be flagged in tests or updated by `script/reconcile-ids-with-filenames.js`. Use this value if a file's `title` frontmatter includes Liquid or punctuation that cannot be part of the filename. For example, the article "[About Enterprise Managed Users](https://docs.github.com/en/enterprise-cloud@latest/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users)" uses a Liquid reusable in its title, `'About {% data variables.product.prodname_emus %}'`, which cannot be in the filename, `about-enterprise-managed-users.md`, so the `allowTitleToDifferFromFilename` frontmatter is set to `true`.
199+
- Purpose: Indicates whether a page is allowed to have a title that differs from its filename. Pages with this frontmatter set to `true` will not be flagged in tests or updated by `src/content-render/scripts/reconcile-filenames-with-ids.js`. Use this value if a file's `title` frontmatter includes Liquid or punctuation that cannot be part of the filename. For example, the article "[About Enterprise Managed Users](https://docs.github.com/en/enterprise-cloud@latest/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users)" uses a Liquid reusable in its title, `'About {% data variables.product.prodname_emus %}'`, which cannot be in the filename, `about-enterprise-managed-users.md`, so the `allowTitleToDifferFromFilename` frontmatter is set to `true`.
200200
- Type: `Boolean`. Default is `false`.
201201
- Optional.
202202

0 commit comments

Comments
 (0)