From 70331edd5c0a8e1973c3393f81d7be6f029eb34d Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 11:31:08 +0800 Subject: [PATCH 01/13] test auto actions --- .github/auto-label.json | 3 +-- .github/workflows/auto-label.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/auto-label.json b/.github/auto-label.json index d00f6973330a..fec31dd365aa 100644 --- a/.github/auto-label.json +++ b/.github/auto-label.json @@ -1,6 +1,5 @@ { "rules": { "translation/welcome": ["*.md", "*.yml", "*.yaml", "*.json", "media/", "scripts/"], - "status/PTAL": ["*.md", "*.yml", "*.yaml", "*.json", "media/", "scripts/"] - } + "status/PTAL": ["*.*"] } \ No newline at end of file diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 1a498379833e..4c4df1f6f32a 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -3,7 +3,7 @@ on: pull_request: branches: - master - types: [opened] + types: [opened, synchronize] jobs: auto-label: From 983a8c7e825608ceaea957c2b6473b9815443ace Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:13:15 +0800 Subject: [PATCH 02/13] Update auto-label.yml --- .github/workflows/auto-label.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 4c4df1f6f32a..7dcc09fdb5dd 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -3,7 +3,6 @@ on: pull_request: branches: - master - types: [opened, synchronize] jobs: auto-label: From d193900f2bd90efcb22c75b753a2c6d8bd37a6e3 Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:16:27 +0800 Subject: [PATCH 03/13] Update auto-label.yml --- .github/workflows/auto-label.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 7dcc09fdb5dd..4e4f17334abe 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -3,6 +3,7 @@ on: pull_request: branches: - master + typed: [opened, labeled] jobs: auto-label: From 4a661d5d532cd642d2ffa0fb223b7c01ff7b8407 Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:17:01 +0800 Subject: [PATCH 04/13] Update auto-label.yml --- .github/workflows/auto-label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 4e4f17334abe..654f618d0d53 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -3,7 +3,7 @@ on: pull_request: branches: - master - typed: [opened, labeled] + types: [opened, labeled] jobs: auto-label: From b5b4ebe919c36a0a1b706c96d49ea7c67d32a068 Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:18:49 +0800 Subject: [PATCH 05/13] comment out auto-label.yaml --- .github/workflows/auto-label.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 654f618d0d53..a4d51662a43d 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -1,16 +1,16 @@ -name: Auto Label -on: - pull_request: - branches: - - master - types: [opened, labeled] +# name: Auto Label +# on: +# pull_request: +# branches: +# - master +# types: [opened, labeled] -jobs: - auto-label: - name: Auto Label - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: banyan/auto-label@1.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file +# jobs: +# auto-label: +# name: Auto Label +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - uses: banyan/auto-label@1.2 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 570042e88cfbe932d32084951bf845abd5129404 Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:19:30 +0800 Subject: [PATCH 06/13] update --- .github/workflows/auto-assign.yml | 2 +- .github/workflows/auto-label.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index e5a730c580fa..5c621535f08c 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -3,7 +3,7 @@ on: pull_request: branches: - master - types: [opened] + types: [opened, labeled] jobs: assign_reviewer: diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index a4d51662a43d..6ed379b00be7 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -3,7 +3,7 @@ # pull_request: # branches: # - master -# types: [opened, labeled] +# types: [opened] # jobs: # auto-label: From 9df35e44850a6d8906e10085c1950fb9d004d1ec Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:36:14 +0800 Subject: [PATCH 07/13] Update auto-assign.yml --- .github/workflows/auto-assign.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 5c621535f08c..fa7df0a50ea8 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -4,6 +4,8 @@ on: branches: - master types: [opened, labeled] +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: assign_reviewer: @@ -11,5 +13,4 @@ jobs: steps: - uses: shufo/auto-assign-reviewer-by-files@v1.0.0 with: - config: '.github/assign-by-files.yml' - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + config: '.github/assign-by-files.yml' \ No newline at end of file From 3133ca38707a7219759c103aa3760da74b6fbf2c Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:37:17 +0800 Subject: [PATCH 08/13] Update auto-assign.yml --- .github/workflows/auto-assign.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index fa7df0a50ea8..5c621535f08c 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -4,8 +4,6 @@ on: branches: - master types: [opened, labeled] -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: assign_reviewer: @@ -13,4 +11,5 @@ jobs: steps: - uses: shufo/auto-assign-reviewer-by-files@v1.0.0 with: - config: '.github/assign-by-files.yml' \ No newline at end of file + config: '.github/assign-by-files.yml' + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From c1c337f34e1bc8d1f2ca23afdaa2bdcdbac5a967 Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:39:30 +0800 Subject: [PATCH 09/13] fix --- .github/assign-by-files.yml | 10 +++++----- .github/auto-label.json | 3 ++- .github/workflows/auto-label.yml | 30 +++++++++++++++--------------- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/assign-by-files.yml b/.github/assign-by-files.yml index 598bfa2fa3eb..f894461a95eb 100644 --- a/.github/assign-by-files.yml +++ b/.github/assign-by-files.yml @@ -1,4 +1,9 @@ --- +# Changing all md files should request a language review in case of format failures. +# TomShawn is the repo administrator. +'*.yml': + - TomShawn + # you can use glob pattern # You can set multiple reviewers @@ -31,8 +36,3 @@ # 'ticdc/': # - WangXiangUSTC - -# Changing all md files should request a language review in case of format failures. -# TomShawn is the repo administrator. -'*.*': - - TomShawn diff --git a/.github/auto-label.json b/.github/auto-label.json index fec31dd365aa..375deaf57559 100644 --- a/.github/auto-label.json +++ b/.github/auto-label.json @@ -2,4 +2,5 @@ "rules": { "translation/welcome": ["*.md", "*.yml", "*.yaml", "*.json", "media/", "scripts/"], "status/PTAL": ["*.*"] -} \ No newline at end of file + } +} diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 6ed379b00be7..1a498379833e 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -1,16 +1,16 @@ -# name: Auto Label -# on: -# pull_request: -# branches: -# - master -# types: [opened] +name: Auto Label +on: + pull_request: + branches: + - master + types: [opened] -# jobs: -# auto-label: -# name: Auto Label -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: banyan/auto-label@1.2 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file +jobs: + auto-label: + name: Auto Label + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: banyan/auto-label@1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 72334b8626161ec52650fd83971306a1785fe00a Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:39:46 +0800 Subject: [PATCH 10/13] Update auto-label.yml --- .github/workflows/auto-label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 1a498379833e..654f618d0d53 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -3,7 +3,7 @@ on: pull_request: branches: - master - types: [opened] + types: [opened, labeled] jobs: auto-label: From 2e3b26d8668bc03a017f9e7155ec1bbabfac7c91 Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:41:57 +0800 Subject: [PATCH 11/13] change back --- .github/assign-by-files.yml | 2 +- .github/workflows/auto-assign.yml | 2 +- .github/workflows/auto-label.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/assign-by-files.yml b/.github/assign-by-files.yml index f894461a95eb..4712c4faf1c6 100644 --- a/.github/assign-by-files.yml +++ b/.github/assign-by-files.yml @@ -1,7 +1,7 @@ --- # Changing all md files should request a language review in case of format failures. # TomShawn is the repo administrator. -'*.yml': +'*.*': - TomShawn # you can use glob pattern diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 5c621535f08c..e5a730c580fa 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -3,7 +3,7 @@ on: pull_request: branches: - master - types: [opened, labeled] + types: [opened] jobs: assign_reviewer: diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 654f618d0d53..1a498379833e 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -3,7 +3,7 @@ on: pull_request: branches: - master - types: [opened, labeled] + types: [opened] jobs: auto-label: From 5fadb733021e6b8db1ab66723254e93d7ba23917 Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 15 Jun 2020 13:45:09 +0800 Subject: [PATCH 12/13] add last line --- .github/workflows/auto-assign.yml | 2 +- .github/workflows/auto-label.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index e5a730c580fa..80d4be1fc03d 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -12,4 +12,4 @@ jobs: - uses: shufo/auto-assign-reviewer-by-files@v1.0.0 with: config: '.github/assign-by-files.yml' - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 1a498379833e..cd5071acde53 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -13,4 +13,4 @@ jobs: - uses: actions/checkout@v2 - uses: banyan/auto-label@1.2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 187c03c6222be1341ef0b0890f8773e8d46c7b73 Mon Sep 17 00:00:00 2001 From: yikeke Date: Tue, 23 Jun 2020 12:22:20 +0800 Subject: [PATCH 13/13] update auto-assign action to latest version --- .github/assign-by-files.yml | 66 +++++++++++++++++-------------- .github/auto-label.json | 2 +- .github/workflows/auto-assign.yml | 2 +- 3 files changed, 38 insertions(+), 32 deletions(-) diff --git a/.github/assign-by-files.yml b/.github/assign-by-files.yml index 4712c4faf1c6..9088a70263f7 100644 --- a/.github/assign-by-files.yml +++ b/.github/assign-by-files.yml @@ -1,38 +1,44 @@ --- # Changing all md files should request a language review in case of format failures. # TomShawn is the repo administrator. -'*.*': +'**/*': - TomShawn # you can use glob pattern # You can set multiple reviewers -# '.github/': -# - yikeke -# - ran-huang - -# 'tiflash/': -# - zanmato1984 -# - kissmydb -# - yikeke - -# 'tiup/': -# - lonng -# - lucklove -# - kissmydb -# - yikeke - -# 'sql-statements/': -# - bb7133 - -# 'releases/': -# - scsldb - -# 'dashboard/': -# - breeswish - -# 'config-templates/': -# - kissmydb - -# 'ticdc/': -# - WangXiangUSTC +'.github/': + - yikeke + - ran-huang + +'tiflash/': + - ilovesoup + - zanmato1984 + - kissmydb + - yikeke + +'tiup/': + - lonng + - lucklove + - kissmydb + - yikeke + +'sql-statements/': + - bb7133 + - zimulala + +'releases/': + - scsldb + - uglyengineer + +'dashboard/': + - breeswish + - hundundm + +'config-templates/': + - kissmydb + - superlzs0476 + +'ticdc/': + - WangXiangUSTC + - 3pointer diff --git a/.github/auto-label.json b/.github/auto-label.json index 375deaf57559..09f610635a02 100644 --- a/.github/auto-label.json +++ b/.github/auto-label.json @@ -1,6 +1,6 @@ { "rules": { "translation/welcome": ["*.md", "*.yml", "*.yaml", "*.json", "media/", "scripts/"], - "status/PTAL": ["*.*"] + "status/PTAL": ["*.md", "*.yml", "*.yaml", "*.json", "media/", "scripts/"] } } diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 80d4be1fc03d..b4108165138e 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -9,7 +9,7 @@ jobs: assign_reviewer: runs-on: ubuntu-latest steps: - - uses: shufo/auto-assign-reviewer-by-files@v1.0.0 + - uses: shufo/auto-assign-reviewer-by-files@v1.1.1 with: config: '.github/assign-by-files.yml' token: ${{ secrets.GITHUB_TOKEN }}