1
0
mirror of synced 2026-01-03 15:05:54 -05:00
Commit Graph

404 Commits

Author SHA1 Message Date
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
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
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
Chiedo John
f1a7f06c6c Delete post-status-updates-to-slack.yml 2021-06-30 09:55:51 -04: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
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
ajs256
c9d682b366 Fix typo in action step name 2021-06-16 11:44:20 -07:00
Kevin Heis
df8cfadf18 Remove ruby action (#19961)
https://github.com/github/docs-internal/pull/19910
2021-06-16 16:45:21 +00:00
mc
26ce5e2a2c [June 16, 2021] GitHub Desktop 2.9 updates (#19781) 2021-06-16 15:41:43 +00:00
James M. Greene
7662b43a07 Update casing of 'fromJSON' to 'fromJson' in our workflow files (#19933) 2021-06-15 21:37:46 +00:00
James M. Greene
f3de3ee618 Update actions/github-script usage to v4.0.2 (#19897) 2021-06-15 16:09:15 +00:00
Matt Pollard
9ecccfdf33 Bump peter-evans/create-issue-from-file to support repository input (#19922) 2021-06-15 15:57:12 +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
Matt Pollard
a85c946bce Specify repository for issues from Actions workflow to check English links (#19832) 2021-06-11 10:18:56 +02:00
Rachael Sewell
b20cefa910 Fix a repo-sync failure (#19792) 2021-06-08 21:53:39 +00:00
Chiedo John
a7780369fe Update move-new-issues-to-correct-docs-repo.yml (#19767) 2021-06-07 16:10:09 -04:00
Chiedo John
0cc1483571 Update move-existing-issues-to-the-correct-repo.yml (#19766) 2021-06-07 15:58:47 -04:00
Chiedo John
3487088bc9 Update workflows to support all future issues being in Docs Engineering and Docs Content (#19689)
Add automation to support new repo recommendations.

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-07 19:41:48 +00:00
Chiedo John
ae22ad4ded Update update-status-labels-on-tracking-issues.yml (#19677)
* Update update-status-labels-on-tracking-issues.yml

* Update update-status-labels-on-tracking-issues.yml
2021-06-02 16:31:22 -04:00
Laura Coursen
05005c49c4 Remove docs ping from confirm-internal-staff-work-in-docs.yml (#19627) 2021-06-01 20:18:16 +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
Peter Cihon
865b23f0e1 Update site-policy-sync.yml
adding filter to prevent (unmerged) closed PRs from pushing to the public repo
2021-05-24 15:31:43 -07:00
Melanie Yarbrough
f92fe615a4 Update label name 2021-05-24 17:16:13 -04:00
chiedo
066847cbf3 No longer needed
We now track crowdin migration todos in FR batches
2021-05-24 14:57:02 -04:00
Mike Surowiec
488dd4d202 run browser-test.yml like pa11y.yml 2021-05-20 14:09:14 -07:00
Mike Surowiec
7d1090fcee fix: run lint 2021-05-20 13:53:57 -07:00