You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/github-apps/README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,32 @@
2
2
3
3
Our GitHub Apps pipeline creates autogenerated documentation for docs.github.com from the OpenAPI stored in the open-source repository [`github/rest-api-description`](https://github.com/github/rest-api-description).
4
4
5
-
The pipeline is used to generate data that is used by the docs.github.com site when deployed locally, in preview environments, or in production.
5
+
The pipeline is used to generate the data used on these pages:
6
+
-[Endpoints available for Github App installation access tokens](https://docs.github.com/en/rest/authentication/endpoints-available-for-github-app-installation-access-tokens)
7
+
-[Endpoints available for GitHub App user access tokens](https://docs.github.com/en/rest/authentication/endpoints-available-for-github-app-user-access-tokens)
8
+
-[Endpoints available for fine-grained personal access tokens](https://docs.github.com/en/rest/authentication/endpoints-available-for-fine-grained-personal-access-tokens)
9
+
-[Permissions required for GitHub Apps](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps)
10
+
-[Permissions required for fine-grained personal access tokens](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens)
6
11
7
12
## How does it work
8
13
9
14

10
15
11
16
A [workflow](.github/workflows/sync-openapi.yml) is used to trigger the automation of the GitHub Apps documentation. The workflow runs automatically on a schedule. The workflow that triggers the GitHub Apps pipeline also triggers other automation pipelines that use the OpenAPI as the source data:
17
+
12
18
- GitHub Apps
13
19
- REST
14
20
- Webhooks
15
21
16
22
The workflow automatically creates a pull request with the changes (for all three pipelines) and the label `github-openapi-bot`.
17
23
18
-
The workflow runs the `src/rest/scripts/update-files.js` script.
24
+
The data used by the GitHub Apps pages is generated from two sources of programmatic access data and the OpenAPI. Changes to the programmatic access files do not trigger this pipeline to run, but this pipeline can be manually triggered at any time.
25
+
26
+
## Manually running the pipeline
27
+
28
+
You can manually sync the data used by the REST, Webhooks, and GitHub App pipelines before the scheduled daily run [here](https://github.com/github/docs-internal/actions/workflows/sync-openapi.yml). Use the default input options.
29
+
30
+
If the OpenAPI has changed, you will need to first wait for the OpenAPI to be merged into `github/rest-api-description`.
19
31
20
32
## Local development
21
33
@@ -26,11 +38,12 @@ To run the GitHub Apps pipeline locally:
26
38
27
39
## About this directory
28
40
29
-
-`src/rest/data` - The automatically generated data files created by running this pipeline.
30
-
-`src/rest/lib` - The source code used in production for the automated documentation generated by the GitHub Apps pipeline and configuration files edited by content and engineering team members.
31
-
-`src/rest/lib/config.json` - A configuration file used to specify metadata about the GitHub Apps pipeline. This file contains the SHA of the commit in `github/rest-api-description` that was used to generate the data in `src/github-apps/data`. This value is automatically updated when the pipeline runs.
32
-
-`src/rest/scripts` - The scripts and source code used run the GitHub Apps pipeline, which updates the `src/github-apps/data` directory.
33
-
-`src/rest/tests` - The tests used to verify the GitHub Apps pipeline.
41
+
-`src/github-apps/components` - The React source code.
42
+
-`src/github-apps/data` - The automatically generated data files created by running this pipeline.
43
+
-`src/github-apps/lib` - The source code used in production for the automated documentation generated by the GitHub Apps pipeline and configuration files edited by content and engineering team members.
44
+
-`src/github-apps/lib/config.json` - A configuration file used to specify metadata about the GitHub Apps pipeline. This file contains the SHA of the commit in `github/rest-api-description` that was used to generate the data in `src/github-apps/data`. This value is automatically updated when the pipeline runs.
45
+
-`src/github-apps/scripts` - The scripts and source code used to run the GitHub Apps pipeline, which updates the `src/github-apps/data` directory.
46
+
-`src/github-apps/tests` - The tests used to verify the GitHub Apps pipeline.
Copy file name to clipboardExpand all lines: src/rest/README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ The pipeline is used to generate data that is used by the docs.github.com site w
9
9

10
10
11
11
A [workflow](.github/workflows/sync-openapi.yml) is used to trigger the automation of the REST documentation. The workflow runs automatically on a schedule. The workflow that triggers the REST pipeline also triggers other automation pipelines that use the OpenAPI as the source data:
12
+
12
13
- GitHub Apps
13
14
- REST
14
15
- Webhooks
@@ -23,6 +24,12 @@ You can manually run the workflow leaving the source branch input parameter with
23
24
24
25
If there is a pull request that is still unmerged in `github/rest-api-description` that needs to be propagated to the docs.github.com site, manually run the workflow and provide the branch name of the pull request in the `github/rest-api-description` repo that you would like to get the changes from. This will create a new pull request in the `github/docs-internal` repo with the changes.
25
26
27
+
## Manually running the pipeline
28
+
29
+
You will need to first wait for the OpenAPI to be merged into `github/rest-api-description`.
30
+
31
+
Then, you can manually sync the data used by the REST, Webhooks, and GitHub App pipelines before the scheduled daily run [here](https://github.com/github/docs-internal/actions/workflows/sync-openapi.yml). Use the default input options.
32
+
26
33
## Local development
27
34
28
35
To run the REST pipeline locally:
@@ -32,7 +39,8 @@ To run the REST pipeline locally:
32
39
33
40
## About this directory
34
41
35
-
-`src/rest/api` - The source code for the api endpoint used in production that redirects specific anchor links on a page under `docs.github.com/rest`.
42
+
-`src/github-apps/api` - API endpoints used by source code in `src/rest`.
43
+
-`src/github-apps/components` - The React source code.
36
44
-`src/rest/data` - The automatically generated data files created by running this pipeline.
37
45
-`src/rest/lib` - The source code used in production for the automated documentation generated by the REST pipeline and configuration files edited by content and engineering team members.
38
46
-`src/rest/lib/config.json` - A configuration file used to specify metadata about the REST pipeline.
Copy file name to clipboardExpand all lines: src/webhooks/README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ The pipeline is used to generate data that is used by the docs.github.com site w
9
9

10
10
11
11
A [workflow](.github/workflows/sync-openapi.yml) is used to trigger the automation of the webhooks documentation. The workflow runs automatically on a schedule. The workflow that triggers the webhooks pipeline also triggers other automation pipelines that use the OpenAPI as the source data:
12
+
12
13
- GitHub Apps
13
14
- REST
14
15
- Webhooks
@@ -17,6 +18,12 @@ The workflow automatically creates a pull request with the changes (for all thre
17
18
18
19
The workflow runs the `src/rest/scripts/update-files.js` script, which then calls the `src/webhooks/scripts/sync.js` script.
19
20
21
+
## Manually running the pipeline
22
+
23
+
You will need to first wait for the OpenAPI to be merged into `github/rest-api-description`.
24
+
25
+
Then, you can manually sync the data used by the REST, Webhooks, and GitHub App pipelines before the scheduled daily run [here](https://github.com/github/docs-internal/actions/workflows/sync-openapi.yml). Use the default input options.
0 commit comments