1
0
mirror of synced 2026-01-05 12:07:35 -05:00
Commit Graph

72 Commits

Author SHA1 Message Date
James M. Greene
08db1c970c Refactor Staging deployment workflow to support open source PRs (#20459)
* Add a Staging build workflow

* Remove all commented out code from build workflow

It will be handled in https://github.com/github/docs-engineering/issues/726

* Use pinned version of upload-artifact action

* Tweaks to build

* Minor deployment script refactoring

* Update the Staging deployment workflow

* Missed refactoring tweak

* Add relevant comments

* Update Heroku app naming convention for Actions deploy to include 'gha-' prefix

* Update Heroku app ConfigVars and SourceBlob for optional prebuilt app

* Remove obsolete 'dist/' dir from PR build artifact

See https://github.com/github/docs-internal/pull/20405

* Ensure a new enough version of npm is used

* Switch to creating a tarball for upload

* Remove obsolete 'layouts' dir from file list

* Ditch the verbosity for 'tar'... too many files

* Add tarball support to deploy

* Add esm workaround to deploy script

See https://github.com/actions/github-script/issues/168

* Temporarily ignore staging deploy workflow from workflow linter

* Update deployment to use a Heroku Build Source instead of a GitHub Actions Artifact

* Update undeploy workflow to use ESM workaround

See https://github.com/actions/github-script/issues/168

* Add 'esm' package to optionalDependencies to better support workaround

See https://github.com/actions/github-script/issues/168

* Add Slack notifications for workflow failures

* Wrap AppSetup polling in try-catch

* Improve dyno monitoring

* Rename 'script/deploy' to have a .js extension #esm

* Update script references to include the extension

* Use non-deprecated Sources API for Heroku

* Use normal quotes

* Stub in a step to mark deployment inactive after timing out

* Apply suggestions from code review

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

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-08-25 20:45:51 +00:00
Grace Park
4cca977ac4 GitHub Action Content Table Changes (#21077)
* Creating actions for adding staging and article links to PR for content writers

* Ran prettier

* update capitalization in yml file

* Update .github/workflows/content-changes-table-comment.yml

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

* Update .github/workflows/content-changes-table-comment.yml

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

* Update .github/actions-scripts/get-content-changes-table.js

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

* Updating fc to findComment

* Update .github/actions-scripts/get-content-changes-table.js

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

* updating constant

* updating fetch depth

* Updating yml file and removing script

* Adding actions commit for github-script

* updating table info

* Using mel's wording

* update allowed actions

* Update .github/workflows/content-changes-table-comment.yml

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* linting

* update

* Testing content change

* removing tests

* updating npm install

* back to ci

* adding setup node step

Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
2021-08-24 10:39:22 -07:00
Grace Park
4f7d5c53bc Revert "Creating Action for adding staging and article links to PR for conte… (#19561)" (#21075)
This reverts commit d8f7b45e38.
2021-08-24 10:18:02 -07:00
Grace Park
d8f7b45e38 Creating Action for adding staging and article links to PR for conte… (#19561)
* Creating actions for adding staging and article links to PR for content writers

* Ran prettier

* update capitalization in yml file

* Update .github/workflows/content-changes-table-comment.yml

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

* Update .github/workflows/content-changes-table-comment.yml

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

* Update .github/actions-scripts/get-content-changes-table.js

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

* Updating fc to findComment

* Update .github/actions-scripts/get-content-changes-table.js

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

* updating constant

* updating fetch depth

* Updating yml file and removing script

* Adding actions commit for github-script

* updating table info

* Using mel's wording

* update allowed actions

* Update .github/workflows/content-changes-table-comment.yml

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* linting

* update

* Testing content change

* removing tests

* updating npm install

* back to ci

Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
2021-08-24 09:45:52 -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
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
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
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
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
James M. Greene
149864b7ba Use the easy npm caching now built into actions/setup-node (#20316) 2021-07-13 10:42:07 -05:00
Grace Park
b2bda9ea38 removing unused actions - tests/unit/actions-workflows.js is failing (#20223) 2021-06-30 12:56:18 -04:00
Kevin Heis
df8cfadf18 Remove ruby action (#19961)
https://github.com/github/docs-internal/pull/19910
2021-06-16 16:45:21 +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
Mike Surowiec
c0e604c9ba fix: remove unused from allowed-actions 2021-05-20 14:16:16 -07: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
James M. Greene
16cdd98ea5 Automatically close spammy repo-sync PRs (#18719)
* Update to latest find-pull-request-action

* Remove repetitive part of comments in allowed-actions.js

* Specify that we are seeking open PRs

* Use a PAT with site_admin scope granted to include spammy PRs
2021-04-13 18:43:22 +00:00
Chiedo John
c6a0f4dc8d No more skipping workflows (#18674)
Co-authored-by: chiedo <chiedo@users.noreply.github.com>
2021-04-09 11:31:54 -04:00
Lee Dohm
c3fe8bccd5 Add no-response to allowed-actions and pin to specific hash 2021-04-06 12:03:56 -07:00
Sarah Edwards
f9be78e493 use gh cli instead of graphql api (#18429) 2021-03-26 18:06:55 +00:00
Rachael Sewell
c535420c77 decorate script fix (#18201) 2021-03-15 18:40:00 -07:00
Sarah Edwards
c5215c4e07 Add workflow to move issues to "help wanted" column when "help wanted" or "good first issue" labels are added (#18047) 2021-03-10 18:11:03 +00:00
Rachael Sewell
f4c3a35602 temporary puppeteer container changes to revert Chrome browser(#18131) 2021-03-05 16:43:58 -08:00
Sarah Edwards
37fa44d53d Add slash command and workflow to remove issue or PR from FR board (#18101) 2021-03-04 14:57:18 -08:00
Rachael Sewell
148bf0901e Revert "Revert "Revert "update repo sync"" (#17935)" (#17971)
This reverts commit c371e18512.
2021-02-23 19:38:46 +00:00
Rachael Sewell
c371e18512 Revert "Revert "update repo sync"" (#17935) 2021-02-23 19:21:15 +00:00
Chiedo John
240e2a0283 Add status automation (#17939)
* Add status automation

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
2021-02-23 08:46:07 -05:00
Rachael Sewell
b0867e611b Revert "update repo sync (#17919)" (#17933) 2021-02-19 21:36:52 +00:00
Rachael Sewell
afd3cef086 update repo sync (#17919) 2021-02-19 19:59:15 +00:00
Rachael Sewell
6ce85ac200 Update allowed-actions.js (#17873) 2021-02-16 21:52:46 +00:00
Chiedo John
c0f5e594c2 Upgrade Actions Stale and Upgrade the public stale check (#17871)
Co-authored-by: chiedo <chiedo@users.noreply.github.com>
2021-02-16 16:36:47 -05:00
Rachael Sewell
6c2754c15f use official ruby action (#17844) 2021-02-16 20:57:39 +00:00
James M. Greene
cfbcfad1f2 Re-enable the Actions workflow linter using the latest version (#17399)
* Re-enable the Actions workflow linter using the latest version

* Update to the latest actions-linter

* Update to the latest actions-linter

* Rely on secrets.FREEZE directly rather than setting a duplicate env var

* Fix workflow error by using secrets.FREEZE directly as this one doesn't actually set a duplicate env var in the first place!

* Update to latest actions-linter

* Use ${{}} expression syntax

* Readd env.FREEZE to necessary workflows since secrets cannot be checked in 'if' conditions

* Readd the comment to the GraphQL updating workflow about the FREEZE secret

* Upgrade actions-linter
2021-02-11 15:50:37 +00:00
Jason Etcovitch
6e0c2319b4 Set engines.node to 14+ (#17777)
* Set engines.node

* Add setup-node to browser-test workflow

* Updoot ianwalter/puppeteer-container
2021-02-11 15:40:08 +00:00
Peter Cihon
c68eea93b2 Update site-policy-sync.yml (#17500)
* Update site-policy-sync.yml

* Update allowed-actions.js

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-01-28 20:18:07 +00:00
Sarah Schneider
295e5dc1f0 upgrade to setup-node v2 2021-01-22 10:54:20 -05:00
Jason Etcovitch
7f416814d6 Pin the full SHA (#17393) 2021-01-21 16:57:58 +00:00
James M. Greene
4545ffd3e9 Update repo-sync and translations workflows to verify author of PR before approving (#17356)
Uses changes from https://github.com/juliangruber/find-pull-request-action/pull/18
2021-01-19 17:48:44 +00:00
James M. Greene
90b2e49734 Add a linter for Actions workflow files (#17265)
* Add a linter for Actions workflow files

* Actually add the workflow file, duh
2021-01-14 04:07:45 +00:00
Peter Cihon
fcc718fb5d Create site-policy-sync.yml (#17111)
Create site-policy-sync.yml

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-07 19:22:12 +00:00
Rachael Sewell
1f15ea4d22 reenable graphql updater (#16994)
* re-enable graphql updater workflow

* remove scheduled run temporarily

* lint yaml

* re-enable graphql updater workflow

* add my pat for test

* use my pat for create pr

* update peter-evans action

* Action ran graphql script"update-files"

* use github-token

* revert

* Action ran graphql script"update-files" (#17000)

* update another workflow

* add schedule run back

Co-authored-by: rachmari <rachmari@users.noreply.github.com>
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-12-16 19:45:37 +00:00
Rachael Sewell
1d56eb6910 check for unallowed file os contributions (#16892)
* check for static file os contributions

* add change to show workflow review

* comment for test

* all pushes

* colon after push

* revert to version number

* debugging strange new error

* copy over file from working branch

* remove version

* update from test branch

* fix cond bug

* revert openapi schema change

* add custom translation handling

* allow testing

* push

* debug label

* move to proper area

* update route parm name

* uncomment

* revert translation

* Apply suggestions from code review

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* Update .github/workflows/triage-unallowed-contributions.yml

Co-authored-by: Janice <janiceilene@github.com>

* Update .github/workflows/triage-unallowed-contributions.yml

Co-authored-by: Janice <janiceilene@github.com>

* format code

* introduce mod

* add wildcard for openapi files

* revert file

* add back checks after tests

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Janice <janiceilene@github.com>
2020-12-11 23:04:57 +00:00
Chiedo John
ee7c1bce3d Move all Slack notifications to Docs Bot (#16828)
Move all Slack notifications to Docs Bot

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-12-09 16:47:38 +00:00
Sarah Schneider
4ba63f2899 add comment instead of trying to add to project board 2020-11-30 14:39:09 -05:00
Sarah Schneider
212fe1e259 copypasta fix 2020-11-24 15:58:16 -05:00
Sarah Schneider
e090ff783d Merge branch 'main' into broken-link-report-workflow-tweaks 2020-11-24 15:21:13 -05:00
Sarah Schneider
8f0093c63a OpenAPI tooling updates (#16320) 2020-11-24 12:20:10 -08:00
Sarah Schneider
89755817fc update allowed actions list 2020-11-23 14:19:01 -05:00