1
0
mirror of synced 2025-12-20 18:36:31 -05:00
Commit Graph

341 Commits

Author SHA1 Message Date
Sarah Schneider
a62226b91c lint 2021-06-16 13:17:05 -04:00
Sarah Schneider
2088988b8a update ghae script to use new short versioning 2021-06-16 13:15:24 -04:00
Sarah Schneider
32cead8243 update ghec script to use new short versioning 2021-06-16 13:15:15 -04:00
Sarah Schneider
f4b455b0c3 move from test helpers to script helpers 2021-06-16 13:14:55 -04:00
Sarah Schneider
49c149e618 Merge branch 'main' of github.com:github/docs-internal into script-to-use-short-versions 2021-06-16 12:34:19 -04:00
Sarah Schneider
bc1a3336e1 update versions props in yaml too 2021-06-16 12:33:44 -04:00
Grace Park
e795a6c79f Merge branch 'main' of https://github.com/github/docs-internal into site-tree-followup 2021-06-16 08:58:55 -07:00
Kevin Heis
a0d1f7f9af Remove gemfile and ruby code (#19910) 2021-06-16 15:35:19 +00:00
Rachael Sewell
bdf724c922 Update a few enterprise release steps (#19072) 2021-06-15 15:07:15 -07:00
Sarah Schneider
43a8fa2260 Merge branch 'main' of github.com:github/docs-internal into script-to-use-short-versions 2021-06-15 15:04:26 -04:00
Sarah Schneider
c954c6c3ea add the script! 2021-06-15 15:04:20 -04:00
Grace Park
1823cff641 updating pages to page-data 2021-06-15 11:02:05 -07:00
James M. Greene
db75933733 Undeploy from staging manually using a script (#19875)
* Add skeleton workflow and module for undeploying

* Remove commented out code

* Update undeployment module

* Add '--destroy' flag to 'script/deploy' options

* Add timeout and concurrency key for undeployment

* Remove dangling unneeded function declaration

* Add ant-man preview for inactive deployment state setting

* Fix reference to pull request number

* Refactor to extract more properties from the PR object

* Fix reference to pull request number

* Remove workflow

* Add a README comment about '--destroy' usage

* Fix grammar

* Add missing 'ant-man' preview to createDeploymentStatus calls

* Add missing preview to createDeploymentStatus calls

* Find the latest existing deployment instead of creating a new one

* Remove unused variable

* Deactivate ALL deployments

* Update copy

* Add missing colons
2021-06-15 15:51:25 +00:00
James M. Greene
f388a3d550 Deploy to staging manually using a script (#19769)
* Add 'script/deploy' to enable manual deploys to Heroku

* Pass API tokens into 'deploy-to-staging' module usage

* Construct Octokit instance to pass in

* Get PR branch name and verify state

* Reorganize

* Rename option to 'octokit'

* Add missing option

* Actually use the convenience methods for convenience

* Simplify top-level script

* Top-level script revisions

* Add parse-pr-url module

* Add create-staging-app-name module

* Remove misplaced comment

* Pass in owner

* Use owner param

* More variables

* Pass owner along more

* Correct prNumber param reference

* Add WIP deploy-to-staging module

* Prevent 'scripts/' and '.github/actions-scripts/' files from being modified in open source repo

* Extract PR author earlier

* Add note about optionally supplying DOCUBOT_REPO_PAT env var

* Override Heroku env var during AppSetup creation instead of later to avoid triggering a second deploy

* Updates to deploy-to-staging module

* Lots of updates

* Add dyno start-up monitoring and warmup requests

* Ignore 'script/deploy' in the repository-references test

* Correct path to Octokit helper

* Temporarily add a 'gha-' prefix to environment names

* Log whole error if terminal. Good for Octokit errors!

* Correct Octokit preview configuration

* Add more logging around Heroku build and release

* Added more timings to log messages

* Monitor dyno states specifically from the dyno list view to avoid 404 oddities when Free dynos are dropped and non-Free dynos are added

* Don't wait for AppSetup status as it includes the Build time

* Updating logging since we don't see DeploymentStatus update messages in the UI =(

* Remove commented out code

* Refactor to extract more properties from the PR object

* Fix reference to pull request number

* Increase Heroku polling intervals from 2.5 seconds to 5 seconds

* Remove unhelpful createDeploymentStatus API calls

* Workaround Heroku's secondary release upon app creation
2021-06-14 22:32:07 +00:00
Grace Park
24d9c3a24f updating algolia headers sectioning records 2021-06-14 13:37:10 -07:00
Grace Park
3f248976ad Merge branch 'main' of https://github.com/github/docs-internal into grace-header-styling 2021-06-10 18:08:33 -07:00
Grace Park
29e6a7fed8 adding 1 time script to add mini toc frontmatter 2021-06-10 18:02:15 -07:00
Kevin Heis
936f3e1b48 Create add-ghec-to-fpt.js (#19610)
* Create add-ghec-to-fpt.js

* Update add-ghec-to-fpt.js

* Update add-ghec-to-fpt.js

* Fix regexp

* Update script/enterprise-server-releases/add-ghec-to-fpt.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update script/enterprise-server-releases/add-ghec-to-fpt.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Rename github-ec to enterprise-cloud

* Update script/enterprise-server-releases/add-ghec-to-fpt.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Apply suggestions from code review

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: James M. Greene <JamesMGreene@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-06-10 18:19:25 +00:00
Grace Park
c8ceeb35f2 Merge branch 'main' of https://github.com/github/docs-internal into grace-header-styling 2021-06-10 09:37:13 -07:00
Kevin Heis
2144779703 Algolia $$$ (#19825) 2021-06-10 01:36:23 +00:00
Sarah Schneider
f22b631f5d reverse the array of upcoming changes so the most recent appear first 2021-06-09 09:29:00 -04:00
Sarah Schneider
dbc78136c0 change yaml.safeDump to yaml.dump 2021-06-07 15:14:53 -04:00
Sarah Schneider
b74cc0423b update Octokit API call 2021-06-07 15:14:36 -04:00
Grace Park
05fb4cb9b2 adding just the styling for header update 2021-06-04 10:29:21 -07:00
Grace Park
10b9f0fd18 adding update minitocmaxheadinglevel 2021-06-02 17:04:01 -07:00
Grace Park
de55aeffe9 Adding console log for files that have later headers that are larger than the first 2021-05-27 13:18:31 -07:00
Grace Park
cd9402818a Updating script and tests to include feedback 2021-05-27 12:57:38 -07:00
Grace Park
ab473d0f5f Adding header update script and test 2021-05-26 22:56:47 -07:00
Grace Park
6cbf126291 adding script and tests for checking h2 header start 2021-05-26 22:20:45 -07:00
James M. Greene
542a459c06 Move script-only dependencies to devDependencies (#19542)
* Move lib/search/sync.js to script/search/sync.js

* Move mdast-util-from-markdown to devDeps

* Move lib/redirects/add-redirect-to-frontmatter.js to script/helpers/

* Move mkdirp to devDeps

* Move linkinator to devDeps

* Move rimraf to devDeps

* Fix script/search/sync.js require paths

* Move lib/search/build-records.js to script/search/

* Move lib/search/find-indexable-pages to script/search/

* Fix require paths for build-records

* Fix require paths for find-indexable-pages

* Move lib/search/algolia-get-remote-index-names.js to script/search/

* Movbe lib/search/algolia-search-index.js to script/search/

* Move lib/search/lunr-search-index.js to script/search/

* Move lib/search/lunr-get-index-names.js to script/search/

* Fix Lunr search index paths

* Move lib/search/validate-records.js to script/search/

* Move is-url to devDeps

* Move lib/search/algolia-client.js to script/search/

* Move lib/search/parse-page-sections-into-records.js to script/search/

* Move lib/search/rank.js to script/search/

* Fix path to cached-index-names.json file

* Normalize require for fs.promises
2021-05-25 20:44:19 +00:00
Mike Surowiec
37f73f0bb3 Heroku dev deps (#19431)
* fix: req.csrfToken doesn't always exist (e.g. 500 page)

* feat: update dockerfile and add nextjs to build

* fix: run linter

* move @babel deps -> dev deps

* move webpack looking things from deps -> dev deps

* move pa11y-ci to optional dep

* explicitly include optional deps for pa11y

* allow heroku dev deps to be installed

* fix: update postcss module

* fix: update dockerfile build

* tmp: disable renderReact

* see if another deploy is slower/faster

* move a few more packages to devDeps

* upgrade to package-lock v2

* use dayjs instead of date-fns

* move cross-env to devDeps

* remove unused 'del' package

* commit husky precommit hooks

* add hrtime to clone-for-build.js

* Revert "add hrtime to clone-for-build.js"

This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413.

* update babel/eslint

* fix: remove unused plugin

* try a .slugignore

* fix: heroku-postbuild to use npm run build

* fix: i cannot spell dereferenced

* add .next/cache to heroku cacheDirectories

* test cached build

* remove aws-sdk, see what breaks

* move jest-puppeteer to optional deps

* fix: update browser-test.yml to use newer node version

* move jimp to optional dependencies

* move puppeteer to optional dependencies

* fix: ci optional include

* fix: bad copy pasta

* remove previous react experiment

* update tests/README.md with note about optional deps

* bump node test version back to 14

* convert package-lock back to v1

* fix: use node 15.x to leverage npm optional deps

* fix: optional dep install

* test: see what happens with heroku/nodejs-typescript buildpack

* back to heroku/nodejs buildpack

* move jest to optional

* revert jest move

* remove .slugignore

* cleanup dockerfile, move xlsx-population to optional, add comment about optional deps

* Update Dockerfile

Co-authored-by: James M. Greene <JamesMGreene@github.com>

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-24 15:40:50 -07:00
Kevin Heis
9ba7e6bc34 Update homogenize-frontmatter script to not stop on errors and concurrency yes (#19480)
* Update homogenize-frontmatter script to not stop on errors and concurrency yes

* Update homogenize-frontmatter.js

* Speed up by avoiding exists check

Node docs: Using fs.exists() to check for the existence of a file before calling fs.open(), fs.readFile() or fs.writeFile() is not recommended. Doing so introduces a race condition, since other processes may change the file's state between the two calls. Instead, user code should open/read/write the file directly and handle the error raised if the file does not exist.

* Update homogenize-frontmatter.js

Co-authored-by: Zeke Sikelianos <zeke@github.com>
2021-05-24 16:27:50 +00: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
Sarah Schneider
22f7957036 Update script/content-migrations/comment-on-open-prs.js 2021-05-17 16:50:28 -04:00
Sarah Schneider
42baac12b6 use a regular issue comment instead of a PR review comment 2021-05-17 16:15:35 -04:00
Sarah Schneider
805ddfec49 new script to add a comment to all open PRs in docs-internal 2021-05-17 15:41:46 -04:00
Sarah Schneider
0235ab938c return early, do not run on empty array 2021-05-17 15:41:27 -04:00
Rachael Sewell
ad20a5e23c crowdin frontmatter cleanup workflow (#19329) 2021-05-14 00:10:28 +00:00
James M. Greene
a68d285228 Crowdin remediation process tweaks (#19252) 2021-05-13 20:38:43 +00:00
Mike Surowiec
e10c29b1fb feat: use eslint for dependency checks 2021-05-06 08:31:04 -07:00
Rachael Sewell
29e2006039 exit with logging message (#19137) 2021-05-05 18:08:55 +00:00
Zeke Sikelianos
918bd8a54f update frontmatter homogenisation to sweep all translated files (#19117)
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
Co-authored-by: James M. Greene <417751+JamesMGreene@users.noreply.github.com>
2021-05-03 23:26:18 +00:00
Rachael Sewell
a926da8b08 Update topics to sentence case (#19069) 2021-04-30 19:30:36 -07:00
Rachael Sewell
60d6ecdcb1 fix relative path (#19073) 2021-04-29 16:57:07 -07:00
Zeke Sikelianos
2c3b74bb6c create script to homogenise localised frontmatter (#19014)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-04-29 18:50:09 +00:00
James M. Greene
816a7bbc4e Follow-up for removing stale apps (#19056)
* Use existing 'github' script helper to get Octokit instance

* Move @octokit/rest to devDeps

We only use it in scripts, currently

* Removed outdated delete-unused-staging-apps script
2021-04-29 11:09:34 -04:00
James M. Greene
d43b008e62 Remove stale staging apps (#19034)
* Add a script to remove stale staging apps
* Add a workflow to remove stale staging apps on a regular basis
2021-04-28 21:23:28 +00:00
Sarah Schneider
3cdc9af2c9 update refs again 2021-04-27 14:20:28 -04:00
Marc-Andre Giroux
2deb8275da Accept glob patterns for source files in openapi-check script (#18965)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-04-26 21:56:12 +00:00
Zeke Sikelianos
148c63c5dd i18n: define translatable properties in frontmatter schema (#18964)
* i18n: define translatable properties in frontmatter schema

* mark `product` frontmatter as translatable

* lint
2021-04-26 13:24:41 +00:00