From f3829a1e8f51aabf873df88a4a0c30c503d7d649 Mon Sep 17 00:00:00 2001 From: Wu Tao Date: Tue, 25 Aug 2020 12:09:40 +0800 Subject: [PATCH] build(ci): add asf.yml file and github action for semantic commits (#586) --- .asf.yml | 41 ++++++++++++++++++++ .github/workflows/ci-pull-request-title.yaml | 15 +++++++ 2 files changed, 56 insertions(+) create mode 100644 .asf.yml create mode 100644 .github/workflows/ci-pull-request-title.yaml diff --git a/.asf.yml b/.asf.yml new file mode 100644 index 0000000..7b192ce --- /dev/null +++ b/.asf.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. +# + +github: + description: "Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store" + homepage: https://pegasus.apache.org/ + labels: + - pegasus + - key-value-store + - nosql + - distributed-database + features: + # Enable wiki for documentation + wiki: false + # Enable issues management + issues: true + # Enable projects for project management boards + projects: true + enabled_merge_buttons: + # enable squash button: + squash: true + # disable merge button: + merge: false + # disable rebase button: + rebase: false diff --git a/.github/workflows/ci-pull-request-title.yaml b/.github/workflows/ci-pull-request-title.yaml new file mode 100644 index 0000000..0a63bad --- /dev/null +++ b/.github/workflows/ci-pull-request-title.yaml @@ -0,0 +1,15 @@ +name: "Lint PR title" +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v1.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- GitLab