From b69f1e083f37c9e66292a6161eaccb9e15feecfa Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Mon, 4 Jan 2021 15:01:42 +0000 Subject: [PATCH] Allow the translations to be self-maintained by language owners (#50240) Co-authored-by: Orta Therox --- .github/workflows/CodeOwnersSelfMerge.yml | 18 ++++++++++++++++++ docs/CODEOWNERS | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/CodeOwnersSelfMerge.yml create mode 100644 docs/CODEOWNERS diff --git a/.github/workflows/CodeOwnersSelfMerge.yml b/.github/workflows/CodeOwnersSelfMerge.yml new file mode 100644 index 0000000000..7fb0c1c171 --- /dev/null +++ b/.github/workflows/CodeOwnersSelfMerge.yml @@ -0,0 +1,18 @@ +name: Codeowners merging +on: + pull_request_target: { types: [opened] } + issue_comment: { types: [created] } + pull_request_review: { types: [submitted] } + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Run Codeowners merge check + uses: OSS-Docs-Tools/code-owner-self-merge@v1 + with: + cwd: './docs' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/CODEOWNERS b/docs/CODEOWNERS new file mode 100644 index 0000000000..ef29a77c58 --- /dev/null +++ b/docs/CODEOWNERS @@ -0,0 +1,8 @@ +# See https://github.com/OSS-Docs-Tools/code-owner-self-merge + +README.ru.md @demensky @virzak [translation] [README-RU] +README.cn.md @Kerminate @kunl [translation] [README-CN] +README.ja.md @MaySoMusician @sasurau4 [translation] [README-JA] +README.ko.md @Ailrun @cimfalab [translation] [README-KO] +README.es.md @LuigiBaute @kant [translation] [README-ES] +README.pt.md @thzoid @cdias900 [translation] [README-PT]