Unverified Commit 1aa34248 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Optimize][Action]optimization actions (#3066)

parent 9baa6b08
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Assign Problem To Developer name: Assign Problem To Developer
on: on:
...@@ -7,7 +22,7 @@ on: ...@@ -7,7 +22,7 @@ on:
jobs: jobs:
assign-udf-problem-to-developer: assign-udf-problem-to-developer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: contains(github.event.issue.title, 'UDF') == true || contains(github.event.issue.title, 'udf') == true || contains(github.event.issue.title, 'Udf') == true if: contains(github.event.issue.labels.*.name, 'bug')
steps: steps:
- name: assign problem to developer of udf - name: assign problem to developer of udf
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
...@@ -16,14 +31,19 @@ jobs: ...@@ -16,14 +31,19 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
assignees: gaoyan1998,zackyoungh assignees: gaoyan1998,zackyoungh
- name: Assign developer Comment
uses: actions-cool/issues-helper@v1.7
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: | body: |
Hello @${{ github.event.issue.user.login }}, this issue is about UDF, so I assign it to @gaoyan1998 and @zackyoungh. If you have any questions, you can comment and reply. Hello, this issue is about UDF, so I assign it to @gaoyan1998 and @zackyoungh. If you have any questions, you can comment and reply.
你好 @${{ github.event.issue.user.login }}, 这个 issue 是关于 UDF 的,所以我把它分配给了 @gaoyan1998 和 @zackyoungh。如有任何问题,可以评论回复。 你好, 这个 issue 是关于 UDF 的,所以我把它分配给了 @gaoyan1998 和 @zackyoungh。如有任何问题,可以评论回复。
assign-k8s-problem-to-developer: assign-k8s-problem-to-developer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: contains(github.event.issue.title, 'K8S') == true || contains(github.event.issue.title, 'k8s') == true || contains(github.event.issue.title, 'K8s') == true || contains(github.event.issue.title, 'Kubernetes') == true || contains(github.event.issue.title, 'kubernetes') == true if: contains(github.event.issue.title, 'k8s') == true || contains(github.event.issue.title, 'kubernetes') == true || contains(github.event.issue.body, 'kubernetes') == true
steps: steps:
- name: assign problem to developer of k8s - name: assign problem to developer of k8s
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
...@@ -32,14 +52,19 @@ jobs: ...@@ -32,14 +52,19 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
assignees: gaoyan1998,zackyoungh assignees: gaoyan1998,zackyoungh
- name: Assign developer Comment
uses: actions-cool/issues-helper@v1.7
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: | body: |
Hello @${{ github.event.issue.user.login }}, this issue is about K8S, so I assign it to @gaoyan1998 and @zackyoungh. If you have any questions, you can comment and reply. Hello, this issue is about K8S, so I assign it to @gaoyan1998 and @zackyoungh. If you have any questions, you can comment and reply.
你好 @${{ github.event.issue.user.login }}, 这个 issue 是关于 K8S 的,所以我把它分配给了 @gaoyan1998 和 @zackyoungh。如有任何问题,可以评论回复。 你好, 这个 issue 是关于 K8S 的,所以我把它分配给了 @gaoyan1998 和 @zackyoungh。如有任何问题,可以评论回复。
assign-web-problem-to-developer: assign-web-problem-to-developer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: contains(github.event.issue.title, 'web') == true if: contains(github.event.issue.title, 'web') == true || contains(github.event.issue.body, 'web') == true
steps: steps:
- name: assign problem to developer of web - name: assign problem to developer of web
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
...@@ -48,14 +73,19 @@ jobs: ...@@ -48,14 +73,19 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
assignees: Zzm0809 assignees: Zzm0809
- name: Assign developer Comment
uses: actions-cool/issues-helper@v1.7
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: | body: |
Hello @${{ github.event.issue.user.login }}, this issue is about web, so I assign it to @Zzm0809. If you have any questions, you can comment and reply. Hello, this issue is about web, so I assign it to @Zzm0809. If you have any questions, you can comment and reply.
你好 @${{ github.event.issue.user.login }}, 这个 issue 是关于 web 的,所以我把它分配给了 @Zzm0809。如有任何问题,可以评论回复。 你好, 这个 issue 是关于 web 的,所以我把它分配给了 @Zzm0809。如有任何问题,可以评论回复。
assign-cdc-problem-to-developer: assign-cdc-problem-to-developer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: contains(github.event.issue.title, 'cdc') == true || contains(github.event.issue.title, 'CDCSOURCE') == true if: contains(github.event.issue.title, 'cdc') == true || contains(github.event.issue.title, 'cdcsource') == true || contains(github.event.issue.body, 'cdcsource') == true
steps: steps:
- name: assign problem to developer of cdc and cdcsource - name: assign problem to developer of cdc and cdcsource
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
...@@ -64,7 +94,12 @@ jobs: ...@@ -64,7 +94,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
assignees: aiwenmo assignees: aiwenmo
- name: Assign developer Comment
uses: actions-cool/issues-helper@v1.7
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: | body: |
Hello @${{ github.event.issue.user.login }}, this issue is about CDC, so I assign it to @aiwenmo. If you have any questions, you can comment and reply. Hello, this issue is about CDC/CDCSOURCE, so I assign it to @aiwenmo. If you have any questions, you can comment and reply.
你好 @${{ github.event.issue.user.login }}, 这个 issue 是关于 CDC/CDCSOURCE 的,所以我把它分配给了 @aiwenmo。如有任何问题,可以评论回复。 你好, 这个 issue 是关于 CDC/CDCSOURCE 的,所以我把它分配给了 @aiwenmo。如有任何问题,可以评论回复。
\ No newline at end of file \ No newline at end of file
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Code Review Robot name: Code Review Robot
permissions: permissions:
...@@ -9,11 +24,12 @@ on: ...@@ -9,11 +24,12 @@ on:
types: [opened, reopened, synchronize] types: [opened, reopened, synchronize]
jobs: jobs:
test: code-review:
# if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached # if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: anc95/ChatGPT-CodeReview@main - name: Code Review
uses: anc95/ChatGPT-CodeReview@main
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
name: "Build documentation" name: Build documentation
on: on:
schedule: schedule:
- cron: '0 0 * * *' # Deploy every day - cron: '0 0 * * *' # Deploy every day
......
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Format Code in fork repo name: Format Code in fork repo
......
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Issue Check Inactive name: Issue Check Inactive
# 定时触发:每月 1 号 UTC 0 点,即北京时间 8 点 # 定时触发:每月 1 号 UTC 0 点,即北京时间 8 点
...@@ -18,8 +33,17 @@ jobs: ...@@ -18,8 +33,17 @@ jobs:
# 为 30 天不活跃的 issues 增加 inactive label,更多参数请参考:https://github.com/actions-cool/issues-helper # 为 30 天不活跃的 issues 增加 inactive label,更多参数请参考:https://github.com/actions-cool/issues-helper
# Add the inactive label to all issues that have not been active for more than 30 days. More see: https://github.com/actions-cool/issues-helper # Add the inactive label to all issues that have not been active for more than 30 days. More see: https://github.com/actions-cool/issues-helper
inactive-day: 30 inactive-day: 30
inactive-label: 'inactive' inactive-label: 'Invalid'
body: | body: |
Hello @${{ github.event.issue.user.login }}, this issue has not been active for more than 30 days. This issue will be closed in 7 days if there is no response. If you have any questions, you can comment and reply. Hello, this issue has not been active for more than 30 days. This issue will be closed in 7 days if there is no response. If you have any questions, you can comment and reply.
你好, 这个 issue 30 天内没有活跃,7 天后将关闭,如需回复,可以评论回复。
你好 @${{ github.event.issue.user.login }}, 这个 issue 30 天内没有活跃,7 天后将关闭,如需回复,可以评论回复。 - name: Add inactive labels
\ No newline at end of file if: ${{ success() }} # 代表上边的 check-inactive 成功执行 才会执行本步骤
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'Invalid'
\ No newline at end of file
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Issue Close Require name: Issue Close Require
on: on:
...@@ -16,45 +31,57 @@ jobs: ...@@ -16,45 +31,57 @@ jobs:
steps: steps:
- name: need reproduce - name: need reproduce
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
if: >-
github.event.issue.number != 66 ||
github.event.issue.number != 884
with: with:
actions: 'close-issues' actions: 'close-issues'
labels: 'Need Reproduce' labels: 'Need Reproduce'
inactive-day: 10 inactive-day: 10
body: | body: |
Hi,@${{ github.event.issue.user.login }} Because this issue was marked as requiring detailed reproduction steps, no response was received for 10 days. The issue is now closed. If you have any questions, please comment and reply. Hi @${{ github.event.issue.user.login }}, Because this issue was marked as requiring detailed reproduction steps, no response was received for 10 days. The issue is now closed. If you have any questions, please comment and reply.
Hi,@${{ github.event.issue.user.login }} 由于该 issue 被标记为需要提供详细复现步骤,却 10 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 Hi @${{ github.event.issue.user.login }}, 由于该 issue 被标记为需要提供详细复现步骤,却 10 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
- name: duplicate issue - name: duplicate issue
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
if: >-
github.event.issue.number != 66 ||
github.event.issue.number != 884
with: with:
actions: 'close-issues' actions: 'close-issues'
labels: 'Duplicate' labels: 'Duplicate'
inactive-day: 3 inactive-day: 3
body: | body: |
Hi,@${{ github.event.issue.user.login }} Since this issue was marked as a duplicate issue, no response was received for 3 days. The issue is now closed. If you have any questions, please comment and reply Hi @${{ github.event.issue.user.login }}, Since this issue was marked as a duplicate issue, no response was received for 3 days. The issue is now closed. If you have any questions, please comment and reply
Hi,@${{ github.event.issue.user.login }} 由于该 issue 被标记为重复问题,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 Hi @${{ github.event.issue.user.login }}, 由于该 issue 被标记为重复问题,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
- name: Fixed issue - name: Fixed issue
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
if: >-
github.event.issue.number != 66 ||
github.event.issue.number != 884
with: with:
actions: 'close-issues' actions: 'close-issues'
labels: 'Fixed' labels: 'Fixed'
inactive-day: 2 inactive-day: 2
body: | body: |
Hi,@${{ github.event.issue.user.login }} Since this issue was marked as fixed, no response has been received for 2 days. The issue is now closed. If you have any questions, please comment and reply. Hi @${{ github.event.issue.user.login }}, Since this issue was marked as fixed, no response has been received for 2 days. The issue is now closed. If you have any questions, please comment and reply.
Hi,@${{ github.event.issue.user.login }} 由于该 issue 被标记为已修复,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 Hi @${{ github.event.issue.user.login }}, 由于该 issue 被标记为已修复,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
- name: More Information Required - name: More Information Required
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
if: >-
github.event.issue.number != 66 ||
github.event.issue.number != 884
with: with:
actions: 'close-issues' actions: 'close-issues'
labels: 'More Information Required' labels: 'More Information Required'
inactive-day: 7 inactive-day: 7
body: | body: |
Hi,@${{ github.event.issue.user.login }} Since this issue was marked as requiring more information, no response was received for 7 days. The issue is now closed. If you have any questions, please comment and reply. Hi @${{ github.event.issue.user.login }}, Since this issue was marked as requiring more information, no response was received for 7 days. The issue is now closed. If you have any questions, please comment and reply.
Hi,@${{ github.event.issue.user.login }} 由于该 issue 被标记为需要更多信息,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 Hi @${{ github.event.issue.user.login }}, 由于该 issue 被标记为需要更多信息,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
# #
name: issue-robot name: Translation Issue Robot
on: on:
issues: issues:
......
name: Issue Check # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Issue Reply Check
on: on:
issues: issues:
......
name: PR Auto Assign Reviewer
on:
pull_request_target:
types: [ opened ]
jobs:
add-reviewer:
runs-on: ubuntu-latest
steps:
- name: Add assignees
uses: actions-cool/issues-helper@main
with:
actions: 'add-assignees'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
assignees: ${{ github.event.pull_request.user.login }}
- name: Add reviewers
uses: actions-cool/pr-welcome@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
pr-emoji: '+1, rocket'
reviewers: 'zackyoungh,gaoyan1998,Zzm0809,aiwenmo'
review-creator: false
#
# - name: Add project
# if: "github.event_name == 'pull_request_target'"
# uses: alex-page/github-project-automation-plus@v0.8.1
# with:
# project: Dinky Roadmap
# column: Doing
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# action: 'add-project-column'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment