1
0
mirror of synced 2026-01-02 12:04:38 -05:00
Commit Graph

702 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Rachael Sewell
580c38b56a use repo variable and checkout repo in workflow (#22994) 2021-11-19 17:54:45 +00:00