1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Commit Graph

315 Commits

Author SHA1 Message Date
Sarah Schneider
7de66fe4ef Merge branch 'main' of github.com:github/docs-internal into script-to-use-short-versions 2021-06-24 10:14:50 -04: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
Sarah Schneider
5e10cea9ac Merge branch 'main' of github.com:github/docs-internal into script-to-use-short-versions 2021-06-23 14:45:10 -04:00
Grace Park
fcf1fdd682 adding james feedback to add single app instance 2021-06-23 11:21:20 -07:00
Grace Park
cbdd722cac Merge branch 'main' into dynamic-esm 2021-06-23 10:46:25 -07:00
Grace Park
6c0b43a4bb updating libapp in one script and tests 2021-06-23 10:46:10 -07:00
Rachael Sewell
aa437c44c8 temp convenience scripts for short titles (#19939) 2021-06-23 04:03:06 +00:00
Grace Park
23f586bb93 merge and fix conflicts 2021-06-22 11:41:10 -07:00
Grace Park
d3d1902414 Merge pull request #20017 from github/upgrade-esm
Enforce and Move to Top Level require
2021-06-22 11:27:48 -07:00
Sarah Schneider
e7bd9cb1f0 run script on early access 2021-06-22 13:27:00 -04:00
Sarah Schneider
47184804e2 allow the script to be run on files that already have short names 2021-06-22 13:03:19 -04:00
Sarah Schneider
f5b2590d62 update deprecated frontmatter as part of script run 2021-06-22 12:53:22 -04:00
Sarah Schneider
0c35c0233b Merge branch 'main' of github.com:github/docs-internal into script-to-use-short-versions 2021-06-22 12:50:47 -04:00
Grace Park
9401a8f13a Merge branch 'main' into upgrade-esm 2021-06-18 13:13:53 -07:00
Grace Park
7f6a277a8e clear out dynamic require 2021-06-18 13:08:28 -07:00
Sarah Schneider
ff1c304034 Merge branch 'main' into update-old-script 2021-06-18 10:10:26 -04:00
Grace Park
8154d3b701 adding mostly readfilesync of path updates to require 2021-06-17 20:22:04 -07:00
Grace Park
0762734b43 fixed easy global requires 2021-06-17 18:39:38 -07:00
Kevin Heis
55e7a69460 Update update-files.js (#19996) 2021-06-17 20:04:20 +00:00
Sarah Schneider
23af2508ff Merge branch 'main' into update-old-script 2021-06-17 16:03:30 -04:00
James M. Greene
50fbcc62d3 Deploy/undeploy PRs to/from staging via an Actions workflow (#19865)
* 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 =(

* Refactor to extract more properties from the PR object

* Add a workflow to deploy PRs to Staging

* Fix workflow description

* 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

* Add timeout and concurrency key for deployment

* Remove dangling unneeded function declaration

* Add ant-man preview for inactive deployment state setting

* Fix reference to pull request number

* Fix reference to pull request number

* Refactor to extract more properties from the PR object

* Fix reference to pull request number

* Remove workflow

* Add workflow to undeploy closed PRs from staging

* Add repository filters to jobs

* Update to using actions/github-script@4.0.2

* Pass more environment variables that affect deployments

* Add explicit .js extensions to local require in Actions workflow

* Check out the code and install deps first, of course

* Try local requires without the explicit .js extension

* Use our usual version of Octokit instead of the provided 'github' instance to avoid versioning discrepancies

* Explicitly pass in GITHUB_TOKEN to github-script

* Point to the workflow run page as a default log_url

* Exclude staging deployment workflows from the workflow linter until we can get support for the 'concurrency' key (https://github.com/cschleiden/actions-linter/issues/79)

* Remove 'gha-' prefix
2021-06-17 18:02:02 +00:00
Sarah Schneider
a04f3af1d9 Update script/move-category-to-product.js 2021-06-16 21:56:04 -04:00
Sarah Schneider
36c54ea05f update old script 2021-06-16 21:26:04 -04:00
Rachael Sewell
0ae4979f41 clean up openapi build errors (#19963) 2021-06-16 20:08:24 +00:00
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