From 681865ca95ecd2a339a8c8b750c61854a31b3a78 Mon Sep 17 00:00:00 2001 From: Jiawei Zhao Date: Sat, 29 Aug 2026 11:32:22 +0800 Subject: [PATCH] ci: add issue welcome action Signed-off-by: Jiawei Zhao --- .github/workflows/issue-welcome.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/issue-welcome.yml diff --git a/.github/workflows/issue-welcome.yml b/.github/workflows/issue-welcome.yml new file mode 100644 index 0000000000..5a2d3077a6 --- /dev/null +++ b/.github/workflows/issue-welcome.yml @@ -0,0 +1,41 @@ +# 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. + +on: + issues: + types: + - opened + +permissions: + issues: write + +# https://github.com/marketplace/actions/create-or-update-comment + +jobs: + welcome: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0 + with: + issue-number: ${{ github.event.issue.number }} + body: | + 👋 Thanks for opening this issue! + + Use one of these commands: + + - `take` : Assign this issue to yourself. + - `untake` : Unassign yourself from this issue.