Skip to content

Commit 8b101bd

Browse files
authored
Merge branch 'main' into document-npm-run-build
2 parents f8b5a2c + b1dc16d commit 8b101bd

File tree

72 files changed

+298
-184
lines changed

Some content is hidden

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

72 files changed

+298
-184
lines changed

.github/workflows/js-lint.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Lint JS
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches-ignore:
10+
- translations
11+
12+
jobs:
13+
see_if_should_skip:
14+
runs-on: ubuntu-latest
15+
16+
outputs:
17+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
18+
steps:
19+
- id: skip_check
20+
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
21+
with:
22+
cancel_others: 'false'
23+
github_token: ${{ github.token }}
24+
paths: '["**/*.js", "package*.json", ".github/workflows/js-lint.yml"]'
25+
26+
lint:
27+
runs-on: ubuntu-latest
28+
needs: see_if_should_skip
29+
if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
30+
steps:
31+
- name: Check out repo
32+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
33+
34+
- name: Setup node
35+
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
36+
with:
37+
node-version: 14.x
38+
39+
- name: Get npm cache directory
40+
id: npm-cache
41+
run: |
42+
echo "::set-output name=dir::$(npm config get cache)"
43+
44+
- name: Cache node modules
45+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
46+
with:
47+
path: ${{ steps.npm-cache.outputs.dir }}
48+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-node-
51+
52+
- name: Install dependencies
53+
run: npm ci
54+
55+
- name: Run linter
56+
run: npx standard
57+
58+
- name: Check dependencies
59+
run: npm run check-deps

.github/workflows/test.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -28,48 +28,7 @@ jobs:
2828
cancel_others: 'false'
2929
github_token: ${{ github.token }}
3030
paths: '[".github/workflows/test.yml",".node-version", ".npmrc", "app.json", "content/**", "data/**","lib/**", "Dockerfile", "feature-flags.json", "Gemfile", "Gemfile.lock", "middleware/**", "node_modules/**","package.json", "package-lock.json", "server.js", "tests/**", "translations/**", "Procfile", "webpack.config.js"]'
31-
lint:
32-
needs: see_if_should_skip
33-
runs-on: ubuntu-latest
34-
steps:
35-
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
36-
# Even if if doesn't do anything
37-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
38-
name: Check out repo
39-
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
40-
41-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
42-
name: Setup node
43-
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
44-
with:
45-
node-version: 14.x
46-
47-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
48-
name: Get npm cache directory
49-
id: npm-cache
50-
run: |
51-
echo "::set-output name=dir::$(npm config get cache)"
52-
53-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
54-
name: Cache node modules
55-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
56-
with:
57-
path: ${{ steps.npm-cache.outputs.dir }}
58-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
59-
restore-keys: |
60-
${{ runner.os }}-node-
6131

62-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
63-
name: Install dependencies
64-
run: npm ci
65-
66-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
67-
name: Run linter
68-
run: npx standard
69-
70-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
71-
name: Check dependencies
72-
run: npm run check-deps
7332
test:
7433
needs: see_if_should_skip
7534
runs-on: ubuntu-latest

.github/workflows/triage-issue-comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
triage-issue-comments:
8-
if: github.repository == 'github/docs'
8+
if: github.repository == 'github/docs' && github.event.issue.pull_request == null
99
runs-on: ubuntu-latest
1010

1111
steps:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ A [pull request](https://docs.github.com/en/github/collaborating-with-issues-and
8989
When we merge those changes, they should be deployed to the live site within 24 hours. :earth_africa: To learn more about opening a pull request in this repo, see [Opening a pull request](#opening-a-pull-request) below.
9090

9191
### :question: Support
92-
We are a small team working hard to keep up with the documentation demands of a continously changing product. Unfortunately, we just can't help with support questions in this repository. If you are experiencing a problem with GitHub, unrelated to our documentation, please [contact GitHub Support directly](https://support.github.com/contact). Any issues, discussions, or pull requests opened here requesting support will be given information about how to contact GitHub Support, then closed and locked.
92+
We are a small team working hard to keep up with the documentation demands of a continuously changing product. Unfortunately, we just can't help with support questions in this repository. If you are experiencing a problem with GitHub, unrelated to our documentation, please [contact GitHub Support directly](https://support.github.com/contact). Any issues, discussions, or pull requests opened here requesting support will be given information about how to contact GitHub Support, then closed and locked.
9393

9494
If you're having trouble with your GitHub account, contact [Support](https://support.github.com/contact).
9595

@@ -129,7 +129,7 @@ Here's some information that might be helpful while working on a Docs PR:
129129

130130
- [Variables](/data/variables/README.md) - We use variables the same way we use reusables. Variables are for short strings of reusable text.
131131

132-
- [Liquid](/contribution/liquid-helpers.md) - We use liquid helpers to create different versions of our content.
132+
- [Liquid](/contributing/liquid-helpers.md) - We use liquid helpers to create different versions of our content.
133133

134134
- [Scripts](/script/README.md) - The scripts directory is the home for all of the scripts you can run locally.
135135

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you've found a problem, you can open an issue using a [template](https://gith
2727

2828
#### Solve an issue
2929

30-
If you have a solution to one of the open issues, you will need to fork the repository and submit a PR using the [template](https://github.com/github/docs/blob/main/CONTRIBUTING.md#pull-request-template) that is visible automatically in the pull request body. For more details about this process, please check out [Getting Started with Contributing](/CONTRIBUTING.md).
30+
If you have a solution to one of the open issues, you will need to fork the repository and submit a PR using the [template](https://github.com/github/docs/blob/main/CONTRIBUTING.md#pull-request-template) that is visible automatically in the pull request body. For more details about this process, please check out [Getting Started with Contributing](/CONTRIBUTING.md).
3131

3232
#### Join us in discussions
3333

4.88 KB
Loading
2.74 KB
Loading
7.82 KB
Loading
-13.6 KB
Loading
4.61 KB
Loading

0 commit comments

Comments
 (0)