Skip to content

Commit 9cbcb86

Browse files
authored
Merge branch 'main' into graphql-schema-update
2 parents bf69c30 + 74ed344 commit 9cbcb86

147 files changed

Lines changed: 8167 additions & 828 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.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
babelOptions: { configFile: './.babelrc' },
1414
sourceType: 'module',
1515
},
16-
ignorePatterns: ['tmp/*'],
16+
ignorePatterns: ['tmp/*', '!/.*', '/.next/'],
1717
rules: {
1818
'import/no-extraneous-dependencies': ['error', { packageDir: '.' }],
1919
},

.github/actions-scripts/fr-add-docs-reviewers-requests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ async function run() {
134134
// Exclude existing items going forward.
135135
// Until we have a way to check from a PR whether the PR is in a project,
136136
// this is how we (roughly) avoid overwriting PRs that are already on the board
137-
let newItemIDs = []
138-
let newItemAuthors = []
137+
const newItemIDs = []
138+
const newItemAuthors = []
139139
itemIDs.forEach((id, index) => {
140140
if (!existingItemIDs.includes(id)) {
141141
newItemIDs.push(id)

.github/actions-scripts/ready-for-docs-review.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ async function run() {
8585
// - affected docs sets (not considering changes to data/assets)
8686
let numFiles = 0
8787
let numChanges = 0
88-
let features = new Set([])
89-
const files = data.item.files.nodes.forEach((node) => {
88+
const features = new Set([])
89+
data.item.files.nodes.forEach((node) => {
9090
numFiles += 1
9191
numChanges += node.additions
9292
numChanges += node.deletions

.github/workflows/browser-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ name: Browser Tests
66

77
on:
88
workflow_dispatch:
9-
push:
10-
branches:
11-
- main
129
pull_request:
1310
paths:
1411
- '**.js'

.github/workflows/code-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- '**.yaml'
1919
- '**.yml'
2020
- '**.scss'
21+
- .eslintrc.js
2122
# In case something like eslint or tsc or prettier upgrades
2223
- 'package-lock.json'
2324
# Ultimately, for debugging this workflow itself

.github/workflows/repo-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
- cron: '10,40 * * * *' # every 30 minutes
2222

2323
permissions:
24-
contents: read
24+
contents: write
2525
pull-requests: write
2626

2727
jobs:

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ env:
3636
BUILD_ACTIONS_RUN_LOG: https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}
3737

3838
jobs:
39-
debug:
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Dump full context for debugging
43-
env:
44-
GITHUB_CONTEXT: ${{ toJSON(github) }}
45-
run: echo "$GITHUB_CONTEXT"
46-
4739
pr-metadata:
4840
# This is needed because the workflow we depend on
4941
# (see on.workflow_run.workflows) might be running from pushes on
56.8 KB

components/article/ArticlePage.tsx

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { useRouter } from 'next/router'
2-
import { useState } from 'react'
32
import cx from 'classnames'
43
import { ActionList, Heading } from '@primer/components'
54

6-
import { ChevronDownIcon, ZapIcon, InfoIcon, ShieldLockIcon } from '@primer/octicons-react'
5+
import { ZapIcon, InfoIcon, ShieldLockIcon } from '@primer/octicons-react'
76
import { Callout } from 'components/ui/Callout'
87

98
import { Link } from 'components/Link'
@@ -61,9 +60,8 @@ export const ArticlePage = () => {
6160
} = useArticleContext()
6261
const { t } = useTranslation('pages')
6362
const currentPath = router.asPath.split('?')[0]
64-
const [isActive, setActive] = useState(-1)
6563

66-
const renderTocItem = (item: MiniTocItem, index: number) => {
64+
const renderTocItem = (item: MiniTocItem) => {
6765
return (
6866
<ActionList.Item
6967
as="li"
@@ -72,19 +70,9 @@ export const ArticlePage = () => {
7270
sx={{ listStyle: 'none', padding: '2px' }}
7371
>
7472
<div className={cx('lh-condensed d-block width-full')}>
75-
<div className="d-inline-flex" dangerouslySetInnerHTML={{ __html: item.contents }} />
76-
{item.items && item.items.length > 0 && (
77-
<button
78-
className="color-bg-default border-0 ml-1"
79-
onClick={() => setActive(index === isActive ? -1 : index)}
80-
>
81-
{<ChevronDownIcon />}
82-
</button>
83-
)}
73+
<div dangerouslySetInnerHTML={{ __html: item.contents }} />
8474
{item.items && item.items.length > 0 ? (
85-
<ul className={index === isActive ? 'ml-3' : 'd-none'}>
86-
{item.items.map(renderTocItem)}
87-
</ul>
75+
<ul className="ml-3">{item.items.map(renderTocItem)}</ul>
8876
) : null}
8977
</div>
9078
</ActionList.Item>
@@ -158,7 +146,7 @@ export const ArticlePage = () => {
158146
return {
159147
key: title + i,
160148
text: title,
161-
renderItem: () => <ul>{renderTocItem(items, i)}</ul>,
149+
renderItem: () => <ul>{renderTocItem(items)}</ul>,
162150
}
163151
})}
164152
/>

content/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization.md

Lines changed: 11 additions & 2 deletions

0 commit comments

Comments
 (0)