forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,869 changed files
with
26,085 additions
and
15,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Codespaces environment for docs.github.com | ||
// For format details, see https://aka.ms/vscode-remote/devcontainer.json | ||
{ | ||
"name": "docs.github.com", | ||
"service": "container-doc", | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"cSpell.language": ",en" | ||
}, | ||
// Install pre-requisites, and start to serve docs.github.com locally | ||
"postCreateCommand": "npm install && npm start", | ||
"forwardPorts": [4000], | ||
// Visual Studio Code extensions which help authoring for docs.github.com. | ||
"extensions": [ | ||
"yzhang.markdown-all-in-one", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
commonjs: true, | ||
es2020: true, | ||
node: true | ||
}, | ||
parser: 'babel-eslint', | ||
extends: [ | ||
'eslint:recommended', | ||
'standard' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 11 | ||
}, | ||
rules: { | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'**/tests/**/*.js' | ||
], | ||
env: { | ||
jest: true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
name: 60 Days Stale Check | ||
on: | ||
schedule: | ||
- cron: "40 16 * * *" # Run each day at 16:40 UTC / 8:40 PST | ||
- cron: '40 16 * * *' # Run each day at 16:40 UTC / 8:40 PST | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.' | ||
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity.' | ||
days-before-stale: 60 | ||
days-before-close: -1 | ||
only-labels: 'engineering' | ||
stale-issue-label: 'stale' | ||
stale-pr-label: 'stale' | ||
|
||
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.' | ||
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity.' | ||
days-before-stale: 60 | ||
days-before-close: -1 | ||
only-labels: 'engineering' | ||
stale-issue-label: 'stale' | ||
stale-pr-label: 'stale' | ||
exempt-pr-labels: 'never-stale' | ||
exempt-issue-labels: 'never-stale' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Auto label Pull Requests | ||
on: | ||
- pull_request | ||
pull_request: | ||
|
||
jobs: | ||
triage: | ||
if: github.repository == 'github/docs-internal' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@5f867a63be70efff62b767459b009290364495eb | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- uses: actions/labeler@5f867a63be70efff62b767459b009290364495eb | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,32 @@ | ||
name: Check all English links | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "40 19 * * *" # once a day at 19:40 UTC / 11:40 PST | ||
- cron: '40 19 * * *' # once a day at 19:40 UTC / 11:40 PST | ||
|
||
jobs: | ||
check_all_english_links: | ||
name: Check all links | ||
if: github.repository == 'github/docs-internal' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 | ||
- name: npm ci | ||
run: npm ci | ||
- name: npm run build | ||
run: npm run build | ||
- name: Run script | ||
run: script/check-external-links en > broken_links.md | ||
- name: Check if any broken links | ||
id: check | ||
run: | | ||
if [ "$(grep 'All links are good' broken_links.md)" ]; then | ||
echo ::set-output name=continue::no | ||
else | ||
echo "::set-output name=continue::yes" | ||
echo "::set-output name=title::$(grep 'found on help.github.com' broken_links.md)" | ||
fi | ||
- if: ${{ steps.check.outputs.continue == 'yes' }} | ||
name: Create issue from file | ||
uses: peter-evans/create-issue-from-file@35e304e2a12caac08c568247a2cb46ecd0c3ecc5 | ||
with: | ||
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }} | ||
title: ${{ steps.check.outputs.title }} | ||
content-filepath: ./broken_links.md | ||
labels: broken link report | ||
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
- name: npm ci | ||
run: npm ci | ||
- name: npm run build | ||
run: npm run build | ||
- name: Run script | ||
run: script/check-english-links.js > broken_links.md | ||
- if: ${{ failure() }} | ||
name: Get title for issue | ||
id: check | ||
run: echo "::set-output name=title::$(head -1 broken_links.md)" | ||
- if: ${{ failure() }} | ||
name: Create issue from file | ||
uses: peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326 | ||
with: | ||
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }} | ||
title: ${{ steps.check.outputs.title }} | ||
content-filepath: ./broken_links.md | ||
labels: broken link report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: "CodeQL analysis" | ||
name: CodeQL analysis | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**/*.js' | ||
- '.github/workflows/codeql.yml' | ||
- '**/*.js' | ||
- '.github/workflows/codeql.yml' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 | ||
- uses: github/codeql-action/init@v1 | ||
with: | ||
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp} (not YET ruby, sorry!) | ||
- uses: github/codeql-action/analyze@v1 | ||
continue-on-error: true | ||
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
- uses: github/codeql-action/init@v1 | ||
with: | ||
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp} (not YET ruby, sorry!) | ||
- uses: github/codeql-action/analyze@v1 | ||
continue-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.