From 0849bf190c904ae3bbf7890103bc59c7f4e2da7c Mon Sep 17 00:00:00 2001 From: Jules Lasne Date: Sun, 22 Nov 2020 22:44:43 +0100 Subject: [PATCH] Added title checker (#1472) --- .github/pr-title-checker-config.json | 11 +++++++++++ .github/workflows/pr-title-cheker.yml | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/pr-title-checker-config.json create mode 100644 .github/workflows/pr-title-cheker.yml diff --git a/.github/pr-title-checker-config.json b/.github/pr-title-checker-config.json new file mode 100644 index 00000000..e8e75bd5 --- /dev/null +++ b/.github/pr-title-checker-config.json @@ -0,0 +1,11 @@ +{ + "LABEL": { + "name": "Title needs formatting.", + "color": "EEEEEE" + }, + "CHECKS": { + "prefixes": ["traduction de", "Traduction de", "Fix fuzzies in", "Fix fuzzies dans"], + "regexp": "\\.po", + "ignoreLabels": ["meta"] + } +} diff --git a/.github/workflows/pr-title-cheker.yml b/.github/workflows/pr-title-cheker.yml new file mode 100644 index 00000000..385f5fc6 --- /dev/null +++ b/.github/workflows/pr-title-cheker.yml @@ -0,0 +1,17 @@ +name: "PR Title Checker" +on: + pull_request: + types: + - opened + - edited + - synchronize + - labeled + - unlabeled + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: thehanimo/pr-title-checker@v1.2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}