Skip to content

Commit

Permalink
fix graphql docs automation (#53838)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Jan 10, 2025
1 parent 729ab85 commit 4d49a71
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync-audit-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# need to use a token from a user with access to github/audit-log-allowlists for this step
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
run: |
npm run audit-log-sync
npm run sync-audit-log
- name: Get the audit-log-allowlists SHA being synced
id: audit-log-allowlists
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
env:
# need to use a token from a user with access to github/github for this step
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
run: npm run graphql-sync
run: npm run sync-graphql
- name: Create pull request
id: create-pull-request
uses: peter-evans/create-pull-request@6cd32fd93684475c31847837f87bb135d40a2b79 # pin @v7.0.3
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"analyze-text": "tsx src/search/scripts/analyze-text.ts",
"analyze-comment": "tsx src/events/scripts/analyze-comment-cli.ts",
"archive-version": "tsx --max-old-space-size=16384 src/ghes-releases/scripts/archive-version.ts",
"audit-log-sync": "tsx src/audit-logs/scripts/sync.ts",
"build": "next build",
"check-canary-slots": "tsx src/workflows/check-canary-slots.ts",
"check-content-type": "tsx src/workflows/check-content-type.ts",
Expand Down Expand Up @@ -49,7 +48,6 @@
"general-search-scrape-server": "cross-env NODE_ENV=production PORT=4002 MINIMAL_RENDER=true CHANGELOG_DISABLED=true tsx src/frame/server.ts",
"ghes-release-scrape-with-server": "cross-env GHES_RELEASE=1 start-server-and-test general-search-scrape-server 4002 general-search-scrape",
"general-search-scrape-with-server": "cross-env NODE_OPTIONS='--max_old_space_size=8192' start-server-and-test general-search-scrape-server 4002 general-search-scrape",
"graphql-sync": "tsx src/graphql/scripts/sync.js",
"index": "tsx src/search/scripts/index/index-cli autocomplete docs-internal-data",
"index-ai-search-autocomplete": "tsx src/search/scripts/index/index-cli ai-search-autocomplete",
"index-general-autocomplete": "tsx src/search/scripts/index/index-cli general-autocomplete",
Expand Down Expand Up @@ -88,6 +86,8 @@
"start-all-languages": "cross-env NODE_ENV=development tsx src/frame/server.ts",
"start-for-playwright": "cross-env ROOT=src/fixtures/fixtures TRANSLATIONS_FIXTURE_ROOT=src/fixtures/fixtures/translations ENABLED_LANGUAGES=en,ja NODE_ENV=test tsx src/frame/server.ts",
"symlink-from-local-repo": "tsx src/early-access/scripts/symlink-from-local-repo.js",
"sync-audit-log": "tsx src/audit-logs/scripts/sync.ts",
"sync-graphql": "tsx src/graphql/scripts/sync.js",
"sync-rest": "tsx src/rest/scripts/update-files.ts",
"sync-secret-scanning": "tsx src/secret-scanning/scripts/sync.ts",
"sync-webhooks": "npx tsx src/rest/scripts/update-files.ts -o webhooks",
Expand Down
2 changes: 1 addition & 1 deletion src/audit-logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The workflow runs the `src/audit-logs/scripts/sync.ts` script.

To run the audit log events pipeline locally:

1. Run `npm run audit-log-sync`
1. Run `npm run sync-audit-log`

## About this directory

Expand Down
1 change: 1 addition & 0 deletions src/graphql/scripts/build-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ const CHANGES_TO_IGNORE = [
ChangeType.TypeDescriptionRemoved,
ChangeType.TypeDescriptionAdded,
ChangeType.DirectiveUsageFieldDefinitionAdded,
ChangeType.DirectiveUsageArgumentDefinitionAdded,
]

export default { createChangelogEntry, cleanPreviewTitle, previewAnchor, prependDatedEntry }

0 comments on commit 4d49a71

Please sign in to comment.