[前][次][番号順一覧][スレッド一覧]

ruby-changes:73536

From: Takashi <ko1@a...>
Date: Tue, 13 Sep 2022 10:18:48 +0900 (JST)
Subject: [ruby-changes:73536] 9179f666fb (master): Configure auto_request_review for YJIT team

https://git.ruby-lang.org/ruby.git/commit/?id=9179f666fb

From 9179f666fbabfe244801060d76bb95de3831c217 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Tue, 13 Sep 2022 10:17:17 +0900
Subject: Configure auto_request_review for YJIT team

We need to use pull_request_target instead of pull_request to use secrets.
pull_request_target seems to be executed from the default branch, so
pushing this to master to test this.
---
 .github/auto_request_review.yml           |  9 +++++++++
 .github/workflows/auto_request_review.yml | 14 ++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 .github/auto_request_review.yml
 create mode 100644 .github/workflows/auto_request_review.yml

diff --git a/.github/auto_request_review.yml b/.github/auto_request_review.yml
new file mode 100644
index 0000000000..57fc5566d1
--- /dev/null
+++ b/.github/auto_request_review.yml
@@ -0,0 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/.github/auto_request_review.yml#L1
+files:
+  'yjit*': [team:yjit]
+  'yjit/*': [team:yjit]
+  'doc/yjit/*': [team:yjit]
+  'bootstraptest/test_yjit*': [team:yjit]
+  'test/ruby/test_yjit*': [team:yjit]
+  '.github/workflows/yjit*': [team:yjit]
+options:
+  ignore_draft: true
diff --git a/.github/workflows/auto_request_review.yml b/.github/workflows/auto_request_review.yml
new file mode 100644
index 0000000000..0fc3e9d852
--- /dev/null
+++ b/.github/workflows/auto_request_review.yml
@@ -0,0 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/auto_request_review.yml#L1
+name: Auto Request Review
+on:
+  pull_request_target:
+    types: [opened, synchronized, ready_for_review, reopened]
+jobs:
+  auto-request-review:
+    name: Auto Request Review
+    runs-on: ubuntu-latest
+    steps:
+      - name: Request review based on files changes and/or groups the author belongs to
+        uses: necojackarc/auto-request-review@e08cdffa277d50854744de3f76230260e61c67f4 # v0.7.0, checking sha
+        with:
+          # scope: repo:status
+          token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]