Skip to content

Commit 3766039

Browse files
authored
repo sync
2 parents 5f89d32 + 2ce40a1 commit 3766039

26 files changed

Lines changed: 203 additions & 46 deletions

File tree

.github/workflows/build-docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
jobs:
1515
build:
1616
# Do not run this job for translations PRs
17-
if: ${{ github.ref != 'refs/heads/translations' }}
17+
if: ${{ github.head_ref != 'translations' && github.ref != 'refs/heads/translations' }}
1818

1919
runs-on: ubuntu-latest
2020
steps:

.github/workflows/link-check-dotcom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# run: npm run heroku-postbuild
4848
# env:
4949
# DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
50-
# GIT_BRANCH: ${{ github.ref }}
50+
# GIT_BRANCH: ${{ github.head_ref || github.ref }}
5151

5252
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
5353
name: Build

.github/workflows/link-check-ghae.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# run: npm run heroku-postbuild
4848
# env:
4949
# DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
50-
# GIT_BRANCH: ${{ github.ref }}
50+
# GIT_BRANCH: ${{ github.head_ref || github.ref }}
5151

5252
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
5353
name: Build

.github/workflows/link-check-ghes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# run: npm run heroku-postbuild
4848
# env:
4949
# DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
50-
# GIT_BRANCH: ${{ github.ref }}
50+
# GIT_BRANCH: ${{ github.head_ref || github.ref }}
5151

5252
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
5353
name: Build

.github/workflows/test-windows.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# NOTE: Changes to this file should also be applied to './test.yml' and './test-translations.yml'
1+
# NOTE: Changes to this file should also be applied to './test.yml'
22

33
name: Node.js Tests - Windows
44

@@ -8,17 +8,24 @@ on:
88
schedule:
99
- cron: '50 19 * * *' # once a day at 19:50 UTC / 11:50 PST
1010

11+
env:
12+
CI: true
13+
1114
jobs:
1215
test:
1316
runs-on: windows-latest
1417
if: (github.event_name != 'pull_request') || (github.event_name == 'pull_request' && (contains(github.event.pull_request.labels.*.name, 'Windows') || contains(github.event.pull_request.labels.*.name, 'windows')))
18+
timeout-minutes: 60
1519
strategy:
1620
fail-fast: false
1721
matrix:
1822
test-group: [content, graphql, meta, rendering, routing, unit]
1923
steps:
2024
- name: Check out repo
2125
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
26+
with:
27+
# Enables cloning the Early Access repo later with the relevant PAT
28+
persist-credentials: 'false'
2229

2330
- name: Setup node
2431
uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
@@ -41,7 +48,15 @@ jobs:
4148
- name: Install dependencies
4249
run: npm ci
4350

44-
- name: Run build script
51+
- if: ${{ github.repository == 'github/docs-internal' }}
52+
name: Clone early access
53+
run: npm run heroku-postbuild
54+
env:
55+
DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
56+
GIT_BRANCH: ${{ github.head_ref || github.ref }}
57+
58+
- if: ${{ github.repository != 'github/docs-internal' }}
59+
name: Run build script
4560
run: npm run build
4661

4762
- name: Run tests

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
run: npm run heroku-postbuild
7878
env:
7979
DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
80-
GIT_BRANCH: ${{ github.ref }}
80+
GIT_BRANCH: ${{ github.head_ref || github.ref }}
8181

8282
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' && github.repository != 'github/docs-internal' }}
8383
name: Run build script

content/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-the-codeql-workflow.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ topics:
1616
{% data reusables.code-scanning.beta %}
1717
{% data reusables.code-scanning.not-available %}
1818

19+
### Producing detailed logs for debugging
20+
21+
To produce more detailed logging output, you can enable step debug logging. For more information, see "[Enabling debug logging](/actions/managing-workflow-runs/enabling-debug-logging#enabling-step-debug-logging)."
22+
1923
### Automatic build for a compiled language fails
2024

2125
If an automatic build of code for a compiled language within your project fails, try the following troubleshooting steps.

contributing/search.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,26 @@ To see all existing search-related issues and pull requests, visit [github.com/g
1414

1515
## How to search
1616

17-
The site search is part of every version of docs.github.com. On any page, you can use the search box to search the documents we've indexed.
18-
You can also query our search endpoint directly at: https://docs.github.com/search?version=dotcom&language=en&filters=topics:%27oauth%20apps%27+AND+topics:%27github%20apps%27&query=install
17+
The site search is part of every version of docs.github.com. This endpoint responds in JSON format, and fronts Algolia and Lunr. We recommend using this endpoint over directly integrating with Algolia or Lunr, as the endpoint will be more stable. On any page, you can use the search box to search the documents we've indexed.
18+
You can also query our search endpoint directly at:
19+
`https://docs.github.com/search?version=<VERSION>&language=<LANGUAGE CODE>&filters=topics:<TOPIC>&query=<QUERY>`
20+
21+
- The VERSION can be any numbered GitHub Enterprise Server version (e.g., `2.22`, `3.0`), GitHub AE (`ghae`), or the Free pro team plan (`dotcom`).
22+
- The LANGUAGE CODE can be: `cn`, `de`, `en`, `es`, `ja`, or `pt`.
23+
- TOPIC can be any topics in [the allowed list of topics](/data/allowed-topics.js). The values in the `topics` attribute are **not** case sensitive, so filtering on `GitHub actions` or `github actions` will return the same result. **Note:** Currently, the topics filter only works for the dotcom version in the English language. We plan to expand this search query to other languages and versions in the future.
24+
- Any search QUERY you'd like.
1925

20-
Using the attribute `topics` in your query will only return results that have the matching topic value. You can find a full list of topics in [the allowed topics file](/data/allowed-topics.js). The `topics` attribute is configured as a [`filter only` facet in Algolia](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/). When the topic contains spaces, you must use quotes. For Algolia, [here](https://www.algolia.com/doc/api-reference/api-parameters/filters/#handle-attributes-with-spaces) is an example for filters containing spaces. Algolia also requires [boolean operators](https://www.algolia.com/doc/api-reference/api-parameters/filters) to combine more than one filter.
26+
For example, to filter on the topic `ssh` and the query `passphrases`, you'd use this search query:
2127

22-
This endpoint responds in JSON format, and fronts Algolia and Lunr. We recommend using this endpoint over directly integrating with Algolia or Lunr, as the endpoint will be more stable.
28+
https://docs.github.com/search?version=dotcom&language=en&filters=topics:ssh&query=passphrases
29+
30+
To filter for the topics `oauth apps` and `github apps` and the query `install`, you'd use this search query:
31+
32+
https://docs.github.com/search?version=dotcom&language=en&filters=topics:'oauth apps'+AND+topics:'github apps'&query=install
33+
34+
### Using the topics search filter
35+
36+
Using the attribute `topics` in your query will only return results that have the matching topic value. The `topics` attribute is configured as a [`filter only` facet in Algolia](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/). When the topic contains spaces, you must use quotes. For Algolia, [here](https://www.algolia.com/doc/api-reference/api-parameters/filters/#handle-attributes-with-spaces) is an example for filters containing spaces. Algolia also requires [boolean operators](https://www.algolia.com/doc/api-reference/api-parameters/filters) to combine more than one filter.
2337

2438
## Production deploys
2539

data/graphql/ghae/schema.docs-ghae.graphql

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,16 @@ type CheckRun implements Node & UniformResourceLocatable {
21322132
externalId: String
21332133
id: ID!
21342134

2135+
"""
2136+
Whether this check run is required to pass before merging.
2137+
"""
2138+
isRequired(
2139+
"""
2140+
The pull request this check is required for
2141+
"""
2142+
pullRequestId: ID!
2143+
): Boolean!
2144+
21352145
"""
21362146
The name of the check for this check run.
21372147
"""
@@ -31869,6 +31879,16 @@ type StatusContext implements Node {
3186931879
description: String
3187031880
id: ID!
3187131881

31882+
"""
31883+
Whether this status is required to pass before merging.
31884+
"""
31885+
isRequired(
31886+
"""
31887+
The pull request this status is required for
31888+
"""
31889+
pullRequestId: ID!
31890+
): Boolean!
31891+
3187231892
"""
3187331893
The state of this status context.
3187431894
"""

data/graphql/schema.docs.graphql

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,16 @@ type CheckRun implements Node & UniformResourceLocatable {
22222222
externalId: String
22232223
id: ID!
22242224

2225+
"""
2226+
Whether this check run is required to pass before merging.
2227+
"""
2228+
isRequired(
2229+
"""
2230+
The pull request this check is required for
2231+
"""
2232+
pullRequestId: ID!
2233+
): Boolean!
2234+
22252235
"""
22262236
The name of the check for this check run.
22272237
"""
@@ -34802,6 +34812,16 @@ type StatusContext implements Node {
3480234812
description: String
3480334813
id: ID!
3480434814

34815+
"""
34816+
Whether this status is required to pass before merging.
34817+
"""
34818+
isRequired(
34819+
"""
34820+
The pull request this status is required for
34821+
"""
34822+
pullRequestId: ID!
34823+
): Boolean!
34824+
3480534825
"""
3480634826
The state of this status context.
3480734827
"""

0 commit comments

Comments
 (0)