1
0
mirror of synced 2026-01-23 12:02:29 -05:00
Commit Graph

444 Commits

Author SHA1 Message Date
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
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
Rachael Sewell
bdf724c922 Update a few enterprise release steps (#19072) 2021-06-15 15:07:15 -07: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
c0e604c9ba fix: remove unused from allowed-actions 2021-05-20 14:16:16 -07: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
Mike Surowiec
c4166202a1 feat: upgrade to node v16, package-lock.json v2, remove aws-sdk 2021-05-20 13:32:19 -07:00
Mike Surowiec
d5367d076c fix: update CODEOWNERS for ts, tsx 2021-05-19 08:43:22 -07:00
mc
47e34258d4 Fix tiny typo 2021-05-18 12:17:57 +01:00
Chiedo John
da31de2a82 Create update-status-labels-on-tracking-issues.yml (#19373)
* Create update-status-labels-on-tracking-issues.yml

* Lint

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
2021-05-17 14:50:57 -04:00
Rachael Sewell
ad20a5e23c crowdin frontmatter cleanup workflow (#19329) 2021-05-14 00:10:28 +00:00
Emily Gould
d37a331322 Fix rendering in ready for review request (#19312) 2021-05-13 11:06:09 -05:00
Leona B. Campbell
82864d0bbd Update add-review-template.yml (#19311)
Pointing to the template

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
2021-05-13 15:53:48 +00:00
Sarah Edwards
6a1ec6db99 Add script and workflow to add docs-reviewer reqests to the FR board (#19226) 2021-05-10 23:31:23 +00:00
Kevin Heis
14e24a806e Update PULL_REQUEST_TEMPLATE.md (#19180)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-05-10 22:27:19 +00:00
Emily Gould
0a088510cc Update self-review checklist and potentially add to PR template (#19084)
* Update contributing

* Add line to PR template

* Apply suggestions from code review

Co-authored-by: Dominik Bamberger <72066+b4mboo@users.noreply.github.com>

* Update PR template

Co-authored-by: Dominik Bamberger <72066+b4mboo@users.noreply.github.com>
2021-05-10 18:48:02 +00:00
Sarah Edwards
91d4f62135 Add template and workflow to add review template to PRs (#19185)
* add review template and workflow

* use sha instead of version for action

* exclude template from check for private repo links

* Apply suggestions from code review

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
2021-05-10 18:41:09 +00:00
Chiedo John
2844dad5f2 Update and rename quick-status.yml to batch-status.yml (#19237)
* Update and rename quick-status.yml to batch-status.yml

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
2021-05-10 12:55:24 -04:00
Chiedo John
4ef84de175 Update send-issues-to-how-how-we-work-boards.yml (#19194) 2021-05-07 09:34:48 -04:00
Mike Surowiec
1584c908db Merge branch 'main' into remove-check-dep 2021-05-06 13:54:04 -07:00
Kevin Heis
cc0d0ce4b4 Increase actions tests memory (#19179) 2021-05-06 11:35:49 -07:00
Mike Surowiec
e10c29b1fb feat: use eslint for dependency checks 2021-05-06 08:31:04 -07:00
Chiedo John
2750073179 Add an option to opt issues and PRs out of HWW boards (#19135)
* Update send-issues-to-how-how-we-work-boards.yml

* Update send-prs-to-how-how-we-work-boards.yml
2021-05-04 17:34:47 +00:00
Rachael Sewell
efb8a00351 Use token with github/github permissions (#19102) 2021-05-03 17:19:06 +00:00
Rachael Sewell
642c8e37f7 Continued butchering of adding this workflow (#19089) 2021-04-30 11:53:55 -07:00
Rachael Sewell
d19636287e 🤦‍♀️ copy-paste bug fix (#19087) 2021-04-30 17:58:46 +00:00
Rachael Sewell
cb728b0273 checkout repo before assuming it is there (#19086) 2021-04-30 10:42:07 -07:00
Rachael Sewell
bbd21bc801 add workflow to run script/update-enterprise-dates.js weekly (#19075) 2021-04-30 09:46:37 -07:00
Chiedo John
639dfd6cc5 OS Confirmation label (#19062)
Co-authored-by: chiedo <chiedo@users.noreply.github.com>
2021-04-29 18:54:13 +00:00
Kevin Heis
7f9f8ae0c4 Update action crons to avoid top of hour runs (#19035) 2021-04-29 17:38:54 +00:00
Chiedo John
ff2b745c90 Update HWW verbiage from feature to batch (#19052)
* Update send-issues-to-how-how-we-work-boards.yml

* Update send-prs-to-how-how-we-work-boards.yml
2021-04-29 09:28:42 -04:00