Skip to content

Commit 9dda5df

Browse files
authored
Merge pull request #11609 from github/repo-sync
repo sync
2 parents 2751f85 + 2969394 commit 9dda5df

File tree

83 files changed

+338
-211
lines changed

Some content is hidden

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

83 files changed

+338
-211
lines changed

.github/workflows/staging-deploy-pr.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,17 @@ jobs:
323323
name: pr_build
324324
path: ${{ runner.temp }}
325325

326-
- name: Extract user-changes to temp directory
326+
# For security reasons, only extract the tar from docs-internal
327+
# This allows us to add search indexes and early access content to the build
328+
- if: ${{ github.repository == 'github/docs-internal' }}
329+
name: Extract user-changes to temp directory
327330
run: |
328331
mkdir $RUNNER_TEMP/app
329332
tar -x --file=$RUNNER_TEMP/app.tar -C "$RUNNER_TEMP/app/"
330333
331334
# Move the LFS content into the temp directory in chunks (destructively)
332-
- name: Move the LFS objects
335+
- if: ${{ github.repository == 'github/docs-internal' }}
336+
name: Move the LFS objects
333337
run: |
334338
git lfs ls-files --name-only | xargs -n 1 -I {} sh -c 'mkdir -p "$RUNNER_TEMP/app/$(dirname {})"; mv {} "$RUNNER_TEMP/app/$(dirname {})/"'
335339
@@ -341,9 +345,15 @@ jobs:
341345
mv content/early-access "$RUNNER_TEMP/app/content/"
342346
mv data/early-access "$RUNNER_TEMP/app/data/"
343347
344-
- name: Create a gzipped archive
348+
- if: ${{ github.repository == 'github/docs-internal' }}
349+
name: Create a gzipped archive (docs-internal)
345350
run: tar -cz --file app.tar.gz "$RUNNER_TEMP/app/"
346351

352+
# gzip the app.tar from github/docs so we're working with the same format
353+
- if: ${{ github.repository == 'github/docs' }}
354+
name: Create a gzipped archive (docs)
355+
run: gzip -9 < "$RUNNER_TEMP/app.tar" > app.tar.gz
356+
347357
- name: Create a Heroku build source
348358
id: build-source
349359
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Copy to REST API issue to docs-content
2+
3+
# **What it does**: Copies an issue in the open source repo to the docs-content repo, comments on and closes the original issue
4+
# **Why we have it**: REST API updates cannot be made in the open source repo. Instead, we copy the issue to an internal issue (we do not transfer so that the issue does not disappear for the contributor) and close the original issue.
5+
# **Who does it impact**: Open source and docs-content maintainers
6+
7+
permissions:
8+
contents: write
9+
10+
on:
11+
issues:
12+
types:
13+
- labeled
14+
15+
jobs:
16+
transfer-issue:
17+
name: Transfer issue
18+
runs-on: ubuntu-latest
19+
if: (github.event.label.name == 'localization ' && github.repository == 'github/docs')
20+
steps:
21+
- name: Check if this run was triggered by a member of the docs team
22+
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
23+
id: triggered-by-member
24+
with:
25+
github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
26+
result-encoding: string
27+
script: |
28+
const triggerer_login = context.payload.sender.login
29+
const teamMembers = await github.request(
30+
`/orgs/github/teams/docs/members?per_page=100`
31+
)
32+
const logins = teamMembers.data.map(member => member.login)
33+
if (logins.includes(triggerer_login)) {
34+
console.log(`This workflow was triggered by ${triggerer_login} (on the docs team).`)
35+
return 'true'
36+
}
37+
console.log(`This workflow was triggered by ${triggerer_login} (not on the docs team), so no action will be taken.`)
38+
return 'false'
39+
40+
- name: Exit if not triggered by a docs team member
41+
if: steps.triggered-by-member.outputs.result == 'false'
42+
run: |
43+
echo Aborting. This workflow must be triggered by a member of the docs team.
44+
exit 1
45+
46+
- name: Create an issue in the localization repo
47+
run: |
48+
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/localization)"
49+
echo 'NEW_ISSUE='$new_issue_url >> $GITHUB_ENV
50+
env:
51+
GITHUB_TOKEN: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
52+
ISSUE_TITLE: ${{ github.event.issue.title }}
53+
ISSUE_BODY: ${{ github.event.issue.body }}
54+
55+
- name: Comment on the new issue
56+
run: gh issue comment $NEW_ISSUE --body "This issue was originally opened in the open source repo as $OLD_ISSUE"
57+
env:
58+
GITHUB_TOKEN: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
59+
NEW_ISSUE: ${{ env.NEW_ISSUE }}
60+
OLD_ISSUE: ${{ github.event.issue.html_url }}
61+
62+
- name: Comment on the old issue
63+
run: gh issue comment $OLD_ISSUE --body "Thank you for opening this issue! Updates to translated content must be made internally. I have copied your issue to an internal issue, so I will close this issue."
64+
env:
65+
GITHUB_TOKEN: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
66+
OLD_ISSUE: ${{ github.event.issue.html_url }}
67+
68+
- name: Close the old issue
69+
run: gh issue close $OLD_ISSUE
70+
env:
71+
GITHUB_TOKEN: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
72+
OLD_ISSUE: ${{ github.event.issue.html_url }}

Dockerfile.openapi_decorator

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ COPY --chown=node:node package-lock.json /openapi-check
1313
ADD --chown=node:node script /openapi-check/script
1414
ADD --chown=node:node lib /openapi-check/lib
1515
ADD --chown=node:node content /openapi-check/content
16+
ADD --chown=node:node data /openapi-check/data
1617

1718
RUN npm ci -D
1819

Loading
Loading
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.breadcrumbs {
22
clip-path: inset(-5px -5px -5px 0px);
33
}
4+
5+
.header {
6+
display: unset;
7+
}

components/page-header/Header.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,18 @@ export const Header = () => {
4141

4242
return (
4343
<div
44-
className={`border-bottom color-border-muted no-print position-sticky top-0 z-3 ${
45-
scroll ? 'color-shadow-medium' : 'color-shadow-small'
46-
} color-bg-default`}
44+
className={cx(
45+
'border-bottom d-unset color-border-muted no-print z-3 color-bg-default',
46+
styles.header
47+
)}
4748
>
4849
{error !== '404' && <HeaderNotifications />}
49-
50-
<header className={cx('container-xl px-3 px-md-6 pt-3 pb-3 z-3')}>
50+
<header
51+
className={cx(
52+
'color-bg-default px-3 px-md-6 pt-3 pb-3 position-sticky top-0 z-3',
53+
scroll ? 'color-shadow-medium' : 'color-shadow-small'
54+
)}
55+
>
5156
{/* desktop header */}
5257
<div
5358
className="d-none d-lg-flex flex-justify-end flex-items-center"

content/actions/learn-github-actions/events-that-trigger-workflows.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,15 @@ on:
808808

809809
{% data reusables.webhooks.workflow_run_desc %}
810810

811-
{% data reusables.github-actions.branch-requirement %}
811+
{% note %}
812+
813+
**Notes:**
814+
815+
* This event will only trigger a workflow run if the workflow file is on the default branch.
816+
817+
* You can't use `workflow_run` to chain together more than three levels of workflows. For example, if you attempt to trigger five workflows (named `B` to `F`) to run sequentially after an initial workflow `A` has run (that is: `A` → `B` → `C` → `D` → `E` → `F`), workflows `E` and `F` will not be run.
818+
819+
{% endnote %}
812820

813821
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
814822
| --------------------- | -------------- | ------------ | -------------|

content/admin/packages/enabling-github-packages-with-minio.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ shortTitle: Enable Packages with MinIO
1919
- Make sure to configure the bucket you'll want to use in the future. We do not recommend changing your storage after you start using {% data variables.product.prodname_registry %}.
2020

2121
{% endwarning %}
22+
2223
## Prerequisites
24+
2325
Before you can enable and configure {% data variables.product.prodname_registry %} on {% data variables.product.product_location_enterprise %}, you need to prepare your MinIO storage bucket. To help you quickly set up a MinIO bucket and navigate MinIO's customization options, see the "[Quickstart for configuring your MinIO storage bucket for {% data variables.product.prodname_registry %}](/admin/packages/quickstart-for-configuring-your-minio-storage-bucket-for-github-packages)."
2426

2527
Ensure your MinIO external storage access key ID and secret have these permissions:

content/admin/user-management/managing-users-in-your-enterprise/managing-dormant-users.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ redirect_from:
66
- /enterprise/admin/articles/determining-whether-a-user-account-is-dormant/
77
- /enterprise/admin/user-management/managing-dormant-users
88
- /admin/user-management/managing-dormant-users
9-
intro: 'A user account is considered to be dormant if it has not been active for at least a month.{% ifversion ghes %} You may choose to suspend dormant users to free up user licenses.{% endif %}'
9+
intro: '{% data reusables.enterprise-accounts.dormant-user-activity-threshold %}'
1010
versions:
11+
ghec: '*'
1112
ghes: '*'
1213
ghae: '*'
1314
type: how_to
@@ -16,16 +17,12 @@ topics:
1617
- Enterprise
1718
- Licensing
1819
---
19-
"Activity" includes, but is not limited to:
20-
- Signing in to {% data variables.product.product_name %}.
21-
- Commenting on issues and pull requests.
22-
- Creating, deleting, watching, and starring repositories.
23-
- Pushing commits.{% ifversion ghes or ghae %}
24-
- Accessing resources by using a personal access token or SSH key.{% endif %}
20+
{% data reusables.enterprise-accounts.dormant-user-activity %}
2521

22+
{% ifversion ghes or ghae%}
2623
## Viewing dormant users
2724

28-
You can view a list of all dormant users who have not been suspended and who are not site administrators.
25+
{% data reusables.enterprise-accounts.viewing-dormant-users %}
2926

3027
{% data reusables.enterprise_site_admin_settings.access-settings %}
3128
3. In the left sidebar, click **Dormant users**.
@@ -47,11 +44,29 @@ You can view a list of all dormant users who have not been suspended and who are
4744
{% data reusables.enterprise_site_admin_settings.dormancy-threshold %}
4845

4946
{% data reusables.enterprise-accounts.access-enterprise %}
50-
{% ifversion ghes or ghae %}
5147
{% data reusables.enterprise-accounts.policies-tab %}
52-
{% else %}
5348
{% data reusables.enterprise-accounts.settings-tab %}
54-
{% endif %}
5549
{% data reusables.enterprise-accounts.options-tab %}
5650
4. Under "Dormancy threshold", use the drop-down menu, and click the desired dormancy threshold.
5751
![The Dormancy threshold drop-down menu](/assets/images/enterprise/site-admin-settings/dormancy-threshold-menu.png)
52+
53+
{% endif %}
54+
55+
{% ifversion ghec %}
56+
57+
{% data reusables.enterprise-accounts.dormant-user-release-phase %}
58+
59+
{% warning %}
60+
61+
**Note:** During the private beta, ongoing improvements to the report download feature may limit its availability.
62+
63+
{% endwarning %}
64+
65+
## Downloading the dormant users report from your enterprise account
66+
67+
{% data reusables.enterprise-accounts.access-enterprise %}
68+
{% data reusables.enterprise-accounts.enterprise-accounts-compliance-tab %}
69+
1. To download your Dormant Users (beta) report as a CSV file, under "Other", click {% octicon "download" aria-label="The Download icon" %} **Download**.
70+
![Download button under "Other" on the Compliance page](/assets/images/help/business-accounts/dormant-users-download-button.png)
71+
72+
{% endif %}

0 commit comments

Comments
 (0)