Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from github:main #161

Merged
merged 239 commits into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
239 commits
Select commit Hold shift + click to select a range
5d01a00
Document optional install [user] argument
FlashSheridan Feb 9, 2022
cbb32c5
Explain that GITHUB_SHA may not always be the commit that was pushed
danielcompton Feb 15, 2022
6798775
Update contexts.md
mike-carey Feb 15, 2022
e103e62
Rewords the description
mike-carey Feb 15, 2022
bedd88c
Add note for missing sso contributions
SteveDMurphy Feb 25, 2022
f8a3538
Update duplicating-a-repository.md
deepansh96 Feb 25, 2022
32562ad
Landing page for pull requests doc set
jules-p Feb 28, 2022
0512c17
Add new pricing calculator urls
juniorjp Mar 1, 2022
4d98ada
Update docs with new pricing calculator urls
juniorjp Mar 1, 2022
f0ea841
Merge branch 'main' into pricing_calculator_new_urls
juniorjp Mar 2, 2022
5ef12e6
Merge branch 'main' into action_status-context
skedwards88 Mar 3, 2022
2682eeb
add word
skedwards88 Mar 3, 2022
7cd968b
state the argument name/give an example
FlashSheridan Mar 3, 2022
734ed76
Merge branch 'main' into action_status-context
ramyaparimi Mar 3, 2022
b308a42
Merge branch 'main' into patch-4
ramyaparimi Mar 3, 2022
713a938
Merge branch 'main' into action_status-context
ramyaparimi Mar 3, 2022
0eeae0b
Correct link for reviewing dependency changes in a pull request
mahmoudhossam Mar 3, 2022
a4a6613
Update Workflow Input examples to include boolean
tevans-submittable Mar 3, 2022
090fa31
Reusable workflow inputs example include boolean
tevans-submittable Mar 3, 2022
4e8f7ea
Move data tag to new line
juniorjp Mar 4, 2022
6ec8275
Remove partial sentences from reusables
juniorjp Mar 4, 2022
9da4e35
Update why-are-my-contributions-not-showing-up-on-my-profile.md
vgrl Mar 4, 2022
7243632
Merge branch 'main' into patch-2
vgrl Mar 4, 2022
ab33381
Edit content for consistency
josh-wong Mar 4, 2022
7648206
Fixed duplicate/double which in leading paragraph
samsmithnz Mar 4, 2022
d910820
Merge branch 'main' into patch-2
skedwards88 Mar 4, 2022
8eea07b
Merge branch 'main' into patch-2
ramyaparimi Mar 7, 2022
db9b7ad
Delete unused pricing calculator file
juniorjp Mar 7, 2022
d585f35
Merge branch 'main' into patch-2
ramyaparimi Mar 7, 2022
bffc011
Merge branch 'main' into pricing_calculator_new_urls
juniorjp Mar 7, 2022
6714329
Merge branch 'main' into patch-3
mchammer01 Mar 7, 2022
23eafce
Merge branch 'main' into patch-2
mchammer01 Mar 7, 2022
a6bf0fb
Merge branch 'main' into patch-2
samsmithnz Mar 7, 2022
ccc50c4
enable OS contributions of components,lib,middleware,pages, and style…
mikesurowiec Mar 7, 2022
7839b68
Merge branch 'main' into repo-sync
Octomerger Mar 7, 2022
6a0306d
Merge pull request #26001 from github/repo-sync
Octomerger Mar 7, 2022
c4b62b6
Merge branch 'main' into repo-sync
Octomerger Mar 7, 2022
a1a3eb2
Merge pull request #26002 from github/repo-sync
Octomerger Mar 7, 2022
5cd321e
Merge branch 'main' into pricing_calculator_new_urls
juniorjp Mar 7, 2022
8fa4444
New translation batch for pt (#25985)
docubot Mar 7, 2022
ada4706
Merge branch 'main' into patch-2
vgrl Mar 8, 2022
9c6b311
Merge pull request #15833 from SteveDMurphy/patch-2
vgrl Mar 8, 2022
437f264
Merge branch 'main' into repo-sync
Octomerger Mar 8, 2022
0dc0dab
Merge pull request #26005 from github/repo-sync
Octomerger Mar 8, 2022
1a78b50
Updates short title for tag protection rules (#26000)
emmaviolet Mar 8, 2022
19c6919
Merge branch 'main' into patch-2
guntrip Mar 8, 2022
4223296
head_ref_force_pushed event documentation
IMPranshu Mar 8, 2022
73aad78
Merge branch 'main' into workflow-boolean-input-example
sophietheking Mar 8, 2022
8ec5f8e
Merge branch 'main' into patch-2
guntrip Mar 8, 2022
9c85909
Clarify product tier requirement (#15991)
asmitbm Mar 8, 2022
e2eb9cd
Merge branch 'main' into repo-sync
Octomerger Mar 8, 2022
2447c8b
Merge pull request #26007 from github/repo-sync
Octomerger Mar 8, 2022
8df7530
remove article (#26006)
mchammer01 Mar 8, 2022
348ee93
Keep inputs context uniform
tevans-submittable Mar 8, 2022
781b798
Merge branch 'main' into patch-3
ramyaparimi Mar 8, 2022
c296d44
Merge branch 'main' into patch-2
ramyaparimi Mar 8, 2022
ef47dda
Merge pull request #16052 from josh-wong/patch-3
mchammer01 Mar 8, 2022
3eaa690
Merge branch 'main' into patch-2
docubot Mar 8, 2022
2605dff
Merge branch 'main' into patch-2
ramyaparimi Mar 8, 2022
c6756dd
Merge branch 'main' into patch-2
ramyaparimi Mar 8, 2022
73226cf
Replace localhost with 127.0.0.1 in OAuth examples
hickford Mar 8, 2022
0969ae7
Merge branch 'main' into repo-sync
Octomerger Mar 8, 2022
335844e
Merge branch 'main' into workflow-boolean-input-example
ramyaparimi Mar 8, 2022
531d0c3
Merge pull request #26012 from github/repo-sync
Octomerger Mar 8, 2022
8868ba6
Merge branch 'main' into repo-sync
Octomerger Mar 8, 2022
e4c8655
Merge pull request #26013 from github/repo-sync
Octomerger Mar 8, 2022
8eec70c
Merge branch 'main' into patch-2
ramyaparimi Mar 8, 2022
efc4195
Merge pull request #16019 from deepansh96/patch-2
guntrip Mar 8, 2022
a2d66bb
Merge branch 'main' into patch-2
ramyaparimi Mar 8, 2022
c4ecbf8
Merge branch 'main' into patch-4
ramyaparimi Mar 8, 2022
c4ad6f9
Merge pull request #15310 from FlashSheridan/patch-2
ramyaparimi Mar 8, 2022
b653a83
Merge branch 'main' into patch-4
ramyaparimi Mar 8, 2022
4387d51
Merge branch 'main' into repo-sync
Octomerger Mar 8, 2022
3e639ca
Merge pull request #26016 from github/repo-sync
Octomerger Mar 8, 2022
bf941bc
Merge pull request #16125 from github/repo-sync
Octomerger Mar 8, 2022
8baa02f
Merge branch 'main' into action_status-context
ramyaparimi Mar 8, 2022
8ecfaf9
Fix missing word typo (#26008)
hubwriter Mar 8, 2022
1a6bee4
Refactor to add RestReferencePage (#25781)
gracepark Mar 8, 2022
3aa1b1f
lazily load graphql static json files (#25981)
peterbe Mar 8, 2022
fa50687
Merge branch 'main' into patch-2
ramyaparimi Mar 8, 2022
7c1e5fd
Merge branch 'main' into patch-4
ramyaparimi Mar 8, 2022
09d73b1
Merge branch 'main' into pricing_calculator_new_urls
ramyaparimi Mar 8, 2022
181845f
[GHEC version] Version content about exporting a list of people with …
lecoursen Mar 8, 2022
54d1afa
OS build: allow missing file types to not error in rsync (#26023)
mikesurowiec Mar 8, 2022
e8f7522
Removing unnecessary step (#26032)
JohnBreault Mar 8, 2022
81a0892
New translation batch for cn (#26027)
docubot Mar 9, 2022
e6c4b73
New translation batch for es (#26025)
docubot Mar 9, 2022
e18396c
avoid mocking in robots.txt testing (#26018)
peterbe Mar 9, 2022
95297c3
Simplify getBreadcrumbs (#26015)
peterbe Mar 9, 2022
f12fc57
Merge branch 'main' into repo-sync
rsese Mar 9, 2022
5b97d78
Merge pull request #16143 from github/repo-sync
rsese Mar 9, 2022
4d164ea
Merge branch 'main' into patch-2
rsese Mar 9, 2022
0c41da3
Add in more copy options to make it easier for the user
rajbos Mar 9, 2022
8bd8331
Update must know password reusable, add one more instance
joshuawalker Mar 9, 2022
2358841
Update FPT/GHEC versioning and access information for Dependency revi…
sophietheking Mar 9, 2022
c51fa94
Update landing page, guides page, etc. for code security following ad…
felicitymay Mar 9, 2022
2dbb344
Added versioning to page
sophietheking Mar 9, 2022
31eaded
Added versioning to pull request page
sophietheking Mar 9, 2022
89d26c0
Merge branch 'main' into sophie-4821
sophietheking Mar 9, 2022
df9481e
Update move-ready-to-merge-pr.yaml (#26014)
ramyaparimi Mar 9, 2022
a186d38
fix: don't use brackets for single option glob, fix OS sync action (#…
mikesurowiec Mar 9, 2022
994340b
[GHEC version] Version content about setting permissions for adding o…
lecoursen Mar 9, 2022
fcda086
make enterprise 3.0 redirects work (#26041)
peterbe Mar 9, 2022
5d5c3e9
add context to liquid rendering in linting tests (#26055)
peterbe Mar 9, 2022
ac23ad1
Merge branch 'main' into pricing_calculator_new_urls
juniorjp Mar 9, 2022
ac53371
Merge branch 'main' into repo-sync
rsese Mar 9, 2022
7e75435
Merge pull request #16155 from github/repo-sync
rsese Mar 9, 2022
7d903aa
Merge branch 'main' into patch-2
rsese Mar 9, 2022
06f3cd9
Merge pull request #16025 from mahmoudhossam/patch-2
mchammer01 Mar 9, 2022
66c5507
Merge branch 'main' into patch-4
ramyaparimi Mar 9, 2022
feb3f25
Merge pull request #26063 from github/repo-sync
Octomerger Mar 9, 2022
28e81ba
adding copy code to code samples in rest docs (#26043)
gracepark Mar 9, 2022
42bac6a
Merge pull request #15482 from danielcompton/patch-4
ramyaparimi Mar 9, 2022
5048139
Merge branch 'main' into action_status-context
ramyaparimi Mar 9, 2022
b8985f8
Merge pull request #15503 from mike-carey/action_status-context
ramyaparimi Mar 9, 2022
cd62b19
Merge branch 'main' into pricing_calculator_new_urls
ramyaparimi Mar 9, 2022
8f0d270
Add codespaces to product names (#26062)
ethanpalm Mar 9, 2022
d4e84e2
Merge branch 'main' into sophie-4821
sophietheking Mar 9, 2022
58286e0
Add missing key for GraphQL template reusable (#26045)
rsese Mar 9, 2022
b16be00
adding copy button click event (#26074)
gracepark Mar 9, 2022
0dda6a1
remove copy icon from non code samples (#26075)
gracepark Mar 10, 2022
39d03e6
Merge branch 'main' into repo-sync
Octomerger Mar 10, 2022
ade67ab
Merge pull request #16164 from github/repo-sync
Octomerger Mar 10, 2022
01baeda
sync serialize sitedata to disk (#25749)
peterbe Mar 10, 2022
226cbd4
Merge branch 'main' into pricing_calculator_new_urls
juniorjp Mar 10, 2022
4f748be
Python versions in examples should be type string, not float
newmanrs Mar 10, 2022
09c40b1
Merge branch 'main' into repo-sync
Octomerger Mar 10, 2022
86a0117
Merge pull request #16168 from github/repo-sync
Octomerger Mar 10, 2022
782d46d
Merge branch 'main' into pricing_calculator_new_urls
juniorjp Mar 10, 2022
646e132
Merge branch 'main' into sophie-4821
sophietheking Mar 10, 2022
fe7a0be
Feb/March updates to projects
guntrip Mar 10, 2022
345047e
fix: change `tag-ignore` to `tags-ignore`
roerohan Mar 10, 2022
27cdf08
Merge branch 'main' into repo-sync
Octomerger Mar 10, 2022
df251b1
Fix schema in examples (#26076)
felicitymay Mar 10, 2022
a6413f6
Merge pull request #16174 from roerohan/patch-2
mchammer01 Mar 10, 2022
10d1c95
Merge branch 'main' into pricing_calculator_new_urls
juniorjp Mar 10, 2022
ae8beec
Sidebar Nav improvements (#21500)
ramyaparimi Mar 10, 2022
7832cb5
Merge pull request #26065 from github/repo-sync
heiskr Mar 10, 2022
a1aad93
Restrict workflow access to runner groups (#25463)
skedwards88 Mar 10, 2022
c5ee973
Merge branch 'main' into patch-2
ethanpalm Mar 10, 2022
94005b7
Merge pull request #15973 from juniorjp/pricing_calculator_new_urls
lecoursen Mar 10, 2022
6ce27f4
Merge branch 'main' into workflow-boolean-input-example
ramyaparimi Mar 10, 2022
1c7200c
Merge pull request #16028 from tevans-submittable/workflow-boolean-in…
ramyaparimi Mar 10, 2022
bd81848
Merge branch 'main' into patch-2
ramyaparimi Mar 10, 2022
fb52ab2
breadcrumbs fail on some enterprise-server URIs
peterbe Mar 10, 2022
cf1f06f
Merge pull request #16057 from samsmithnz/patch-2
ramyaparimi Mar 10, 2022
c99afd0
Merge pull request #15975 from github/peterbe-reduce-max_old_space_si…
peterbe Mar 10, 2022
2cb4d60
Merge pull request #26086 from github/peterbe-1673-breadcrumbs-fail-o…
heiskr Mar 10, 2022
bbe65a2
Fix deployment category index page versions (#26088)
lucascosti Mar 10, 2022
f70514e
Merge branch 'main' into repo-sync
Octomerger Mar 11, 2022
ef324ab
Merge pull request #26080 from github/repo-sync
Octomerger Mar 11, 2022
2f925d5
Remove lazy highlighting for now (#26091)
rachmari Mar 11, 2022
97d7107
Update content/code-security/supply-chain-security/understanding-your…
sophietheking Mar 11, 2022
b787871
Update content/pull-requests/collaborating-with-pull-requests/reviewi…
sophietheking Mar 11, 2022
9fea1ad
Update content/code-security/supply-chain-security/understanding-your…
sophietheking Mar 11, 2022
a33d579
Update content/code-security/supply-chain-security/understanding-your…
sophietheking Mar 11, 2022
8f67f63
Merge branch 'main' into sophie-4821
sophietheking Mar 11, 2022
37dbbb4
Merge pull request #26048 from github/sophie-4821
sophietheking Mar 11, 2022
e4ad07c
Merge branch 'main' into main
ramyaparimi Mar 11, 2022
0b9c1c3
Merge branch 'main' into patch-2
ramyaparimi Mar 11, 2022
bed115a
Merge pull request #16167 from newmanrs/main
ramyaparimi Mar 11, 2022
bae5d83
Merge branch 'main' into patch-2
ramyaparimi Mar 11, 2022
bd35eac
Merge pull request #16153 from rajbos/patch-2
ramyaparimi Mar 11, 2022
334c8fa
Merge branch 'main' into repo-sync
Octomerger Mar 11, 2022
d6806e8
Merge pull request #26096 from github/repo-sync
Octomerger Mar 11, 2022
e898e03
Merge branch 'main' into repo-sync
Octomerger Mar 11, 2022
a6b4d5e
Merge pull request #26097 from github/repo-sync
Octomerger Mar 11, 2022
59618c6
[GHEC version] Version content for IP allow lists (#26067)
lecoursen Mar 11, 2022
0c59f9a
minor grammatical correction
akshayhiremath Mar 11, 2022
7850f08
Update key to rerender RestCodeSamples (#26093)
gracepark Mar 11, 2022
5004275
Merge pull request #16172 from github/repo-sync
Octomerger Mar 11, 2022
8a622eb
& in breadcrumbs instead of & (#26101)
peterbe Mar 11, 2022
970ff15
Re-remove rest static files for 3.0 deprecation (#26106)
rsese Mar 11, 2022
142ffd0
let Dependabot upgrade our Dockerfile (#26115)
peterbe Mar 11, 2022
67360f5
refactor rest code (#25879)
rachmari Mar 11, 2022
1ba5539
update enterprise contact link
bevns Mar 11, 2022
bb74602
Merge pull request #16192 from github/repo-sync
Octomerger Mar 11, 2022
ae2b026
Add note about doing step 7 as soon as you can (#26128)
rsese Mar 11, 2022
f718ef0
Merge branch 'main' into repo-sync
Octomerger Mar 12, 2022
b919515
Merge pull request #16196 from github/repo-sync
Octomerger Mar 12, 2022
5d50b10
Changed title, links, updated intro and first section (#25875)
dihydroJenoxide Mar 12, 2022
9051613
Merge branch 'main' into repo-sync
Octomerger Mar 12, 2022
7c4cfb3
Merge pull request #16198 from github/repo-sync
Octomerger Mar 12, 2022
9901f99
Merge branch 'main' into enterprise-support-link
heiskr Mar 12, 2022
2609f27
New translation batch for pt (#26136)
docubot Mar 12, 2022
e91e5bd
fix: use correct variable for repository delete (#26139)
mikesurowiec Mar 12, 2022
2623764
Merge branch 'main' into repo-sync
Octomerger Mar 12, 2022
84611d2
Merge pull request #16211 from github/repo-sync
Octomerger Mar 12, 2022
415fd63
New translation batch for pt (#26144)
docubot Mar 13, 2022
6fdd348
New translation batch for es (#26145)
docubot Mar 13, 2022
163aa72
Merge branch 'main' into repo-sync
Octomerger Mar 13, 2022
2f88a09
Merge pull request #16223 from github/repo-sync
Octomerger Mar 13, 2022
856c2d7
Update OpenAPI Descriptions (#26117)
github-openapi-bot Mar 14, 2022
46cd88e
Merge pull request #16228 from github/repo-sync
Octomerger Mar 14, 2022
3041e35
Update index.md
jules-p Mar 14, 2022
9a085ab
Merge branch 'main' into jules-4796
jules-p Mar 14, 2022
b7835fe
Merge pull request #25701 from github/jules-4796
jules-p Mar 14, 2022
49db6f9
Merge branch 'main' into repo-sync
Octomerger Mar 14, 2022
a72a812
Merge branch 'main' into patch-2
ramyaparimi Mar 14, 2022
6ad1423
Merge pull request #16248 from github/repo-sync
Octomerger Mar 14, 2022
04c6a78
Merge branch 'main' into patch-2
ramyaparimi Mar 14, 2022
99283fa
Merge pull request #16191 from akshayhiremath/patch-2
ramyaparimi Mar 14, 2022
c854faa
Merge pull request #26157 from github/repo-sync
Octomerger Mar 14, 2022
f69a72a
Update components/GenericError.tsx
bevns Mar 14, 2022
2de792f
Update components/page-footer/Support.tsx
bevns Mar 14, 2022
f57a980
Update pages/404.tsx
bevns Mar 14, 2022
2fe1349
Update GenericError.tsx
bevns Mar 14, 2022
0f2f237
Update 404.tsx
bevns Mar 14, 2022
cbc92f1
Update Support.tsx
bevns Mar 14, 2022
a61ebaa
point to deployment guidance (#26129)
skedwards88 Mar 14, 2022
ea49b45
Update footer.js
bevns Mar 14, 2022
c7de0c2
Add 'GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY' to actions self-hosted runn…
TingluoHuang Mar 14, 2022
bb23efe
Update footer.js
bevns Mar 14, 2022
ce3c52e
New translation batch for cn (#26147)
docubot Mar 14, 2022
819045c
Merge branch 'main' into enterprise-support-link
docubot Mar 14, 2022
6f04f42
New translation batch for ja (#26148)
docubot Mar 14, 2022
120815d
Merge branch 'main' into enterprise-support-link
docubot Mar 14, 2022
5606f2f
Merge pull request #26123 from github/enterprise-support-link
heiskr Mar 14, 2022
3b8b6e0
Add new 'app' directory too (#26121)
rsese Mar 14, 2022
21b59b5
Move mini tocs rest + collapsible (#26069)
gracepark Mar 14, 2022
3b08517
Create Appeal and Reinstatement page (#26087)
vollmera Mar 14, 2022
def0cbf
update search indexes
actions-user Mar 14, 2022
73d687a
redirect_from might not exist (#26158)
peterbe Mar 14, 2022
dc8b7b7
Merge pull request #16253 from github/repo-sync
Octomerger Mar 14, 2022
13ca310
New translation batch for es (#26161)
docubot Mar 14, 2022
80d7fea
New translation batch for pt (#26159)
docubot Mar 14, 2022
29eaa42
Merge branch 'main' into repo-sync
Octomerger Mar 14, 2022
e6885a5
Merge pull request #16258 from github/repo-sync
Octomerger Mar 14, 2022
70a0e39
New translation batch for cn (#26164)
docubot Mar 14, 2022
b623cab
Merge branch 'main' into repo-sync
Octomerger Mar 14, 2022
a0b489b
Merge pull request #16259 from github/repo-sync
Octomerger Mar 14, 2022
ec4d1c3
New translation batch for ja (#26167)
docubot Mar 14, 2022
e41b1e1
Acceptable Use Policies and Community Guidelines updates (#23469)
literarytea Mar 14, 2022
a4075a2
Merge branch 'main' into repo-sync
Octomerger Mar 14, 2022
1d51b10
Merge pull request #16263 from github/repo-sync
Octomerger Mar 14, 2022
3a4618c
Merge branch 'main' into repo-sync
Octomerger Mar 14, 2022
0df8d12
Merge pull request #16264 from github/repo-sync
Octomerger Mar 14, 2022
dfe4480
Trigger on pushes to merge queue prep branches (#26172)
rsese Mar 14, 2022
3290677
Merge pull request #16265 from github/repo-sync
Octomerger Mar 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@ In your `docs-internal` checkout:
- [ ] In `github/github`, edit the release's config file in `app/api/description/config/releases/`, and change `deprecated: false` to `deprecated: true`.
- [ ] Open a new PR, and get the required code owner approvals. A docs-content team member can approve it for the docs team.
- [ ] When the PR is approved, [deploy the `github/github` PR](https://thehub.github.com/engineering/devops/deployment/deploying-dotcom/). If you haven't deployed a `github/github` PR before, work with someone that has -- the process isn't too involved depending on how you deploy, but there are a lot of details that can potentially be confusing as you can see from the documentation.

**Note**: you can do this step independently of the other steps after a GHES version is deprecated since it should no longer get updates in github/github. You should plan to get this PR merged as soon as possible, otherwise if you wait too long our OpenAPI automation may re-add the static files that you removed in step 5.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@ updates:
schedule:
interval: weekly
day: thursday
ignore:
- dependency-name: '*'
update-types:
['version-update:semver-patch', 'version-update:semver-minor']
8 changes: 8 additions & 0 deletions .github/workflows/azure-preview-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
description: 'The commit SHA to build'
type: string
required: true
push:
branches:
- gh-readonly-queue/main/**

permissions:
contents: read
Expand Down Expand Up @@ -162,6 +165,11 @@ jobs:
rsync -rptovR ./user-code/content/./**/*.md ./content
rsync -rptovR ./user-code/assets/./**/*.png ./assets
rsync -rptovR ./user-code/data/./**/*.{yml,md} ./data
rsync -rptovR ./user-code/components/./**/*.{ts,tsx} ./components
rsync -rptovR --ignore-missing-args ./user-code/lib/./**/*.{js,ts} ./lib
rsync -rptovR --ignore-missing-args ./user-code/middleware/./**/*.{js,ts} ./middleware
rsync -rptovR ./user-code/pages/./**/*.tsx ./pages
rsync -rptovR ./user-code/stylesheets/./**/*.scss ./stylesheets

# In addition to making the final image smaller, we also save time by not sending unnecessary files to the docker build context
- name: 'Prune for preview env'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/azure-preview-env-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
# This will fail if the IMAGE_REPO doesn't exist, but we don't care
- name: 'Untag all docker images for this PR'
run: |
az acr repository delete -n ${{ secrets.NONPROD_REGISTRY_NAME }} --repository ${{ env.IMAGE_REPO }} -y || true
az acr repository delete -n ${{ secrets.NONPROD_REGISTRY_SERVER }} --repository ${{ env.IMAGE_REPO }} -y || true

# Remove all GitHub deployments from this environment and remove the environment
- uses: strumwolf/delete-deployment-environment@45c821e46baa405e25410700fe2e9643929706a0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/link-check-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main
- gh-readonly-queue/main/**
pull_request:

permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/move-ready-to-merge-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: move PR
uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
with:
project: Docs team reviews
project: Docs open source board
column: Triage
repo-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openapi-decorate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: EndBug/add-and-commit@756d9ea820f11931e591eaf57f25e0f5b903d5b2
with:
# The arguments for the `git add` command
add: 'lib/rest/static/decorated'
add: '["lib/rest/static/app", "lib/rest/static/decorated"]'

# The message for the commit
message: 'Add decorated OpenAPI schema files'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/orphaned-assets-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: 'Orphaned assets check'

on:
pull_request:
push:
branches:
- gh-readonly-queue/main/**

permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/repo-freeze-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- unlocked
branches:
- main
push:
branches:
- gh-readonly-queue/main/**

permissions:
contents: none
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ name: Node.js Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- gh-readonly-queue/main/**

permissions:
contents: read
Expand Down Expand Up @@ -132,6 +135,11 @@ jobs:
- name: Run build script
run: npm run build

- name: Warm possible disk caching
env:
NODE_ENV: test
run: ./script/warm-before-tests.mjs

- name: Run tests
env:
DIFF_FILE: get_diff_files.txt
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/triage-unallowed-internal-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- opened
- reopened
- synchronize
push:
branches:
- gh-readonly-queue/main/**

permissions:
# This is needed by dorny/paths-filter
Expand Down
2 changes: 1 addition & 1 deletion .pa11yci
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"http://localhost:4001/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account",
"http://localhost:4001/en/github/authenticating-to-github/creating-a-strong-password",
"http://localhost:4001/en/github",
"http://localhost:4001/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line",
"http://localhost:4001/en/github/importing-your-projects-to-github/adding-locally-hosted-code-to-github",
"http://localhost:4001/en/actions",
"http://localhost:4001/en/github/authenticating-to-github/creating-a-personal-access-token",
"http://localhost:4001/en/github/authenticating-to-github/checking-for-existing-ssh-keys",
Expand Down
Binary file added assets/images/help/issues/burnup-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/help/issues/iterations-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const DefaultLayout = (props: Props) => {
style={{ height: '100vh' }}
>
<Header />
<main id="main-content">
<main id="main-content" style={{ scrollMarginTop: '5rem' }}>
<DeprecationBanner />
<RestBanner />

Expand Down
9 changes: 1 addition & 8 deletions components/GenericError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ import Link from 'next/link'
import { useRouter } from 'next/router'

import { MarkGithubIcon, CommentDiscussionIcon } from '@primer/octicons-react'
import { useVersion } from 'components/hooks/useVersion'
import { Lead } from 'components/ui/Lead'

export function GenericError() {
const { isEnterprise } = useVersion()

return (
<div className="min-h-screen d-flex flex-column">
<Head>
Expand All @@ -28,11 +25,7 @@ export function GenericError() {
</p>
<a
id="contact-us"
href={
isEnterprise
? 'https://enterprise.github.com/support'
: 'https://support.github.com/contact'
}
href="https://support.github.com/contact"
className="btn btn-outline mt-2"
>
<CommentDiscussionIcon size="small" className="octicon mr-1" />
Expand Down
106 changes: 8 additions & 98 deletions components/article/ArticlePage.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
import { useState, useEffect, ReactNode } from 'react'
import { useState, useEffect } from 'react'
import { useRouter } from 'next/router'
import dynamic from 'next/dynamic'
import cx from 'classnames'
import { ActionList, Heading } from '@primer/react'

import { ZapIcon, InfoIcon, ShieldLockIcon } from '@primer/octicons-react'
import { Callout } from 'components/ui/Callout'

import { Link } from 'components/Link'
import { DefaultLayout } from 'components/DefaultLayout'
import { ArticleTitle } from 'components/article/ArticleTitle'
import { MiniTocItem, useArticleContext } from 'components/context/ArticleContext'
import { useArticleContext } from 'components/context/ArticleContext'
import { useTranslation } from 'components/hooks/useTranslation'
import { LearningTrackNav } from './LearningTrackNav'
import { MarkdownContent } from 'components/ui/MarkdownContent'
import { Lead } from 'components/ui/Lead'
import { ArticleGridLayout } from './ArticleGridLayout'
import { PlatformPicker } from 'components/article/PlatformPicker'
import { ToolPicker } from 'components/article/ToolPicker'
import { MiniTocs } from 'components/ui/MiniTocs'

const ClientSideRedirectExceptions = dynamic(() => import('./ClientsideRedirectExceptions'), {
ssr: false,
})
const ClientSideHighlightJS = dynamic(() => import('./ClientSideHighlightJS'), { ssr: false })

// Mapping of a "normal" article to it's interactive counterpart
Expand Down Expand Up @@ -49,12 +45,11 @@ const interactiveAlternatives: Record<string, { href: string }> = {
href: '/codespaces/setting-up-your-project-for-codespaces/setting-up-your-project-for-codespaces?langId=py',
},
}

export type StructuredContentT = {
structuredContent?: ReactNode
type Props = {
children?: React.ReactNode
}

export const ArticlePage = ({ structuredContent }: StructuredContentT) => {
export const ArticlePage = ({ children }: Props) => {
const { asPath } = useRouter()
const {
title,
Expand All @@ -69,58 +64,9 @@ export const ArticlePage = ({ structuredContent }: StructuredContentT) => {
miniTocItems,
currentLearningTrack,
} = useArticleContext()
const renderedContent = structuredContent || renderedPage
const { t } = useTranslation('pages')
const currentPath = asPath.split('?')[0]

const renderTocItem = (item: MiniTocItem) => {
return (
<ActionList.Item
as="li"
key={item.contents}
className={item.platform}
sx={{ listStyle: 'none', padding: '2px' }}
>
<div className={cx('lh-condensed d-block width-full')}>
<div dangerouslySetInnerHTML={{ __html: item.contents }} />
{item.items && item.items.length > 0 ? (
<ul className="ml-3">{item.items.map(renderTocItem)}</ul>
) : null}
</div>
</ActionList.Item>
)
}

// We have some one-off redirects for rest api docs
// currently those are limited to the repos page, but
// that will grow soon as we restructure the rest api docs.
// This is a workaround to updating the hardcoded links
// directly in the REST API code in a separate repo, which
// requires many file changes and teams to sign off.
// While the organization is turbulent, we can do this.
// Once it's more settled, we can refactor the rest api code
// to leverage the OpenAPI urls rather than hardcoded urls.
// The code below determines if we should bother loading this redirecting
// component at all.
// The reason this isn't done at the server-level is because there you
// can't possibly access the URL hash. That's only known in client-side
// code.
const [loadClientsideRedirectExceptions, setLoadClientsideRedirectExceptions] = useState(false)
useEffect(() => {
const { hash, pathname } = window.location
// Today, Jan 2022, it's known explicitly what the pathname.
// In the future there might be more.
// Hopefully, we can some day delete all of this and no longer
// be dependent on the URL hash to do the redirect.
if (
hash &&
(pathname.endsWith('/rest/reference/repos') ||
pathname.endsWith('/rest/reference/enterprise-admin'))
) {
setLoadClientsideRedirectExceptions(true)
}
}, [])

// If the page contains `[data-highlight]` blocks, these pages need
// syntax highlighting. But not every page needs it, so it's conditionally
// lazy-loaded on the client.
Expand All @@ -139,29 +85,8 @@ export const ArticlePage = ({ structuredContent }: StructuredContentT) => {
// consecutive one does.
}, [asPath])

// Scrollable code blocks in our REST API docs and elsewhere aren't accessible
// via keyboard navigation without setting tabindex="0". But we don't want to set
// this attribute on every `<pre>` code block, only the ones where there are scroll
// bars because the content isn't all visible.
useEffect(() => {
const codeBlocks = document.querySelectorAll<HTMLPreElement>('pre')

codeBlocks.forEach((codeBlock) => {
if (
codeBlock.scrollWidth > codeBlock.clientWidth ||
codeBlock.scrollHeight > codeBlock.clientHeight
) {
codeBlock.setAttribute('tabindex', '0')
}
})
}, [])

return (
<DefaultLayout>
{/* Doesn't matter *where* this is included because it will
never render anything. It always just return null. */}
{loadClientsideRedirectExceptions && <ClientSideRedirectExceptions />}

{/* Doesn't matter *where* this is included because it will
never render anything. It always just return null. */}
{lazyLoadHighlightJS && <ClientSideHighlightJS />}
Expand Down Expand Up @@ -220,28 +145,13 @@ export const ArticlePage = ({ structuredContent }: StructuredContentT) => {
</div>
)}
{miniTocItems.length > 1 && (
<>
<Heading as="h2" id="in-this-article" className="mb-1" sx={{ fontSize: 1 }}>
<Link href="#in-this-article">{t('miniToc')}</Link>
</Heading>

<ActionList
key={title}
items={miniTocItems.map((items, i) => {
return {
key: title + i,
text: title,
renderItem: () => <ul>{renderTocItem(items)}</ul>,
}
})}
/>
</>
<MiniTocs pageTitle={title} miniTocItems={miniTocItems} />
)}
</>
}
>
<div id="article-contents">
<MarkdownContent>{renderedContent}</MarkdownContent>
<MarkdownContent>{children || renderedPage}</MarkdownContent>
{effectiveDate && (
<div className="mt-4" id="effectiveDate">
Effective as of:{' '}
Expand Down
10 changes: 10 additions & 0 deletions components/lib/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,15 @@ function initClipboardEvent() {
})
}

function initCopyButtonEvent() {
document.documentElement.addEventListener('click', (evt) => {
const target = evt.target as HTMLElement
const button = target.closest('.js-btn-copy') as HTMLButtonElement
if (!button) return
sendEvent({ type: EventType.navigate, navigate_label: 'copy icon button' })
})
}

function initLinkEvent() {
document.documentElement.addEventListener('click', (evt) => {
const target = evt.target as HTMLElement
Expand All @@ -267,6 +276,7 @@ export default function initializeEvents() {
initPageAndExitEvent() // must come first
initLinkEvent()
initClipboardEvent()
initCopyButtonEvent()
initPrintEvent()
// survey event in ./survey.js
// experiment event in ./experiment.js
Expand Down
8 changes: 1 addition & 7 deletions components/page-footer/Support.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { PeopleIcon, CommentDiscussionIcon } from '@primer/octicons-react'

import { useTranslation } from 'components/hooks/useTranslation'
import { useVersion } from 'components/hooks/useVersion'
import { useMainContext } from 'components/context/MainContext'

export const Support = () => {
const { isEnterprise } = useVersion()
const { t } = useTranslation('support')
const { communityRedirect } = useMainContext()

Expand All @@ -25,11 +23,7 @@ export const Support = () => {
<div>
<a
id="contact-us"
href={
isEnterprise
? 'https://enterprise.github.com/support'
: 'https://support.github.com/contact'
}
href="https://support.github.com/contact"
className="Link—secondary text-bold"
>
<CommentDiscussionIcon size="small" className="octicon mr-1" />
Expand Down
1 change: 0 additions & 1 deletion components/page-header/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import styles from './Breadcrumbs.module.scss'

export type BreadcrumbT = {
title: string
documentType?: string
href?: string
}

Expand Down
Loading