Skip to content

Commit 395d9bb

Browse files
authored
Merge pull request #12785 from github/repo-sync
repo sync
2 parents 5efc58b + 0035e14 commit 395d9bb

4 files changed

Lines changed: 519 additions & 9 deletions

File tree

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: 'Link Checker: All English'
2+
3+
# **What it does**: Renders the content of every page and check all internal links.
4+
# **Why we have it**: To make sure all links connect correctly.
5+
# **Who does it impact**: Docs content.
6+
7+
on:
8+
workflow_dispatch:
9+
push:
10+
branches:
11+
- main
12+
pull_request:
13+
14+
permissions:
15+
contents: read
16+
# Needed for the 'trilom/file-changes-action' action
17+
pull-requests: read
18+
19+
jobs:
20+
build:
21+
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
25+
26+
- name: Setup node
27+
uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
28+
with:
29+
node-version: 16.13.x
30+
cache: npm
31+
32+
- name: Install
33+
run: npm ci
34+
35+
- name: Gather files changed
36+
uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b
37+
id: get_diff_files
38+
with:
39+
# So that `steps.get_diff_files.outputs.files` becomes
40+
# a string like `foo.js path/bar.md`
41+
output: ' '
42+
- name: Insight into changed files
43+
run: |
44+
echo ${{ steps.get_diff_files.outputs.files }}
45+
46+
- name: Link check (warnings, changed files)
47+
run: |
48+
./script/rendered-content-link-checker.mjs \
49+
--language en \
50+
--max 100 \
51+
--check-anchors \
52+
--check-images \
53+
--verbose \
54+
${{ steps.get_diff_files.outputs.files }}
55+
56+
- name: Link check (critical, all files)
57+
run: |
58+
59+
./script/rendered-content-link-checker.mjs \
60+
--language en \
61+
--exit \
62+
--verbose \
63+
--check-images \
64+
--level critical

content/admin/user-management/migrating-data-to-and-from-your-enterprise/exporting-migration-data-from-githubcom.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ shortTitle: Export data from GitHub.com
3333

3434
To export repository data from {% data variables.product.prodname_dotcom_the_website %}, use <a href="/rest/reference/migrations" class="dotcom-only">the Migrations API</a>.
3535

36-
The Migrations API is currently in a preview period, which means that the endpoints and parameters may change in the future. To access the Migrations API, you must provide a custom [media type](/rest/overview/media-types) in the `Accept` header: `application/vnd.github.wyandotte-preview+json`. The examples below include the custom media type.
37-
36+
The Migrations API is currently in a preview period, which means that the endpoints and parameters may change in the future.
3837
## Generating a migration archive
3938

4039
{% data reusables.enterprise_migrations.locking-repositories %}
@@ -45,8 +44,9 @@ The Migrations API is currently in a preview period, which means that the endpoi
4544
* Your access token for authentication.
4645
* A [list of the repositories](/rest/reference/repos#list-organization-repositories) you want to migrate:
4746
```shell
48-
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" -X POST \
49-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
47+
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
48+
-X POST \
49+
-H "Accept: application/vnd.github.v3+json" \
5050
-d'{"lock_repositories":true,"repositories":["<em>orgname</em>/<em>reponame</em>", "<em>orgname</em>/<em>reponame</em>"]}' \
5151
https://api.github.com/orgs/<em>orgname</em>/migrations
5252
```
@@ -60,7 +60,7 @@ The Migrations API is currently in a preview period, which means that the endpoi
6060
* The unique `id` of the migration:
6161
```shell
6262
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
63-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
63+
-H "Accept: application/vnd.github.v3+json" \
6464
https://api.github.com/orgs/<em>orgname</em>/migrations/<em>id</em>
6565
```
6666

@@ -75,7 +75,7 @@ The Migrations API is currently in a preview period, which means that the endpoi
7575
* The unique `id` of the migration:
7676
```shell
7777
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
78-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
78+
-H "Accept: application/vnd.github.v3+json" \
7979
-L -o migration_archive.tar.gz \
8080
https://api.github.com/orgs/<em>orgname</em>/migrations/<em>id</em>/archive
8181
```
@@ -84,8 +84,9 @@ The Migrations API is currently in a preview period, which means that the endpoi
8484
* Your access token for authentication.
8585
* The unique `id` of the migration:
8686
```shell
87-
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" -X DELETE \
88-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
87+
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
88+
-X DELETE \
89+
-H "Accept: application/vnd.github.v3+json" \
8990
https://api.github.com/orgs/<em>orgname</em>/migrations/<em>id</em>/archive
9091
```
9192
{% data reusables.enterprise_migrations.ready-to-import-migrations %}

content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/committing-changes-to-a-pull-request-branch-created-from-a-fork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Only the user who created the pull request can give you permission to push commi
7272

7373
{% tip %}
7474

75-
**Tip:** For more information about pull request branches, including examples, see "[Creating a Pull Request](/articles/creating-a-pull-request/#changing-the-branch-range-and-destination-repository)."
75+
**Tip:** For more information about pull request branches, including examples, see "[Creating a Pull Request](/articles/creating-a-pull-request#changing-the-branch-range-and-destination-repository)."
7676

7777
{% endtip %}
7878
8. At this point, you can do anything you want with this branch. You can push new commits to it, run some local tests, or merge other branches into the branch. Make modifications as you like.

0 commit comments

Comments
 (0)