From 7737bbe2feec0e5ff85bef61f941c5caa6ca912c Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Fri, 17 Feb 2023 23:06:55 +0000 Subject: [PATCH] ci: add pull request triage and Kodiak merge workflow (#9109) * chore: enable kodiak for auto merges * ci: add pull request triage * ci: update kentaro-m/auto-assign-action This supports Node.js 16. --------- Co-authored-by: iCrawl --- .github/.kodiak.toml | 11 +++++++++++ .github/auto_assign.yml | 8 ++++++++ .github/labeler.yml | 15 +++++++++++++++ .github/workflows/pr-triage.yml | 17 +++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 .github/.kodiak.toml create mode 100644 .github/auto_assign.yml create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pr-triage.yml diff --git a/.github/.kodiak.toml b/.github/.kodiak.toml new file mode 100644 index 000000000..f9270971c --- /dev/null +++ b/.github/.kodiak.toml @@ -0,0 +1,11 @@ +version = 1 + +[merge] +require_automerge_label = false +blocking_labels = ['blocked'] +method = 'squash' + +[merge.message] +title = 'pull_request_title' +strip_html_comments = true +include_coauthors = true diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 000000000..e53c75f6b --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,8 @@ +addReviewers: true +reviewers: + - iCrawl + - SpaceEEC + - kyranet + - vladfrangu +numberOfReviewers: 0 +runOnDraft: true diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..b2ed135fc --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,15 @@ +apps:guide: + - apps/guide/* + - apps/guide/**/* +apps:website: + - apps/website/* + - apps/website/**/* +packages:discord.js: + - scripts/* + - scripts/**/* + - src/* + - src/**/* + - test/* + - test/**/* + - typings/* + - typings/**/* diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml new file mode 100644 index 000000000..8a0c1dea6 --- /dev/null +++ b/.github/workflows/pr-triage.yml @@ -0,0 +1,17 @@ +name: 'PR Triage' +on: + pull_request_target: +jobs: + pr-triage: + name: PR Triage + runs-on: ubuntu-latest + steps: + - name: Automatically label PR + uses: actions/labeler@v4 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + sync-labels: true + + - name: Automatically assign reviewers + if: github.event.action == 'opened' + uses: kentaro-m/auto-assign-action@v1.2.4