1
0
mirror of synced 2025-12-20 10:28:40 -05:00
Commit Graph

30 Commits

Author SHA1 Message Date
Rachael Sewell
45f1a41e79 prerender graphql mutations page (#23757) 2021-12-15 12:28:39 -08:00
Rachael Sewell
1570dc66e6 add ghec version to graphql guides (#22314) 2021-10-22 10:05:17 -07:00
Peter Bengtsson
26e5ee8425 refactor unnecessary use of process.exit(1) (#21974) 2021-10-18 14:43:32 +00:00
Kevin Heis
b29e37318a Remove import x statements (#20594)
* Clear out most import x

* Update rimraf use

* Move up readme blocks in scripts
2021-07-29 20:28:30 +00:00
Kevin Heis
0b1ff73a46 Update some readFileSync to await readFile with top level await (#20525)
* Update some readFileSync to await readFile with top level await

* More updates

* Update all-products.js

* Use 'lib/readfile-async.js' in runtime files for better performance

* Remove unnecessary use of 'for await...of' loops

* Revert to importing 'fs/promises'

Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-29 16:45:46 +00:00
Mike Surowiec
9386571aa4 fix: use named export for all-versions (#20478)
* fix: use named export for all-versions

* run prettier
2021-07-22 19:29:00 +00:00
Kevin Heis
8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00
Kevin Heis
42e785b0a8 Migrate CommonJS to ESM (#20301)
* First run of script

* Get the app running --- ish

* Get NextJS working

* Remove `node:`

* Get more tests passing in unit directory

* Update FailBot test to use nock

* Update test.yml

* Update Dockerfile

* tests/content fixes

* Update page.js

* Update build-changelog.js

* updating tests/routing

* Update orphan-tests.js

* updating tests/rendering

* Update .eslintrc.js

* Update .eslintrc.js

* Install jest/globals

* "linting" tests

* staging update to server.mjs

* Change '.github/allowed-actions.js' to a ESM export

* Lint

* Fixes for the main package.json

* Move Jest to be last in the npm test command so we can pass args

* Just use 'npm run lint' in the npm test command

* update algolia label script

* update openapi script

* update require on openapi

* Update enterprise-algolia-label.js

* forgot JSON.parse

* Update lunr-search-index.js

* Always explicitly include process.cwd() for JSON file reads pathed from project root

* update graphql/update-files.js script

* Update other npm scripts using jest to pass ESM NODE_OPTIONS

* Update check-for-enterprise-issues-by-label.js for ESM

* Update create-enterprise-issue.js for ESM

* Import jest global for browser tests

* Convert 'script/deploy' to ESM

Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-14 13:49:18 -07:00
Rachael Sewell
3b32262786 ensure graphql workflow fails with non-zero exit code (#20332) 2021-07-14 08:04:58 -07:00
Robert Sese
b08d994de8 Use path from repo root for Actions (#20224)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-30 22:35:09 +00:00
Kevin Heis
a92d820888 Remove remaining JSON requires (#20110)
* Remove remaining JSON requires

* Lint

* Update feature-flags.js
2021-06-23 14:57:50 -07:00
Kevin Heis
55e7a69460 Update update-files.js (#19996) 2021-06-17 20:04:20 +00:00
Kevin Heis
a0d1f7f9af Remove gemfile and ruby code (#19910) 2021-06-16 15:35:19 +00:00
Sarah Schneider
dbc78136c0 change yaml.safeDump to yaml.dump 2021-06-07 15:14:53 -04:00
Kevin Heis
f6acb1f08a Update dependencies (#19408)
* Update dependencies 2

* Lint fixes

* Update graphql packages

* Update changelog-entry.json

* Update @octokit/rest

* Update commander with help from @rachmari

@rachmari

* Upgrade helmet

* Upgrade js-yaml

* Update server.js

* Update cheerio

* Revert "Update cheerio"

This reverts commit 8aa17c39fbf564ee554037d89e7a473027d16984.
2021-05-19 17:32:47 +00:00
Mike Surowiec
70c1f1ffb9 fix: remove trailing comma 2021-04-13 08:25:43 -07:00
Mike Surowiec
4b7a12f23b reduce some repitition in prerendering graphql 2021-04-13 08:22:41 -07:00
Mike Surowiec
9185eb3c2a pre-render graphql input-objects
resolves #18269
2021-04-09 08:32:42 -07:00
Jason Etcovitch
8d4f3e65fe Move test & script utils out of /lib (#17517)
* Remove an unused file

* Move authenticate-to-aws to scripts/utils

* Move crowdin-config to tests/utils

* Remove add-frontmatter-to-file

* Move find-unused-assets

* Move git-utils to script/utils

* Move lib/github to script/utils

* Revert "Remove an unused file"

This reverts commit cd93ad846a0354e957359f23124eb0724c9147cf.

* Move find-extraneous-translation-files to script/utils

* We already have tests/helpers

* Rename script/utils => helpers for consistency

* Forgot a path

* Fix path to crowdin-config

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-29 10:30:51 -05:00
Sarah Schneider
da1427f812 Merge branch 'main' of github.com:github/docs-internal into build-changelog 2020-12-01 09:40:04 -05:00
Sarah Schneider
a9b1b4f9e5 add rewrite-local-links to prerendered GraphQL objects HTML 2020-11-25 19:22:26 -05:00
Robert Mosolgo
15dbbeeb7c Apply suggestions from code review
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-11-25 10:48:21 -05:00
Robert Mosolgo
b87ca3b3e3 Fix lint errors 2020-11-23 08:55:05 -05:00
Robert Mosolgo
2400be9528 Merge branch 'main' into build-changelog 2020-11-23 08:44:32 -05:00
Robert Mosolgo
ab06aadf82 Add changelog creation to update-files.js 2020-11-23 08:42:12 -05:00
Rachael Sewell
4de2712df8 run prettier on yaml files (#16510) 2020-11-19 10:52:01 -08:00
Sarah Schneider
26e00904ea add some error handling around common issues (#16387) 2020-11-06 13:51:25 -05:00
Laura Coursen
a3e1733aa1 GitHub AE (GHAE) (#16090) 2020-11-02 15:12:44 -06:00
Sarah Schneider
aa5a62d49d Remove versions feature flag code (#15793)
* remove FEATURE_NEW_VERSIONS from feature-flags.json

* remove process.env.FEATURE_NEW_VERSIONS from include files

* remove process.env.FEATURE_NEW_VERSIONS from lib files

* remove process.env.FEATURE_NEW_VERSIONS from middleware files

* remove process.env.FEATURE_NEW_VERSIONS from script files

* remove process.env.FEATURE_NEW_VERSIONS from test files

* update test fixtures to use new versions as canonical fixtures
2020-09-29 13:36:07 -04:00
Vanessa Yuen
3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00