1
0
mirror of synced 2026-01-05 21:04:17 -05:00
Commit Graph

490 Commits

Author SHA1 Message Date
Kevin Heis
b99c565f12 Try running npm ci to have husky do its thing before repo-sync (#20575) 2021-07-28 15:33:40 -07:00
Robert Sese
26fe1bdc3b Fix template string quotes (#20568) 2021-07-28 17:36:49 +00:00
Kevin Heis
73609ad2b7 Add CI=true for docker container for repo-sync (#20563)
* Skip git hooks on CI

* Update repo-sync.yml
2021-07-27 21:00:38 -07:00
James M. Greene
f0269dbf4c Disable Husky precommit commits in some workflows (#20548) 2021-07-27 20:59:41 +00:00
James M. Greene
0f49b81b59 Fix Actions workflows missing Node.js (#20546)
* Add missing Node setups to workflow (and/or name steps)
* Remove unnecessary checkout step
2021-07-27 18:34:23 +00:00
Grace Park
8ba413cabc React Cleanup: Documentation (#20517)
* initial documentation changes

* editing layouts terminology

* update to match other files

* move javascripts to components/lib

* fix: dockerfile

* update based on Mikes updates to the javascripts directory

* update components/README.md

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-07-27 09:07:18 -07:00
Sarah Edwards
1e0f6f473f update import to be ESM compatible (#20523) 2021-07-26 14:51:26 -07:00
Sarah Edwards
f7af358edc Update workflow to add docs-reviewers review requests to docs-content review board (#20388) 2021-07-26 21:05:36 +00:00
Kevin Heis
38d883e99f Update ping-staging-apps.yml (#20518) 2021-07-26 12:51:31 -07:00
github-openapi-bot
2c051505bf Update OpenAPI Descriptions (#20484)
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-07-22 22:17:59 +00:00
github-openapi-bot
fa99cdf2b4 Update OpenAPI Descriptions (#20403)
* Update OpenAPI Descriptions

* update the add-and-commit action to latest version

* manually update decorated files

* fix: update allowed-actions

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2021-07-22 16:25:52 +00:00
Lucas Costi
da0ec9f4e1 Add setup-node to OpenAPI decorate workflow (#20469)
* Add setup-node to OpenAPI decorate workflow

* Add description of the workflow
2021-07-22 13:52:46 +00:00
Chiedo John
ef743f307a Delete batch-status.yml (#20472) 2021-07-22 07:45:09 -04:00
Rachael Sewell
d9b75d1e58 Deprecate 2.21 script updates (#20454) 2021-07-21 21:22:38 +00:00
James M. Greene
a0eff64e4f Lint *.yaml workflows, too (#20445)
* Lint .yaml workflows, too
* Ignore workflow that uses non-GA-ed feature
* Update to the latest actions-linter to fix the partial-expression problem (cschleiden/github-actions-parser#18)
2021-07-21 19:13:44 +00:00
James M. Greene
265f074565 Update actions-linter to latest for concurrency key support (#20441)
* Update version of actions-linter to support 'concurrency' key
* Update .github/workflows/workflow-lint.yml
* Revert casing of 'fromJson' to 'fromJSON'
2021-07-21 15:40:42 +00:00
James M. Greene
e9b11656e7 Disallow open source changes to npm and Heroku files (#20444) 2021-07-21 14:54:37 +00:00
Kevin Heis
83ff7ee609 Use a custom version of remark-parse based on 8.0.3 without the trim dependency (#20420)
* Use a custom version of remark-parse based on 8.0.3 without the trim dependency

* Update openapi-schema-check.yml

* Update openapi-schema-check.yml

* Update openapi-schema-check.yml

* Use a package instead of ssh to install

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-07-20 18:33:30 +00:00
Matt Pollard
92fd200e2b Update action for broken link reports to add context to and close prior reports (#20213) 2021-07-19 10:59:02 +02:00
Kevin Heis
c3308b84c7 Revert "Block JavaScript changes to support CommonJS -> ESM (#20039)" (#20298)
This reverts commit 493b50c13c.
2021-07-14 14:38:49 -07: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
Robert Sese
6b5e08084e Use base ref
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-07-14 11:59:32 -05:00
Robert Sese
00f65065b3 Use pull_request instead
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-07-14 11:59:01 -05:00
Robert Sese
b9d39dc0d5 Add workflow to check for app.json edits 2021-07-13 18:09:42 -05:00
James M. Greene
149864b7ba Use the easy npm caching now built into actions/setup-node (#20316) 2021-07-13 10:42:07 -05:00
Kevin Heis
493b50c13c Block JavaScript changes to support CommonJS -> ESM (#20039)
* Block JavaScript changes to support CommonJS -> ESM

* Update block-js-changes.yml
2021-07-12 10:59:21 -07:00
Ramya Parimi
fafaacbb97 Update .github/ISSUE_TEMPLATE/improve-the-site.md
Co-authored-by: Simran <Simran-B@users.noreply.github.com>
2021-07-06 14:13:17 -05:00
Simran
1cf336c612 Update improve-the-site.md 2021-07-04 23:17:08 +02:00
Simran
9199daf731 Update improve-existing-docs.md 2021-07-04 23:10:31 +02:00
Grace Park
b2bda9ea38 removing unused actions - tests/unit/actions-workflows.js is failing (#20223) 2021-06-30 12:56:18 -04:00
Chiedo John
f1a7f06c6c Delete post-status-updates-to-slack.yml 2021-06-30 09:55:51 -04:00
Rachael Sewell
988881fc67 Update create-enterprise-issue.js (#20203)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-29 20:37:10 +00:00
Peter Cihon
55bb078990 Create reminder for title changes to Site-Policy PRs prior to merging (#19968)
* Create site-policy-reminder.yml

* Update site-policy-reminder.yml

* Update site-policy-reminder.yml

* Fix prettier linting issues

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-28 23:24:25 +00:00
James M. Greene
bc04d56094 Use the DOCS_BOT access token for update-enterprise-dates script (#20174)
* Use the DOCS_BOT access token for update-enterprise-dates script

* Add workflow_dispatch so we can test this darn thing
2021-06-28 18:15:23 +00:00
James M. Greene
1a0e8f4a4f Add missing GITHUB_TOKEN (with Docubot PAT) to workflow step (#20156) 2021-06-25 19:26:21 +00:00
James M. Greene
abbb0ef32a Cannot use repo files nor dependencies without actually having them first =) (#20135) 2021-06-24 17:12:47 +00:00
Chiedo John
06e90086f1 Update confirm-internal-staff-work-in-docs.yml (#20103) 2021-06-24 13:32:43 +00:00
chiedo
2c1d24b0ba Revert "Update confirm-internal-staff-work-in-docs.yml (#20095)"
This reverts commit 1ccb74d632.
2021-06-23 11:28:28 -04:00
Chiedo John
1ccb74d632 Update confirm-internal-staff-work-in-docs.yml (#20095) 2021-06-23 11:01:44 -04:00
James M. Greene
ad9a6268e3 Lock repo-sync PR conversations in the open source repo (#20062) 2021-06-22 19:51:10 +00:00
Janice
33e3bc8023 Merge branch 'main' into patch-3 2021-06-22 10:54:50 -07:00
James M. Greene
34589f1fbf Improve wording of issue transfer message for less confusion (#20060)
* Improve wording of issue transfer message for less confusion

* Fix context reference

* Fix repo links
2021-06-22 10:21:48 -05:00
Janice
90e9e88840 Merge branch 'main' into patch-3 2021-06-18 14:53:29 -07:00
James M. Greene
21348a29c3 Add support for workflow_dispatch of staging deploy workflow (#19974)
* Add support for workflow_dispatch of staging deploy workflow
2021-06-17 20:13:08 +00:00
James M. Greene
3eacb9800e Cancel in-flight Staging deployments when a new commit is pushed (#19997) 2021-06-17 19:04:56 +00:00
James M. Greene
c0441afb3d Update PR template to not mention deploy-to-heroku (#19994)
Follow-up to https://github.com/github/docs-internal/pull/19865
2021-06-17 18:46:30 +00: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
Emily Gould
d31c1aab77 Add more CS team files to code owners (#19954) 2021-06-16 22:00:22 +00:00
ajs256
c9d682b366 Fix typo in action step name 2021-06-16 11:44:20 -07:00