From 58a05522b2e72e6d128f1ee4d9dc5b2cec3fb18b Mon Sep 17 00:00:00 2001 From: yuluo-yx Date: Sat, 14 Dec 2024 14:04:54 +0800 Subject: [PATCH] infra: add .github files Signed-off-by: yuluo-yx --- .github/ISSUE_TEMPLATE/config.yml | 22 ++++++++ .github/pull_request_template.md | 3 + .github/workflows/license.yaml | 16 ++++++ .licenserc.yaml | 92 +++++++++++++++++++++++++++++++ 4 files changed, 133 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/license.yaml create mode 100644 .licenserc.yaml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..a237b2d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,22 @@ +# +# 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. +# + +blank_issues_enabled: false +contact_links: + - name: Question & FAQ & Proposal + url: https://github.com/alibaba/spring-ai-alibaba/issues/new/choose + about: Please submit the issue or discussion to the alibaba/spring-ai-alibaba repository. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..99ce8bd --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,3 @@ +## What does this PR do? + +> Add DashScope LLMs chat example diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml new file mode 100644 index 0000000..f1d7d2b --- /dev/null +++ b/.github/workflows/license.yaml @@ -0,0 +1,16 @@ +#name: License Check +# +#on: [push, pull_request, workflow_dispatch] +# +#permissions: +# contents: read +# +#jobs: +# license: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Check License +# uses: apache/skywalking-eyes@main +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 0000000..76fb07e --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,92 @@ +header: + license: + spdx-id: Apache-2.0 + content: | + 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. + + paths-ignore: + - '**/*.versionsBackup' + - '**/.idea/' + - '**/*.iml' + - '**/.settings/*' + - '**/.classpath' + - '**/.project' + - '**/target/**' + - '**/generated/**' + - '**/*.log' + - '**/codestyle/*' + - '**/resources/META-INF/**' + - '**/resources/mockito-extensions/**' + - '**/*.proto' + - '**/*.cache' + - '**/*.txt' + - '**/*.load' + - '**/*.flex' + - '**/*.fc' + - '**/*.javascript' + - '**/*.properties' + - '**/*.thrift' + - '**/*.sh' + - '**/*.bat' + - '**/*.md' + - '**/*.svg' + - '**/*.png' + - '**/*.json' + - '**/*.conf' + - '**/*.ftl' + - '**/*.tpl' + - '**/*.factories' + - '**/*.handlers' + - '**/*.schemas' + - '**/*.nojekyll' + - '.git/' + - '.github/**' + - '**/.gitignore' + - '**/.helmignore' + - '.repository/' + - 'compiler/**' + - '.gitmodules' + - '**/.mvn/**' + - 'mvnw' + - 'mvnw.cmd' + - 'LICENSE' + - 'NOTICE' + - 'CNAME' + - 'Jenkinsfile' + - '**/vendor/**' + - '**/EmbeddedZooKeeper.java' + - 'test/scripts/case-versions.conf.*' + - '**/*.md' + - '**/*.MD' + - '**/src/main/resources/certs/**' + - '**/dubbo-samples-tengine/dubbo-samples-tengine-provider/src/main/resources/docker/sources.list' + - '**/.run/**' + - '**/*.js' + - '**/Dockerfile*' + - '**/*.xml' + - '**/*.properties' + - '**/*.yml' + - '**/*.yaml' + - 'online_bontique_demo/frontend/src/main/resources/static/styles/bootstrap.min.css' + + + comment: on-failure + + license-location-threshold: 130 + +dependency: + files: + - pom.xml