From b54fb9d8ebef91e5082bb06f7baa22f021a7f8a9 Mon Sep 17 00:00:00 2001 From: Jiashuo Date: Fri, 7 Jan 2022 10:44:08 +0800 Subject: [PATCH] build: require add issue reference in description using github action (#1010) --- .github/workflows/issue_ref.yaml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/issue_ref.yaml diff --git a/.github/workflows/issue_ref.yaml b/.github/workflows/issue_ref.yaml new file mode 100644 index 0000000000..eeab2718b4 --- /dev/null +++ b/.github/workflows/issue_ref.yaml @@ -0,0 +1,37 @@ +# +# 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 + +on: + pull_request: + types: ['opened', 'edited', 'reopened', 'synchronize'] + +jobs: + title: + name: Issue check + runs-on: ubuntu-latest + + steps: + - name: Check for ticket + uses: neofinancial/ticket-check-action@v1.3.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ticketPrefix: '#' + bodyURLRegex: 'http(s?):\/\/(github.com)(\/apache)(\/incubator-pegasus)(\/issues)\/\d+'