Skip to content

Commit cc57cd9

Browse files
Vero1979Octomergerizuzakchiedolecoursen
authored
221c (#1)
* Remove unnecessary word / typo (github#17007) Fixes https://github.com/github/docs-content/issues/3097 Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> Co-authored-by: Laura Coursen <lecoursen@github.com> * Update landing pages with recent changelog updates (github#16946) * add actions changelog items * update packages changelogs * Make the repo sync stall check less aggressive (github#17018) Co-authored-by: chiedo <chiedo@users.noreply.github.com> * Remove mention of GraphQL API rate limit increases for GHEC organizations (github#17006) * Section on rate limits should not be nested within section on node limits since those are separate limits * Remove mention of GraphQL API rate limit increases for GHEC orgs Fixes https://github.com/github/docs-content/issues/3474 Co-authored-by: Leona B. Campbell <3880403+runleonarun@users.noreply.github.com> * reenable graphql updater (github#16994) * re-enable graphql updater workflow * remove scheduled run temporarily * lint yaml * re-enable graphql updater workflow * add my pat for test * use my pat for create pr * update peter-evans action * Action ran graphql script"update-files" * use github-token * revert * Action ran graphql script"update-files" (#17000) * update another workflow * add schedule run back Co-authored-by: rachmari <rachmari@users.noreply.github.com> Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Add Amazon ECS guide * Add Azure App Service guide * Add links to guides * Fix versioning for "GitHub Insights and data protection for your organization" * Marketplace should be dotcom-only * redirect from Enterprise versions of the page * support hardcoded versions in frontmatter redirects * Remove duplicated items * Update content/actions/guides/deploying-to-azure-app-service.md * Update guidelines-for-legal-requests-of-user-data.md (github#16756) Remove legal@support.github.com email address from legal request guidelines Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> * change external /contact link to contact variable * do more path checking * Revise intro sentence per @imjohnbo's suggestion * GKE article edits for lists * Added edits and style changes to Amazon guide * Added edits and style changes to Azure web app guide * Replace pseudo environment variables with obvious replaceables in examples * Fix bad link URL * fix double slash typo in links * updates for clarity * Remove DE language from staging (github#17038) Co-authored-by: chiedo <chiedo@users.noreply.github.com> * Remove DataDog from Staging (github#17036) Remove DataDog from staging Co-authored-by: chiedo <chiedo@users.noreply.github.com> * add some clarifying comments * borrow initial findPage lookup from github#16965 * Code scanning docs: small fixes (github#17035) * update branch when out of date (github#17031) * update branch when out of date * small copy update * var rename * lint yaml * the new map topic handling now needs context.currentPath * we need to use a regex so we can be sure we are removing the final segment of the path... apparently this is still faster than a split/slice/join * try to make this check as fast as we can * Changes to Code Search & what data stays in the index (github#16882) * Update searching-code.md * Update searching-code.md Change only applies to github.com not GHES. Co-authored-by: Laura Coursen <lecoursen@github.com> * lint * Update mention in contributing (github#17045) * add missing redirect frontmatter (github#17042) Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * fix repo-sync bug (github#17047) * fix repo-sync bug * add another log * add mergeable_state check * check for pull number * add check for prior steps * remove test logs * lint * Fix load site data reporting wrong timing data (github#17050) * Block indexing not crawling (github#17044) * Block indexing instead of crawling * Lint * Update deprecated-enterprise-versions.js * Combine loops * Update content/actions/guides/deploying-to-amazon-elastic-container-service.md Co-authored-by: Steve Winton <swinton@github.com> * Update content/actions/guides/deploying-to-amazon-elastic-container-service.md Co-authored-by: Steve Winton <swinton@github.com> * Update content/actions/guides/deploying-to-amazon-elastic-container-service.md * Add new patch notes (github#17059) * Update events-that-trigger-workflows.md (github#17013) Co-authored-by: skedwards88 <skedwards88@github.com> Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * remove extra lang codes * replace pageWithSwitcher article with one that does not have a default platform set * Hide content that overflows in search list (github#17066) * fix typo in creating-a-pull-request-from-a-fork.md * Cookie policy updates (github#16554) Co-authored-by: Peter Cihon <71285354+pcihon@users.noreply.github.com> Co-authored-by: hubwriter <hubwriter@github.com> Co-authored-by: Jenn DeForest <42984983+jenndeforest@users.noreply.github.com> Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * Edit GHAE version for API header example (github#17056) * Update docs for generating a new SSH key for windows I was trying to add a ssh key to my github using windows 10, and i was uncapable to procceed. And i found that the commands `$ eval $(ssh-agent -s)` don't work on windows, but ` $ eval `ssh-agent -s` ` works fine * Add details of the Used by sidebar section (github#17058) Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com> * npm versions limit (github#17030) * Add note about this * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Bryan Clark <clarkbw@github.com> * Apply suggestions from code review Co-authored-by: Bryan Clark <clarkbw@github.com> * Update team name (github#17075) * fix breadcrumbs block * Clarify container deletion (github#16576) * Revise deletion steps * tweak subheader * Fix all the ways to delete a container image with latest UI * Delete outdated step * Confirmed 6 different UI assortments * small tweak * ALT text * Add delete-container-package-version * Fluidity * Final edits * Updating OpenAPI descriptions (github#17076) * Updating OpenAPI descriptions * Add decorated OpenAPI schema files Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * Updating OpenAPI descriptions (github#17077) * Updating OpenAPI descriptions * Add decorated OpenAPI schema files Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * Updating OpenAPI descriptions (github#17079) * Updating OpenAPI descriptions * Add decorated OpenAPI schema files * Fix a few typos (github#16959) This fixes https://github.com/github/docs-content/issues/2769 Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> * fix typo in Gradle Kotlin DSL script filename extension * Update resources-in-the-rest-api.md (github#16981) Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> * remove "tests are passing" checkbox * Change the wording I suggest changing the wording of this sentence "The formatting of a field is invalid. Review the documentation for the for more specific information." so that it would read "The formatting of a field is invalid. Review the documentation for more specific information". * Updating OpenAPI descriptions (github#17089) * Updating OpenAPI descriptions * Add decorated OpenAPI schema files * Fix broken links (github#17081) * Fix two broken links * Update content/education/manage-coursework-with-github-classroom/leave-feedback-with-pull-requests.md Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * fix typo in Differences between GitHub apps and OAuth apps * Fix typo in Setting repository visibility * Hide ToC items with `hidden` (github#17107) * Update github-subprocessors-and-cookies.md (github#17110) Remove subprocessor from list cc: @MayHK * removed the about-labels masked link. Reason: Link redirects to the current page, not needed * Update github-marketplace-developer-agreement.md (github#16710) Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * Added a note about debugging, added intro text. * Apply suggestions from code review Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * Minor spelling corrections * [January 4, 2021] Marketplace revenue change (github#16792) * Move changes to revenue into new PR * Minor text changes for revised publication date * Update content/developers/github-marketplace/receiving-payment-for-app-purchases.md Co-authored-by: Laura Coursen <lecoursen@github.com> * Clarify revenue change dates Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> * Update testing-your-ssh-connection.md (github#2220) * Update testing-your-ssh-connection.md The edited language was confusing and incorrect. See https://github.community/t/ssh-fingerprint-matching-issue/150693 * Avoid hardcoded github.com domain in docs link PR won't pass required tests without this change. Co-authored-by: hubwriter <hubwriter@github.com> * Add information about management of an enterprise to "About enterprise accounts" article for GitHub AE and GitHub Enterprise Server (github#16818) * Add links to information about enterprise management * Address Laura's feedback * Remove link to page not in GHES/GHAE (github#17122) * Remove link to page not in GHES/GHAE * Update content/github/authenticating-to-github/testing-your-ssh-connection.md Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com> Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com> * Update content/developers/apps/creating-a-github-app-from-a-manifest.md * Revert broken translated files to english (github#17126) * Fix invalid syntax for pull_request_target example (github#1890) Co-authored-by: Sarah Edwards <skedwards88@github.com> * Fix filter pattern cheat sheet examples (github#1994) * Fix filter pattern cheat sheet examples * Add additional line break between patterns Co-authored-by: Sarah Edwards <skedwards88@github.com> * Fix command block rendering with raw tags (#17136) * Add troubleshooting for HEAD analysis warning (github#17121) * Dependabot: clarify info about dependency inaccessibility (github#17032) * Clarify info about dependency inaccessibility See issue raised by Maya K https://github.com/github/docs-internal/issues/16786 * Update data/reusables/dependabot/private-dependencies-note.md Co-authored-by: Maya Kaczorowski <15946341+mayakacz@users.noreply.github.com> Co-authored-by: Maya Kaczorowski <15946341+mayakacz@users.noreply.github.com> * Make Repo Sync Stall Workflow check for the automated-repo-sync label (github#17142) Currently the Repo Sync Stall checker is including PRs that aren't repo sync PRs. This change should ensure that is no longer the case Co-authored-by: chiedo <chiedo@users.noreply.github.com> Co-authored-by: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com> * Patch (github#17144) Co-authored-by: chiedo <chiedo@users.noreply.github.com> * Fix some typos in the lib directory (github#17131) Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> * Fix a bunch of random typos (github#17129) Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> * Fix a bunch of typos in tests dir (github#17132) Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> * Fix a few typos in content dir (github#17133) Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> * environments supported on enterprise (github#17127) * Parentheticals -> parentheses (github#17130) * Update trade controls FAQ (#17137) * updates to trade controls Made updates to the trade controls FAQ to support the 1/5 launch. * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Mike Linksvayer <mlinksva@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Mike Linksvayer <mlinksva@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Mike Linksvayer <mlinksva@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Lynn Hashimoto <lyhashim@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Lynn Hashimoto <lyhashim@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Lynn Hashimoto <lyhashim@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Lynn Hashimoto <lyhashim@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Lynn Hashimoto <lyhashim@github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Lynn Hashimoto <lyhashim@github.com> * Update content/github/site-policy/github-and-trade-controls.md * incorporate overview changes this commit incorporates the changes made to the overview section. cc @lyhashim for 👀 * Update content/github/site-policy/github-and-trade-controls.md Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> Co-authored-by: Mike Linksvayer <mlinksva@github.com> Co-authored-by: Lynn Hashimoto <lyhashim@github.com> Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> * adding link to blog post * Update github-and-trade-controls.md * Crowdin translations (github#17143) * New Crowdin translations by Github Action * Revert broken translated files to english * fix dates * fix translation 😭 Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com> Co-authored-by: Ivan Žužak <izuzak@gmail.com> Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: Cynthia Rich <crichID@users.noreply.github.com> Co-authored-by: chiedo <chiedo@users.noreply.github.com> Co-authored-by: Leona B. Campbell <3880403+runleonarun@users.noreply.github.com> Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com> Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: rachmari <rachmari@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Steve Winton <stevewinton@gmail.com> Co-authored-by: Sarah Schneider <sarahs@github.com> Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: Jenn DeForest <42984983+jenndeforest@users.noreply.github.com> Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com> Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> Co-authored-by: Rimas Silkaitis <neovintage@github.com> Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com> Co-authored-by: Steve Winton <swinton@github.com> Co-authored-by: Jason Etcovitch <jasonetco@github.com> Co-authored-by: Jaroslav Lobačevski <jarlob@github.com> Co-authored-by: skedwards88 <skedwards88@github.com> Co-authored-by: lemonez <36384768+lemonez@users.noreply.github.com> Co-authored-by: May Haim Kotlarsky <mayHK@github.com> Co-authored-by: Peter Cihon <71285354+pcihon@users.noreply.github.com> Co-authored-by: hubwriter <hubwriter@github.com> Co-authored-by: William Torres <contatowilliamtorres@gmail.com> Co-authored-by: Janice <janiceilene@github.com> Co-authored-by: Bryan Clark <clarkbw@github.com> Co-authored-by: Arhell <arhell333@gmail.com> Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com> Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Tammy Metz <tmetz@github.com> Co-authored-by: Daria <76159502+dariluka@users.noreply.github.com> Co-authored-by: gsonly <gsonly.imo@gmail.com> Co-authored-by: Plato <platoo@outlook.it> Co-authored-by: Dhruvin-Purohit <73269605+Dhruvin-Purohit@users.noreply.github.com> Co-authored-by: Jae Pak <59985282+jaepak20@users.noreply.github.com> Co-authored-by: Martin Lopes <martin389@github.com> Co-authored-by: Lucas Alves <lcsjalves@gmail.com> Co-authored-by: Felicity Chapman <felicitymay@github.com> Co-authored-by: Charles Curley <charlescurley@users.noreply.github.com> Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com> Co-authored-by: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com> Co-authored-by: Tom Schuster <tomjschuster@gmail.com> Co-authored-by: Maya Kaczorowski <15946341+mayakacz@users.noreply.github.com> Co-authored-by: Kathy Korevec <simpsoka@github.com> Co-authored-by: Mike Linksvayer <mlinksva@github.com> Co-authored-by: Lynn Hashimoto <lyhashim@github.com> Co-authored-by: Samantha Chau <62048000+samanthachau@users.noreply.github.com> Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
1 parent 0d0e351 commit cc57cd9

File tree

12,449 files changed

+2630832
-354596
lines changed

Some content is hidden

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

12,449 files changed

+2630832
-354596
lines changed

.devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Codespaces environment for docs.github.com
2+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json
3+
{
4+
"name": "docs.github.com",
5+
"service": "container-doc",
6+
"settings": {
7+
"terminal.integrated.shell.linux": "/bin/bash",
8+
"cSpell.language": ",en"
9+
},
10+
// Install pre-requisites, and start to serve docs.github.com locally
11+
"postCreateCommand": "npm install && npm start",
12+
"forwardPorts": [4000],
13+
// Visual Studio Code extensions which help authoring for docs.github.com.
14+
"extensions": [
15+
"yzhang.markdown-all-in-one",
16+
"streetsidesoftware.code-spell-checker"
17+
]
18+
}

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
ALGOLIA_API_KEY=
22
ALGOLIA_APPLICATION_ID=
33
ALLOW_TRANSLATION_COMMITS=
4-
EARLY_ACCESS_HOSTNAME=
5-
EARLY_ACCESS_SHARED_SECRET=
6-
GITHUB_TOKEN=

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
commonjs: true,
5+
es2020: true,
6+
node: true
7+
},
8+
parser: 'babel-eslint',
9+
extends: [
10+
'eslint:recommended',
11+
'standard'
12+
],
13+
parserOptions: {
14+
ecmaVersion: 11
15+
},
16+
rules: {
17+
},
18+
overrides: [
19+
{
20+
files: [
21+
'**/tests/**/*.js'
22+
],
23+
env: {
24+
jest: true
25+
}
26+
}
27+
]
28+
}

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ package.json @github/docs-engineering
2020
# Site Policy
2121
/content/github/site-policy/ @github/site-policy-admins
2222

23+
# Content strategy
24+
/contributing/content-markup-reference.md @github/docs-content-strategy
25+
/contributing/content-style-guide.md @github/docs-content-strategy
26+
2327
# Make sure that Octokit maintainers get notified about changes
2428
# relevant to the Octokit libraries (https://github.com/octokit)
2529
/content/rest/reference @github/octokit-maintainers

.github/ISSUE_TEMPLATE/improve-existing-docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ labels:
77
assignees: ''
88
---
99
<!--
10-
HUBBERS BEWARE! THE GITHUB/DOCS REPO IS PUBLIC TO THE ENTIRE INTERNET. OPEN AN ISSUE IN GITHUB/DOCS-CONTENT https://github.com/github/docs-content/issues/new/choose INSTEAD.
10+
HUBBERS BEWARE! THE GITHUB/DOCS REPO IS PUBLIC TO THE ENTIRE INTERNET. OPEN AN ISSUE IN GITHUB/DOCS-CONTENT INSTEAD.
1111
-->
1212

1313
<!--
1414
For questions, ask in Discussions: https://github.com/github/docs/discussions
1515
16-
Before you file an issue read the:
16+
Before you file an issue read the:
1717
- Code of Conduct: https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md
1818
- Contributing guide: https://github.com/github/docs/blob/main/CONTRIBUTING.md
1919

.github/ISSUE_TEMPLATE/improve-the-site.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ assignees: ''
77
---
88

99
<!--
10-
HUBBERS BEWARE! THE GITHUB/DOCS REPO IS PUBLIC TO THE ENTIRE INTERNET. OPEN AN ISSUE IN GITHUB/DOCS-CONTENT https://github.com/github/docs-content/issues/new/choose INSTEAD.
10+
HUBBERS BEWARE! THE GITHUB/DOCS REPO IS PUBLIC TO THE ENTIRE INTERNET. OPEN AN ISSUE IN GITHUB/DOCS-CONTENT INSTEAD.
1111
-->
1212

1313
<!--
1414
For questions, ask in Discussions: https://github.com/github/docs/discussions
1515
16-
Before you file an issue read the:
16+
Before you file an issue read the:
1717
- Code of Conduct: https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md
1818
- Contributing guide: https://github.com/github/docs/blob/main/CONTRIBUTING.md
1919

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Thanks again!
2121
<!-- Share artifacts of the changes, be they code snippets, GIFs or screenshots; whatever shares the most context. -->
2222

2323
### Check off the following:
24-
- [ ] All of the tests are passing.
25-
- [ ] I have reviewed my changes in staging.
24+
- [ ] I have reviewed my changes in staging. (look for the **deploy-to-heroku** link in your pull request, then click **View deployment**)
2625
- [ ] For content changes, I have reviewed the [localization checklist](https://github.com/github/docs/blob/main/contributing/localization-checklist.md)
2726
- [ ] For content changes, I have reviewed the [Content style guide for GitHub Docs](https://github.com/github/docs/blob/main/contributing/content-style-guide.md).
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env node
2+
3+
const fs = require('fs')
4+
const core = require('@actions/core')
5+
const eventPayload = JSON.parse(fs.readFileSync(process.env.GITHUB_EVENT_PATH, 'utf8'))
6+
7+
// This workflow-run script does the following:
8+
// 1. Gets an array of labels on a PR.
9+
// 2. Finds one with the relevant Algolia text; if none found, exits early.
10+
// 3. Gets the version substring from the label string.
11+
12+
const labelText = 'sync-english-index-for-'
13+
const labelsArray = eventPayload.pull_request.labels
14+
15+
// Exit early if no labels are on this PR
16+
if (!(labelsArray && labelsArray.length)) {
17+
process.exit(0)
18+
}
19+
20+
// Find the relevant label
21+
const algoliaLabel = labelsArray
22+
.map(label => label.name)
23+
.find(label => label.startsWith(labelText))
24+
25+
// Exit early if no relevant label is found
26+
if (!algoliaLabel) {
27+
process.exit(0)
28+
}
29+
30+
// Given: sync-english-index-for-enterprise-server@3.0
31+
// Returns: enterprise-server@3.0
32+
const versionToSync = algoliaLabel.split(labelText)[1]
33+
34+
// Store the version so we can access it later in the workflow
35+
core.setOutput('versionToSync', versionToSync)
36+
process.exit(0)
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env node
2+
3+
const fs = require('fs')
4+
const path = require('path')
5+
const { execSync } = require('child_process')
6+
const semver = require('semver')
7+
8+
/*
9+
* This script performs two checks to prevent shipping development mode OpenAPI schemas:
10+
* - Ensures the `info.version` property is a semantic version.
11+
* In development mode, the `info.version` property is a string
12+
* containing the `github/github` branch name.
13+
* - Ensures the decorated schema matches the dereferenced schema.
14+
* The workflow that calls this script runs `script/rest/update-files.js`
15+
* with the `--decorate-only` switch then checks to see if files changed.
16+
*
17+
*/
18+
19+
// Check that the `info.version` property is a semantic version
20+
const dereferencedDir = path.join(process.cwd(), 'lib/rest/static/dereferenced')
21+
const schemas = fs.readdirSync(dereferencedDir)
22+
schemas.forEach(filename => {
23+
const schema = require(path.join(dereferencedDir, filename))
24+
if (!semver.valid(schema.info.version)) {
25+
console.log(`🚧⚠️ Your branch contains a development mode OpenAPI schema: ${schema.info.version}. This check is a reminder to not 🚢 OpenAPI files in development mode. 🛑`)
26+
process.exit(1)
27+
}
28+
})
29+
30+
// Check that the decorated schema matches the dereferenced schema
31+
const changedFiles = execSync('git diff --name-only HEAD').toString()
32+
33+
if(changedFiles !== '') {
34+
console.log(`These files were changed:\n${changedFiles}`)
35+
console.log(`🚧⚠️ Your decorated and dereferenced schema files don't match. Ensure you're using decorated and dereferenced schemas from the automatically created pull requests by the 'github-openapi-bot' user. For more information, see 'script/rest/README.md'. 🛑`)
36+
process.exit(1)
37+
}
38+
39+
// All checks pass, ready to ship
40+
console.log('All good 👍')
41+
process.exit(0)

.github/allowed-actions.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@
44
// can be added it this list.
55

66
module.exports = [
7-
'actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe',
8-
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16',
9-
'actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675',
10-
'actions/github-script@5d03ada4b0a753e9460b312e61cc4f8fdeacf163',
11-
'actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45',
12-
'actions/github-script@44b873bc975058192f5279ebe7579496381f575d',
13-
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9',
14-
'actions/labeler@5f867a63be70efff62b767459b009290364495eb',
15-
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d',
16-
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526',
17-
'actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8',
7+
'actions/cache@0781355a23dac32fd3bac414512f4b903437991a', //actions/cache@v2.1.3
8+
'actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f', //actions/checkout@v2.3.4
9+
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
10+
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0
11+
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d', //actions/setup-node@v1.4.4
12+
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526', //actions/setup-ruby@v1.1.2
13+
'actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4', //actions/stale@v3.0.13
1814
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
1915
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
2016
'docker://chinthakagodawita/autoupdate-action:v1',
@@ -25,13 +21,17 @@ module.exports = [
2521
'juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8',
2622
'juliangruber/find-pull-request-action@64d55773c959748ad30a4184f4dc102af1669f7b',
2723
'juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512',
24+
'lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8',
2825
'pascalgn/automerge-action@c9bd182',
29-
'peter-evans/create-issue-from-file@35e304e2a12caac08c568247a2cb46ecd0c3ecc5',
30-
'peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8',
26+
'peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326',
27+
'peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd',
28+
'peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43',
3129
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
3230
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',
3331
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',
3432
'repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d',
35-
'rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815',
36-
'tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0'
33+
'someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd',
34+
'tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0',
35+
'EndBug/add-and-commit@9358097a71ad9fb9e2f9624c6098c89193d83575',
36+
'dorny/paths-filter@eb75a1edc117d3756a18ef89958ee59f9500ba58'
3737
]
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
name: 60 Days Stale Check
22
on:
33
schedule:
4-
- cron: "40 16 * * *" # Run each day at 16:40 UTC / 8:40 PST
4+
- cron: '40 16 * * *' # Run each day at 16:40 UTC / 8:40 PST
55

66
jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8
11-
with:
12-
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.'
14-
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity.'
15-
days-before-stale: 60
16-
days-before-close: -1
17-
only-labels: 'engineering'
18-
stale-issue-label: 'stale'
19-
stale-pr-label: 'stale'
20-
10+
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.'
14+
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity.'
15+
days-before-stale: 60
16+
days-before-close: -1
17+
only-labels: 'engineering'
18+
stale-issue-label: 'stale'
19+
stale-pr-label: 'stale'
20+
exempt-pr-labels: 'never-stale'
21+
exempt-issue-labels: 'never-stale'

.github/workflows/auto-label-prs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Auto label Pull Requests
22
on:
3-
- pull_request
3+
pull_request:
44

55
jobs:
66
triage:
77
if: github.repository == 'github/docs-internal'
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/labeler@5f867a63be70efff62b767459b009290364495eb
11-
with:
12-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
10+
- uses: actions/labeler@5f867a63be70efff62b767459b009290364495eb
11+
with:
12+
repo-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/automerge-dependencies.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
name: Auto Merge Dependency Updates
22

33
on:
4-
- pull_request
5-
- pull_request_review
4+
pull_request:
5+
paths:
6+
- 'package*.json'
7+
- 'Gemfile*'
8+
- 'Dockerfile'
9+
- '.github/workflows/**'
10+
pull_request_review:
11+
types:
12+
- edited
13+
- submitted
614

715
jobs:
816
run:

.github/workflows/automerge.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
if: contains(github.event.pull_request.labels.*.name, 'automerge') || contains(github.event.pull_request.labels.*.name, 'autosquash')
2424
steps:
2525
- name: automerge
26-
uses: "pascalgn/automerge-action@c9bd182"
26+
uses: 'pascalgn/automerge-action@c9bd182'
2727
env:
28-
GITHUB_TOKEN: "${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}"
29-
MERGE_METHOD_LABELS: "automerge=merge,autosquash=squash"
30-
MERGE_COMMIT_MESSAGE: "pull-request-title"
31-
MERGE_METHOD: "merge"
32-
MERGE_FORKS: "true"
33-
MERGE_RETRIES: "50"
34-
MERGE_RETRY_SLEEP: "10000" # ten seconds
35-
UPDATE_LABELS: "automerge,autosquash"
36-
UPDATE_METHOD: "merge"
28+
GITHUB_TOKEN: '${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}'
29+
MERGE_METHOD_LABELS: 'automerge=merge,autosquash=squash'
30+
MERGE_COMMIT_MESSAGE: 'pull-request-title'
31+
MERGE_METHOD: 'merge'
32+
MERGE_FORKS: 'true'
33+
MERGE_RETRIES: '50'
34+
MERGE_RETRY_SLEEP: '10000' # ten seconds
35+
UPDATE_LABELS: 'automerge,autosquash'
36+
UPDATE_METHOD: 'merge'

.github/workflows/browser-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# Even if if doesn't do anything
2727
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
2828
name: Checkout
29-
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
29+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3030

3131
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
3232
name: Install

0 commit comments

Comments
 (0)