Skip to content

Commit c6c3df2

Browse files
committed
🤖 Sync org-wide files to upstream repo
More info: exercism/org-wide-files@a9d7335
1 parent 1f6aab8 commit c6c3df2

3 files changed

Lines changed: 62 additions & 0 deletions

File tree

‎.github/labels.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@
167167
description: "Work paused until further notice"
168168
color: "e4e669"
169169

170+
# This Exercism-wide label queues a PR's English for translation (see exercism/i18n)
171+
- name: "ready-to-translate"
172+
description: "The English in this PR is final; queue its translations"
173+
color: "1d76db"
174+
170175
# ----------------------------------------------------------------------------------------- #
171176
# These are the repository-specific labels that augment the Exercise-wide labels defined in #
172177
# https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml. #
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow is installed as .github/workflows/i18n-completeness.yml in
2+
# every repo that holds English. Don't edit it in those repos. Edit it in
3+
# exercism/i18n/source-repo-workflows/ and copy it to each repo. Keep the file
4+
# name, because exercism/i18n's rerun-source-check.yml looks for it.
5+
#
6+
# This workflow checks that exercism/i18n has a translation of all the English
7+
# a PR changes, and fails if anything is missing. The work happens in
8+
# exercism/i18n/.github/workflows/source-completeness.yml. This file only sets
9+
# when it runs and what it is allowed to do.
10+
#
11+
# GitHub reports this check as `i18n / completeness`. To make it a required
12+
# check, require that name.
13+
14+
name: i18n completeness
15+
16+
on:
17+
pull_request:
18+
branches: [main]
19+
20+
permissions: {}
21+
22+
jobs:
23+
i18n:
24+
permissions:
25+
contents: read
26+
uses: exercism/i18n/.github/workflows/source-completeness.yml@main
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow is installed as .github/workflows/i18n-queue.yml in every repo
2+
# that holds English. Don't edit it in those repos. Edit it in
3+
# exercism/i18n/source-repo-workflows/ and copy it to each repo.
4+
#
5+
# When a maintainer adds the `ready-to-translate` label to a PR, this workflow
6+
# opens an issue in exercism/i18n asking for the PR's English to be translated.
7+
# The work happens in exercism/i18n/.github/workflows/source-queue.yml. This
8+
# file only sets when it runs and what it is allowed to do.
9+
#
10+
# It runs on `pull_request_target` so that PRs from forks can use the
11+
# organisation's secrets. That is safe because nothing in this workflow checks
12+
# out or runs code from the PR. It only checks out exercism/i18n.
13+
# `secrets: inherit` passes on the Exercism i18n app's private key, which the
14+
# workflow uses to open the issue.
15+
16+
name: i18n queue
17+
18+
on:
19+
pull_request_target:
20+
types: [labeled, unlabeled, synchronize]
21+
branches: [main]
22+
23+
permissions: {}
24+
25+
jobs:
26+
i18n:
27+
permissions:
28+
contents: read
29+
pull-requests: write
30+
uses: exercism/i18n/.github/workflows/source-queue.yml@main
31+
secrets: inherit

0 commit comments

Comments
 (0)