Skip to content

Commit 9ed4df6

Browse files
authored
Merge pull request #16526 from github/build-changelog
Move changelog generation into script/graphql (from graphql-docs)
2 parents 4788075 + a7d042a commit 9ed4df6

14 files changed

Lines changed: 810 additions & 185 deletions

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
test-group: [content, meta, rendering, routing, unit, links-and-images]
39+
test-group:
40+
[content, meta, rendering, routing, unit, links-and-images, graphql]
4041
steps:
4142
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
4243
# Even if if doesn't do anything

.github/workflows/update-graphql-files.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,15 @@ jobs:
3737
env:
3838
# need to use a token from a user with access to github/github for this step
3939
GITHUB_TOKEN: ${{ secrets.ZEKE_PAT_WITH_REPO_AND_WORKFLOW_SCOPE_FOR_REPO_SYNC }}
40-
# technically the changelog should only be updated once per day, but we can safely
41-
# run build-changelog-from-markdown.js in its current form once per hour; when we
42-
# rewrite the changelog script, we may need to run it in a separate workflow on a
43-
# once-per-day schedule; see details in https://github.com/github/docs-internal/issues/12722.
4440
run: |
4541
script/graphql/update-files.js
46-
script/graphql/build-changelog-from-markdown.js
4742
- name: Create pull request
4843
id: create-pull-request
4944
uses: peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8
5045
with:
5146
# need to use a token with repo and workflow scopes for this step
5247
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
53-
commit-message: 'Action ran graphql scripts "update-files" and "build-changelog-from-markdown"'
48+
commit-message: 'Action ran graphql script"update-files"'
5449
title: GraphQL schema update
5550
body:
5651
"Hello! Some GraphQL data in github/github was updated recently. This PR

lib/graphql/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ Generated by `script/graphql/update-files.js`:
2424
* `lib/graphql/static/schema-VERSION.json` (separate files per version)
2525
* `lib/graphql/static/previews.json`
2626
* `lib/graphql/static/upcoming-changes.json`
27-
28-
Generated by `script/graphql/build-changelog-from-markdown.js`:
29-
3027
* `lib/graphql/static/changelog.json`
3128

3229
## Rendering docs

0 commit comments

Comments
 (0)