Граф коммитов

1045 Коммитов

Автор SHA1 Сообщение Дата
Peter Bengtsson 6d8c309def
cleaning up left-over debugging in staging deploy action (#24612) 2022-01-25 15:32:03 +00:00
Mike Surowiec 6c8911eea0
Workflow for staging PR deployments on azure (#24039)
* add workflow for staging PR deployments on azure

* add workflow to clean up azure staging resources
2022-01-24 17:59:56 +00:00
Mike Surowiec a5af5e4665
Improve Dockerfile security (#24541)
* Improve dockerfile security

* add docker to dependabot.yml
2022-01-24 17:35:52 +00:00
Peter Bengtsson bc73bde6e5
Fix exclusion of English search indexes (#24501)
* debug search on stage

* debugging more

* keep more

* try again
2022-01-21 17:00:30 +00:00
Mike Surowiec 00c4338d22
use actions substitution so we can use single quotes in sed (#24479) 2022-01-20 17:00:50 -06:00
Mike Surowiec 521d1a13af
fix azure prod script to not use import (#24477) 2022-01-20 16:28:21 -06:00
Mike Surowiec 1fdfee0d7a
Azure zero downtime prod deploy with slots (#24132)
* prod zero downtime deploy with slots
2022-01-20 22:05:04 +00:00
Peter Bengtsson 0aa755d9fb
set unique job key (#24411) 2022-01-18 22:46:52 +00:00
James M. Greene a83f39beb2
Prevent Link Checker from erring on long file lists (#24269)
* Add '--list' parameter to rendered-content-link-checker script

* Utilize trilom/file-changes-action output files and pass to rendered-content-link-checker script

* Rename job to unique name

* Correct module path for import

* Move import into local imports section

* Dump the contents of the file listing

* Fix typo
2022-01-13 12:46:44 +00:00
Peter Bengtsson 4982564951
check out the correct docs-early-access branch (#24250) 2022-01-13 09:27:09 +00:00
Marcelo Jacobus cf2603ac01
fix: retry translation batch PR creation if we hit a 502 (#23633)
* Fix error on Pull Request creation

Fix https://github.com/github/docs-engineering/issues/1293. This
solution does not really handle the error, it just prevents the script
from stopping, since sometimes we get a timeout error from the load
balancer even though the request was successfully handled by rails.

* Add a nudge to the localization folks when a batch is created

Ever since the translation batches are created and merged automatically
it is difficult to see when they started or finished correctly. Also,
sometimes, docubot automatically closes some pull requests, and at the
time of this writing I don't know the reason.

This change intends to make batches not go unnoticed. We can revert it
later if this becomes too noisy and the process is stable.

* fix: remove ping to docs-localization team from batch PR body

Discussion: https://github.com/github/docs-internal/pull/23633/files#r771896816

* refactor: move report-reset-files into its own step

* refactor: move git push into its own step

* spike: move PR creation into its own script

* feat: annotate createTranslationBatchPullRequest fn

* enhancement: embed nwo#pr format in logger

* fix: import fs directly

* fix: import @actions/github directly

* docs: update annotations in fn block

* build: update step name to be self-documenting

* Retry on 502

* Rename method to reflect its behaviour

* Update codeowners

* Fix comment

* Update .github/actions-scripts/create-translation-batch-pr.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Update .github/actions-scripts/create-translation-batch-pr.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Update .github/actions-scripts/create-translation-batch-pr.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Appease linter and fix script

* Move options to main

* Rename var

* Refactor options

* Check for response

* First try to find and then to create the PR

* Update .github/actions-scripts/create-translation-batch-pr.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Update .github/actions-scripts/create-translation-batch-pr.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Update .github/actions-scripts/create-translation-batch-pr.js

Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>

* Remove unreachable conditional

* Lint

* fix: remove duplicate annotation

Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-01-11 23:06:18 +00:00
James M. Greene fc25c1a7be
Simplify and correct 'npm test' usage in Workflows (#24219) 2022-01-11 21:05:39 +00:00
Mike McDonald 04da545821
Adding Codespace prebuilds to docs-internal (#23952)
* Adding Codespaces prebuilds
* Adding permissions
* Use pinned SHA for github/codespaces-precache action
* Add comments
* Add codespaces-precache repo to reference allow list

Co-authored-by: James M. Greene <jamesmgreene@github.com>
2022-01-11 00:23:08 -06:00
Peter Bengtsson 4406fd9834
treat list of files as space separated (#24176)
* treat list of files as space separated

* debuggnig

* debuggnig

* better

* test now

* cleanup

* all cleanups

* mention feature request on the action
2022-01-11 02:58:45 +00:00
dependabot[bot] 893f50cd7a
Bump actions/setup-node from 2.5.0 to 2.5.1 (#24009)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](04c56d2f95...1f8c6b94b2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-01-10 09:07:53 -05:00
dependabot[bot] 1d20c5d10f
Bump actions/cache from 2.1.6 to 2.1.7 (#24013)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](c64c572235...937d244753)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-07 23:42:39 +00:00
dependabot[bot] 9028fadad1
Bump peter-evans/create-pull-request from 3.10.1 to 3.12.0 (#24012)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3.10.1 to 3.12.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](7380612b49...dcd5fd746d)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-07 23:38:43 +00:00
dependabot[bot] 35366aefc6
Bump actions/upload-artifact from 2.2.4 to 2.3.1 (#24011)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.2.4 to 2.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](27121b0bdf...82c141cc51)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-07 23:34:37 +00:00
dependabot[bot] 366af672fc
Bump EndBug/add-and-commit from 7.2.1 to 7.5.0 (#24010)
Bumps [EndBug/add-and-commit](https://github.com/EndBug/add-and-commit) from 7.2.1 to 7.5.0.
- [Release notes](https://github.com/EndBug/add-and-commit/releases)
- [Changelog](https://github.com/EndBug/add-and-commit/blob/main/CHANGELOG.md)
- [Commits](2bdc0a61a0...8c12ff729a)

---
updated-dependencies:
- dependency-name: EndBug/add-and-commit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-07 23:30:39 +00:00
Ramya Parimi 03c9f5ea57
Merged notification workflow are failing (#24081)
* Update triage-issue-comments.yml

* Update merged-notification.yml

* Update triage-issue-comments.yml
2022-01-07 02:30:47 +00:00
James M. Greene 2d8a3cc7d0
Add actions:read permissions to GITHUB_TOKEN (#24113) 2022-01-06 17:16:19 +00:00
James M. Greene be4249b57c
Remove the concept of "undeployment" as a part of the PR deployment lifecycle (#23731)
* Update remove-stale-staging-resources workflow to completely replace undeploy workflow
* Delete the staging-undeploy-pr workflow file
* Delete all undeployment scripts and logic
* Remove all references to the automated-block-deploy label used for undeployment
* Simplify staging cross-workflow concurrency needs
2022-01-06 16:27:48 +00:00
Peter Bengtsson 26d2c5438a
Check for orphaned assets in CI (#24074) 2022-01-05 16:26:45 +00:00
Mike Surowiec a840d2bb13
Add production Azure workflow (#24038)
* add prod-build-deploy-azure workflow
2022-01-04 22:40:08 -06:00
Peter Bengtsson 9bdbec73d4
escape echo of changed files in Action (#24058)
* escape echo of changed files in Action

* escaped

* escaped (2)

* temporary

* reset temporary tests
2022-01-04 22:50:43 +00:00
Robert Sese a9da0c8681
Singular script directory (#24052) 2022-01-04 21:00:47 +00:00
Sarah Edwards 7cff1636cd
use pull_request_target trigger (#23946)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-04 19:56:16 +00:00
James M. Greene 6f2170e825
Remove duplicate CI env vars from Actions workflows (#23921) 2022-01-04 18:29:04 +00:00
Peter Bengtsson 1a8d06089e
use pull_request for the private staging-build-and-deploy (#23783) 2022-01-04 18:01:27 +00:00
Kevin Heis 55ee70e06b
Check that actions specify hashes instead of allowlist (#24042)
* Check that actions specify hashes instead of allowlist

* Fixes for unhashed version

* Update actions-workflows.js
2022-01-04 17:43:40 +00:00
Sarah Edwards d5c3731634
handle case where requestedReviewer is null (#24043) 2022-01-04 09:39:11 -08:00
Sarah Edwards ed92a75e10
Classify hubber PRs as hubber contributions even in the OS repo (#23987)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-04 17:10:01 +00:00
Sarah Edwards 767d7d8f51
Get all open PRs instead of last 100 (#23985) 2022-01-04 16:16:58 +00:00
Marcelo Jacobus 3b0594e3ce
Automate closing of stale translation batches (#23581)
* Automatically close stale translation batches

* fix: adjust spacing for the query key

Resolves CI failure: https://github.com/github/docs-internal/runs/4486848450?check_suite_focus=true#step:3:4

* Fix query

* enhancement: add type filter to query

`type` filter restricts results to either issues or pull requests. In this case, we want to close existing stale batches that are _only_ pull requests.

Docs: https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests

* feat: use lee-dohm/close-matching-issues v2.1.0

https://github.com/lee-dohm/close-matching-issues/pull/357 is merged into this release, which gives the action the ability to close matching issues _and_ pull requests.

Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>
2021-12-20 17:50:37 +00:00
James M. Greene 94659705b1
Alternative `repo-sync` fixes (#23892)
* Info is in the data prop

* Don't bother to comment when closing our own automated repo-sync PRs

Co-authored-by: Robert Sese <sese@github.com>
2021-12-18 14:31:40 -06:00
James M. Greene b486966547
Add a few checks to close the repo-sync PR if no changes remain (#23839) 2021-12-17 20:37:56 +00:00
James M. Greene d6405ecb45
Optimize workflow runs with `concurrency` settings (#23811)
* Add concurrency settings for a bunch of workflows
* Restrict prod deployments to one at a time but disallow interrupting
* Remove redundant pull_request.types specification
2021-12-17 16:00:52 +00:00
Robert Sese 3f2283fcb3
Add popular-pages.json to CODEOWNERS (#23796)
* Add popular-pages.json to CODEOWNERS

* Actually add to CODEOWNERS correctly for docs-eng
2021-12-16 18:36:09 +00:00
Peter Bengtsson a44fe743f7
don't run old link checkers on pushes (#23785) 2021-12-16 18:10:20 +00:00
Rachael Sewell 02c5e44c4d
Run translation workflow once a day (#23765)
Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>
2021-12-16 16:56:35 +00:00
Peter Bengtsson 84f323fdc1
Ability to soft-purge Fastly with a click of a button (#23508)
* Ability to soft-purge Fastly with a click of a button

* permissions

* install dependencies would help
2021-12-16 13:30:22 +00:00
Peter Bengtsson 17e33bbb61
don't run unit tests on pushes to main (#23755) 2021-12-16 12:51:30 +00:00
Peter Bengtsson 1c2219c057
remove old debugging in staging-deploy-pr (#23701) 2021-12-15 20:16:04 +00:00
Peter Bengtsson bf5c7353d2
eslint check the .github/actions-scripts/* files too (#23698)
* eslint check the .github/actions-scripts/* files too

* but ignore node_modules/.bin/*

* fix errors

* last one

* feedbacked
2021-12-15 17:35:34 +00:00
Peter Bengtsson a736b53cec
Only run browser tests on pull request (#23704)
* only run browser tests on pull_request

* package.json also

* helps if I edit the right file
2021-12-15 17:21:51 +00:00
Robert Sese 0e9c08f040
Unlock before approving in repo sync (#23730)
* Unlock before approving

* Revert "Unlock before approving"

This reverts commit 2b9bc2de94b412a49d3b81f4e48d798c48abfca0.

* Set content:write so we can approve locked PRs
2021-12-15 17:01:33 +00:00
James M. Greene dc756b9dd3
Adjust internal staging build/deploy job name (#23725)
A unique name is critical so we can make it a required check
2021-12-14 18:21:47 -06:00
Peter Bengtsson 2e9128b148
shared .next/cache in staging-build workflow (#23700)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-12-15 00:01:12 +00:00
James M. Greene 526b5bd651
Add nextjs caching into all workflows with builds (#23654)
* Add nextjs caching into all workflows with builds

* Reposition the nextjs cache step for test-windows.yml

* Fix cache and run build for browser-test.yml

* Update .github/workflows/browser-test.yml
2021-12-14 23:21:06 +00:00
Peter Bengtsson d3396ff4c0
ReferenceError in .github/actions-scripts/staging-commit-status-success.js (#23697) 2021-12-14 10:56:16 -05:00
Peter Bengtsson f68eb74d90
Make a dedicated, fast, workflow just for docs-internal only (#23289)
* Make a dedicated, fast, workflow just for docs-internal only

Part of #1297

* make staging-build-pr only for github/docs

* prune later

* make it louder and clearer about disabling workflows

* does it merge?

* typo

* rename ref

* rename

* early access should be good to go

* far from perfect

* start with that

* gzip

* rearrange

* html_url

* correction of actions/checkout sha

* correction of actions/setup-node sha

* quote

* ooops

* actually deploy

* move @octokit/rest to dependencies

* await-sleep hack

* reinstall npm

* typo

* CONTEXT_NAME

* deployments:write permission

* pull-requests:read permission

* actions:read and statuses:write permissions

* private repo mention exception

* it's called github.run_id

* Apply suggestions from code review

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* make CONTEXT_NAME optional (if it works)

* comment out CONTEXT_NAME

* simplifying

* going to run on on.pull_request instead

* remove comment

* only the 2-phase staging deploy on github/docs

* better if statement on label check

* refactor of staging-deploy script

* switch to npm install to get the deDependencies back

* using --only=dev

* updating comments

* event_name

* not on pushes to main

* add staging-commit-status-success

* testing testing

* fix linting error

* Remove other docs-internal references from staging-deploy-pr.yml

* Cleaning up new staging-commit-status-success script and usage

* Remove unnecessary environment refs

* Remove unnecessary fallback

Since the only event trigger is pull_request now instead of also push

* Remove unnecessary env vars from workflow

* docs-internal or docs but not both

* Don't provide unnecessary environment refs

* remove now moot exception

* setting it to pull_request_target

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-12-14 08:57:54 -05:00
James M. Greene 6b01293461
Add missing security-events:write permissions for CodeQL (#23676) 2021-12-13 23:35:03 -06:00
James M. Greene 3d88cae50b
Add permission matrices to all Actions workflows (#23563)
* Add permission matrices to all Actions workflows

Also cleanup a few token references

* Add actions:read permissions for CodeQL

* Add prs:read permissions for unit test workflow
2021-12-14 04:37:36 +00:00
Marcelo Jacobus dc0d22fa84
Run workflow every six hours (#23585)
* Run cronjob every six hours

* fix: run translation batch PRs on the 25th minute

Resolves CI failure in https://github.com/github/docs-internal/runs/4490412418?check_suite_focus=true#step:10:97

Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>
2021-12-13 17:48:23 +00:00
Marcelo Jacobus 26d7681b95
Remove crowdin.yml workflow (#23490)
* Remove crowdin.yml workflow

Closes https://github.com/github/docs-engineering/issues/1341

* Fix test

Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>
2021-12-13 17:30:07 +00:00
Francis 04c8ed5726
fix: verify Crowdin CLI download before installing (#23515)
This change uses the suggested steps in https://support.crowdin.com/cli-tool/#debian,
with a slight modification in creating the `crowdin.list` file in the `/etc/apt/sources.list.d` directory.

This approach creates a new file for `crowdin.list`, then pipes the content to `tee -a`. Credits go to [this Ask Ubuntu thread reply](https://askubuntu.com/questions/185268/permission-denied-etc-apt-sources-list/185270#185270).
2021-12-11 02:08:00 +00:00
Marcelo Jacobus daa16775d8
Fix label for translation batches (#23577) 2021-12-11 01:48:22 +00:00
Marcelo Jacobus 953e87e7a0
Use @octomerger for approving and merging translation batches (#23546)
* Use @octomerger for approving and merging translation batches

Here is a [list of bots](https://github.com/github/docs-engineering#bot-accounts)

* Set @octomerger as a code owner of /translations
2021-12-09 20:13:43 +00:00
Marcelo Jacobus a7175314ec
Remove ownership from @github-actions (#23543)
A bot cannot currently own a file, according to this
https://github.community/t/is-it-possible-to-add-github-apps-bot-to-codeowners/3146
2021-12-09 20:04:52 +00:00
Marcelo Jacobus 1f4b19ae9c
Revert "Attempt to fix ownership (#23538)" (#23540)
This reverts commit e126be0147.
2021-12-09 18:52:27 +00:00
Marcelo Jacobus e126be0147
Attempt to fix ownership (#23538)
Bots should have [bot] suffix.
2021-12-09 18:33:41 +00:00
Marcelo Jacobus 0c02f91dd0
Enable auto-merge for translation-batches (#23464)
* Enable auto-merge for translation-batches

* Attempt to approve and set auto-merge

* Temporarily disable check for tests

* Test commit. Revert later.

* Not self approving anymore

* Improve failure message

* Fix auto-merge

* Remove test code

* Add ownership to @github-actions
2021-12-09 17:06:45 +00:00
Peter Bengtsson d5a232b0fd
delete Docker Action workflow (#23529) 2021-12-09 15:41:43 +00:00
Peter Bengtsson 0035e14e3b
one fast link checker to rule them all (#23041)
* one fast link checker to rule them all

* -L alias

* refactor

* hacking away

* passing pages

* adding a workflow

* limit level to critical

* ability to pass a specific set of files

* testing specific files

* remove temporary debugging

* reorganize the printing

* formatting of output

* check images too

* prettyFullPath()

* minimal permission on workflow

* update comment

* new permission

* fix actions shas
2021-12-09 08:56:07 +00:00
docubot 858a0ab79a
New translation batch for pt (#23500)
* Delete obsolete files from Crowdin in workflow

* Remove empty files before `crowdin upload`

Those files would have been rejected by Crowdin.
Close https://github.com/github/crowdin-support/issues/117

* Change delete command

* Add crowdin translations

* Run script/i18n/homogenize-frontmatter.js

* Run script/i18n/fix-translation-errors.js

* Run script/i18n/lint-translation-files.js --check parsing

* Run script/i18n/lint-translation-files.js --check rendering

* run script/i18n/reset-files-with-broken-liquid-tags.js --language=pt

* run script/i18n/reset-known-broken-translation-files.js

* Check in pt CSV report

Co-authored-by: Marcelo Jacobus <marcelo.jacobus@gmail.com>
2021-12-08 21:30:15 +00:00
Peter Bengtsson 7b5711e095
cache archived enterproxy proxy responses much longer (#23456)
* cache archived enterproxy proxy responses much longer

* Update middleware/archived-enterprise-versions.js

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

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-12-08 19:55:12 +00:00
Peter Bengtsson ca39429648
Browser test in enja only and cache redirects cache en jajson file (#23502)
* cache the .next/cache directory for faster builds

* browser test in en,ja only and cache .redirects-cache_en_ja.json file

* correction
2021-12-08 19:47:04 +00:00
Peter Bengtsson b4383a39b1
cache the .next/cache directory for faster builds (#23498) 2021-12-08 14:28:00 -05:00
Peter Bengtsson 4b329c0127
filter out CI failing PRs (#23487) 2021-12-08 18:37:22 +00:00
Marcelo Jacobus 39d07cb977
Restrict workflow to docs-internal (#23489)
Closes https://github.com/github/docs-engineering/issues/1340
2021-12-08 14:13:46 -03:00
Peter Bengtsson 7f6f20a73f
run prettier on all code in CI (#23482)
* run prettier on all code in CI

* rename

* test .tsx too

* ignore more

* prettier the stragglers

* minimal permission
2021-12-08 16:11:52 +00:00
Peter Bengtsson 0a7be6644e
simulate sync-search in PRs (#22940)
* simulate sync-search in PRs

* Update .github/workflows/sync-search-pr.yml

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

* more consistent naming

Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-12-07 14:19:07 +00:00
Francis 13a304c14d
feat: include label in PR creation (#23380)
This includes the `translation-batch` label when a new PR is created for a translation batch: https://github.com/github/docs-internal/issues?q=label%3Atranslation-batch+
2021-12-06 19:52:02 +00:00
Peter Bengtsson 7d17ce2262
cache .next/cache between unit tests (#23415)
Part of #1246
2021-12-06 18:46:06 +00:00
Robert Sese a2a0569c84
Prettify (#23374) 2021-12-03 23:44:42 +00:00
Robert Sese 70d7c01dad
Skip for repo sync PRs (#23341) 2021-12-02 16:02:57 -06:00
Peter Bengtsson 26014646dd
Massive DIFF_FILES crashes bash in repo-sync (#23326)
* Massive DIFF_FILES crashes bash in repo-sync

Part of #1304

* gst

* make exception
2021-12-02 18:57:38 +00:00
Ramya Parimi ae4675c27a
Improve triage stale workflows on docs repo (#22923)
* Update 60-days-stale-check.yml

* Update triage-stale-check.yml

Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
2021-12-02 14:31:42 +00:00
dependabot[bot] 038e81826b
Bump actions/checkout from 2.3.5 to 2.4.0 (#23297)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1e204e9a92...ec3a7ce113)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-12-02 14:15:21 +00:00
dependabot[bot] 95edf7be45
Bump actions/setup-node from 2.4.1 to 2.5.0 (#23293)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](270253e841...04c56d2f95)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-12-02 13:25:56 +00:00
Vanessa 0901e7d12d
Updates GHES template per 5367 (#23258) 2021-12-02 06:46:12 +10:00
Marcelo Jacobus 46f4d7d235
Add docubot to the exception list for FR (#23278) 2021-12-01 19:57:22 +00:00
Kevin Xu 089c9630dd
Update site-policy-sync.yml (#23248) 2021-12-01 19:27:52 +00:00
Peter Bengtsson 1c4d326116
Make the staging files, for deployments, as lean as possible (#23049)
* Experiment with making the tarball smaller

Part of #1248

* try this

* stop debugging

* delete translations too

* delete heavy search indexes too

* push and popd

* try this hack

* delete but leave directory

* debug more

* faster delete of translations

* less loud

* async await

* async await

* no tree

* simplify

* experimenting more

* unfinished

* only the large files

* change order

* brotli with level 6

* cope better with decorated rest json files

* tidying

* keep images

* cleaning

* cleaning up

* refactored function

* try this

* better comment

* remove console logging

* more important changes

* improved fs.accessSync check
2021-12-01 19:01:46 +00:00
Marcelo Jacobus 814ae6b521
Add crowdin_language to matrix (#23254)
* Add crowdin language to matrix

* Fix languages config

* Fix Spanish language code and reorder keys
2021-12-01 16:18:06 +00:00
Marcelo Jacobus 5d329edf52
Change ownership of files (#23249) 2021-12-01 00:35:28 +00:00
Kevin Heis f07743f169
Delete yml-lint.yml (#23225) 2021-11-30 22:44:17 +00:00
Peter Bengtsson 038fc886ba
only run browser tests when JS is changing (#23080)
* only run browser tests when JS is changing

Part of #1246

* ugh typo

* try this

* tidying up
2021-11-30 22:09:58 +00:00
Marcelo Jacobus 1125b8aac9
Change translation batch log path (#23241) 2021-11-30 21:25:11 +00:00
Robert Sese 6914be3e13
Make script executable (#23235) 2021-11-30 19:50:40 +00:00
Grace Park 0ee54e6284
make executable (#23232) 2021-11-30 19:22:20 +00:00
Grace Park 029dfd32a2
Migrate Prod build deploy to actions-script (#23228)
* revert to regular runner and migrate js to actions-scripts

* add prod deploy migration

* update .js

* add run_id
2021-11-30 19:02:31 +00:00
Grace Park b77b195a6c
Migrate Content Changes Table Workflow github-script code (#23198)
* moving content changes table to actions-script

* rename js file

* using context for neater code
2021-11-30 18:12:17 +00:00
Marcelo Jacobus 601d05e6a4
Change order of steps in create-translation-batch-pr.yml (#23210)
The new order will use "reset known broken files" as a last step. That
way we can better understand if the previous steps were enough to catch
those errors. The least files are reset in that last step, the better.

Also, the check for broken/mismatched liquid tags is performed after
rendering and parsing check. That helps us to identify how useful the
mismatch check is, if at all.
2021-11-30 08:28:38 -08:00
Marcelo Jacobus 463ecbc337
Enable Japanese in `create-translation-batch-pr.yml` (#23101) 2021-11-30 13:45:00 +00:00
Marcelo Jacobus 424483ac6e
Enable Chinese in `create-translation-batch-pr.yml` (#23100) 2021-11-30 13:33:27 +00:00
Marcelo Jacobus 94361206a0
Enable Spanish in `create-translation-batch-pr.yml` (#23102) 2021-11-30 13:25:54 +00:00
Marcelo Jacobus 855034fec3
Report files reset during the translation batch (#23159)
* Add script to report reset files

* Has the workflow report the reset files

* Fix script name

* Filter report by language

* Update .github/workflows/create-translation-batch-pr.yml

* Use build in array methods
2021-11-30 12:31:08 +00:00
Marcelo Jacobus 6e01e74b39
Only check in the language files (#23162) 2021-11-30 12:23:11 +00:00
Robert Sese 23ca5459dd
Move from github-script to standalone script for staging undeploy (#23190)
* Move from github-script to standalone script for staging undeploy

* Add necessary env variables
2021-11-30 01:26:26 +00:00
Grace Park 1d5a78634e
revert to self-hosted runners (#23189) 2021-11-30 01:05:37 +00:00
Rachael Sewell d6e56f369f
github -> octokit (#23188) 2021-11-29 14:55:24 -08:00
Rachael Sewell fce7e3cbb9
add run id env var (#23187) 2021-11-29 14:44:34 -08:00
Peter Bengtsson 224194b6d3
Migrate from actionsgithub script to own scripts staging deploy (#23184)
* migrate from actions/github-script to own scripts (staging deploy)

* make it executable

* remove need to --no-save install 'esm'

* don't use self-hosted runner so we get latest OS (2.285.0)

* remove pointless try/catch
2021-11-29 22:19:41 +00:00
Peter Bengtsson 9067d072c3
use regular ubuntu for staging deploys (#23186) 2021-11-29 16:11:53 -06:00
Robert Sese 5ab4c12d47
Use self-hosted as tmp workaround for broken prod deploys (#23183) 2021-11-29 21:51:46 +00:00
Peter Bengtsson 3cae972349
print current Node version inside script (#23182) 2021-11-29 21:19:16 +00:00
Matt Pollard c0cacb8004
Use "Contributor" (#23146) 2021-11-26 14:00:01 +01:00
Matt Pollard bda92e7077
Update name of "Author" field in script that adds pull requests to review project (#23145) 2021-11-26 13:46:20 +01:00
Peter Bengtsson 38a3afe845
don't allow creating empty PRs (#23072)
Part of #998
2021-11-23 18:26:38 +00:00
Francis 894182d2f1
fix: s/parsin/parsing (#23038)
Closes https://github.com/github/docs-internal/issues/23037
2021-11-22 20:32:17 +00:00
Kevin Xu d2c6d478fa
add workflow_dispatch to if condition (#22732)
* add workflow_dispatch to if condition

* print PR_TITLE

Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
2021-11-22 18:50:18 +00:00
Ramya Parimi 41e49be672
Update transfer-to-localization-repo.yml (#22961)
* Update transfer-to-localization-repo.yml

* Update transfer-to-localization-repo.yml

changes as per review

Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
2021-11-22 16:38:28 +00:00
Marcelo Jacobus 37304679c4
Fix error in CI (#23014)
See this this discussion: https://github.slack.com/archives/C0128FB8J3H/p1637330143039300

```
Run echo "$GITHUB_CONTEXT" # Error: Argument list too long
```
2021-11-19 19:26:52 +00:00
Rachael Sewell 68e64f2a42
install packages (#23013) 2021-11-19 19:11:28 +00:00
Kevin Heis 5b1ac53379
A few things that Prettier seemed to miss (#23005) 2021-11-19 18:32:20 +00:00
Rachael Sewell 580c38b56a
use repo variable and checkout repo in workflow (#22994) 2021-11-19 17:54:45 +00:00
Marcelo Jacobus 7079099c48
Fix url in slack notification (#22998)
* Attempt to fix url in slack notification

* Try again

* That is it

* Remove the link
2021-11-19 15:27:58 +00:00
Rachael Sewell ca614134cb
Simple merge queue (#22992) 2021-11-18 20:41:08 -08:00
Marcelo Jacobus e21c373b57
Automate translation batch PRs (#22857) 2021-11-19 00:43:15 +00:00
Kevin Heis ea0f680004
Update autoupdate-branch.yml (#22980) 2021-11-18 23:30:20 +00:00
Rachael Sewell 16cabecb78
fix syntax error in workflow (#22984) 2021-11-18 14:43:36 -08:00
Rachael Sewell 0cbf48b6aa
replace context with env value (#22978) 2021-11-18 14:22:02 -08:00
Kevin Heis 347bdbf449
Update autoupdate-branch.yml (#22937)
* Update autoupdate-branch.yml

* remove autoupdate labels (#22971)

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-11-18 19:53:39 +00:00
Rachael Sewell fa8150697d
update authentication for automerge script (#22977) 2021-11-18 19:36:57 +00:00
Rachael Sewell 5b8cb34e4b
remove old automerge method (#22941) 2021-11-18 09:47:46 -08:00
Peter Bengtsson b828ad58fe
cache .next/cache between staging build runs (#22886)
* cache .next/cache between staging build runs

Part of #1179

* debugging

* debugging

* debugging

* debugging

* debugging

* showing size of things

* typo

* tidying up

* tidying up (2)

* only upload artifact if it's a pull request

* tighter cache key

* change hashing technique

* allowed actions

* allowed actions (2)

* feedbacked

* add comment
2021-11-18 16:09:55 +00:00
Rachael Sewell 2768f16b50
only observe failure status when not caused by freeze (#22943) 2021-11-18 03:10:43 +00:00
Peter Bengtsson 480159e778
only lint the files that changed (#22924)
* only lint the files that changed

* allowed action

* do nothing

* debug more

* less debugging

* debug

* debug

* debug

* using patterns

* testing something

* testing something (2)

* lemme try something

* lemme try something

* one more attempt

* testing

* tidying up

* sample changes

* add debugging

* some code comments

* fine but sample changes

* update allowed actions

* final cleaning before opening PR for review

* tiny update

* remove commented out code

* feedbacked
2021-11-18 03:03:47 +00:00
Peter Bengtsson 5cac4bfa4c
don't lint JS if no JS changed in PRs (#22756)
* don't lint JS if no JS changed in PRs

Part of #1202

* one more extension
2021-11-13 18:25:56 +00:00
Peter Bengtsson 22f21db4a3
use Node 16.13.x for CI workflows (#22758)
Part of #1203
2021-11-11 01:23:13 +00:00
Robert Sese 3ddd259e6c
setup-node not specific to private repo (#22757) 2021-11-10 21:59:22 +00:00
Peter Bengtsson 0d13379462
fix TS usage around VersionPicker (#22739) 2021-11-10 11:00:34 -08:00
Ramya Parimi cf2c58910a
Update 60-days-stale-check.yml (#22686) 2021-11-10 03:22:44 +00:00
Kevin Heis 79fa21e74d
Update build-docker-image.yml (#22666) 2021-11-08 18:08:37 +00:00
Rachael Sewell a83c0cfd50
remove old unused scripts (#22650) 2021-11-08 17:43:59 +00:00
Peter Bengtsson 981d79715a
avoid docker build CI for trivial changes (#22663)
Part of #1158
2021-11-08 17:22:06 +00:00
Marcelo Jacobus 383ec0bd98
Remove translations directory before Crowdin Sync (#22582)
* Remove all translations before Crowdin sync

- See https://github.com/github/docs-engineering/issues/1114

* To be reverted

Temporarily change the branch name name in Crowdin sync

* Remove translations/*/data before Crowdin sync

* Fix actions check

* Revert "To be reverted"

This reverts commit 7bc38fa44a223eb1878d791107b5b5ce6cb50463.

* Pin crowdin/github-action
2021-11-05 20:18:45 +00:00
Peter Bengtsson 1e9bcdcbf7
Omit dereferenced static rest json file in stage builds (#22589)
* omit dereferenced static rest json file in stage builds

* there is no translations/de no more

* remove lines that no longer do anything
2021-11-05 01:21:41 +00:00
Peter Cihon 542eea4190
Update site-policy-sync.yml (#22399)
* Update site-policy-sync.yml

* Update site-policy-sync.yml

Added permissions. Tested successfully on the private repo

* Update allowed-actions.js

Removing now extraneous action from permissions

* run prettier to remove trailing whitespaces

Co-authored-by: Kevin Xu <khxu@github.com>
2021-11-04 20:11:41 +00:00
Ramya Parimi e9499cb9d2
Merge branch 'main' into patch-3 2021-11-04 12:46:31 -05:00
Octomerger Bot 62559288b5
Merge branch 'main' into repo-sync 2021-11-04 10:18:45 -04:00
Ramya Parimi 5fb481eb31
Merge branch 'main' into incorrect-self-review-link 2021-11-04 09:08:07 -05:00
Marcelo Jacobus ed9e3d79cb
Add test and script to ensure 1:1 parity of liquid tags between source and translation (#22472)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2021-11-04 10:59:17 -03:00
Mike Surowiec 6747838293
fix: update staging-deploy-pr to never untar artifact from public repo (#22526)
* fix: update staging-deploy-pr to never untar public builds, allow search to not error when missing indexes/records files

* add comment about tar extraction

* let lunr-search fail, for now, if the files are missing

Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2021-11-02 12:51:36 -07:00
Ramya Parimi 17c2df411c
Workflow to transfer localization issues to localization repo (#21857)
* workflow to transfer localization issues

* Update .github/workflows/transfer-to-localization-repo.yml

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

* Update transfer-to-localization-repo.yml

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-11-02 18:33:11 +00:00
Miyata Jumpei 6a13a49504
Fix link to self-review 2021-11-01 13:17:38 +09:00
Robert Sese 06f9fa101c
Add GHEC link check workflow (#22478)
* Add GHEC link checker workflow

* Update link check script for GHEC

* Remove stale comments
2021-10-29 20:50:22 +00:00
Kevin Heis 4d1f7f915b
Capital first letter of action names (#22491) 2021-10-29 17:32:11 +00:00
Ramya Parimi 7a4bffcd5c
Update move-ready-to-merge-pr.yaml (#22418) 2021-10-29 12:15:05 +00:00