This is an automated email from the ASF dual-hosted git repository.
lingmiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new e905dd8 [Community] Add an github action to auto add 'approved' label
(#6239)
e905dd8 is described below
commit e905dd84c8d6066173ae9cdf071095ea839f1e56
Author: Mingyu Chen <[email protected]>
AuthorDate: Wed Jul 14 21:12:42 2021 +0800
[Community] Add an github action to auto add 'approved' label (#6239)
1. If any committer APPROVE a PR, the label 'approved' will be added.
2. If any other reviewed APPROVE a PR, the label 'reviewed' will be added.
---
.github/workflows/approve-label.yml | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/.github/workflows/approve-label.yml
b/.github/workflows/approve-label.yml
new file mode 100644
index 0000000..dfde7db
--- /dev/null
+++ b/.github/workflows/approve-label.yml
@@ -0,0 +1,29 @@
+name: Label when approved
+on: pull_request_review
+
+jobs:
+
+ label-when-approved:
+ name: "Label when approved"
+ runs-on: ubuntu-latest
+ outputs:
+ isApprovedByCommiters: ${{
steps.label-when-approved-by-commiters.outputs.isApproved }}
+ isApprovedByAnyone: ${{
steps.label-when-approved-by-anyone.outputs.isApproved }}
+ steps:
+ - name: Label when approved by commiters
+ uses: TobKed/[email protected]
+ id: label-when-approved-by-commiters
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ label: 'approved'
+ require_committers_approval: 'true'
+ remove_label_when_approval_missing: 'true'
+ comment: 'PR approved by at least one committer and no changes
requested.'
+ - name: Label when approved by anyone
+ uses: TobKed/[email protected]
+ id: label-when-approved-by-anyone
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ label: 'reviewed'
+ comment: 'PR approved by anyone and no changes requested.'
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]