This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit a86c5596ee4e65ea624446c6adaa048b4a30be82
Author: Mr.An <[email protected]>
AuthorDate: Wed Jun 15 12:28:23 2022 +0800

    add asf license and env.example
---
 .env.example                            | 24 ++++++++++++++++++++++++
 plugins/gitee/api/connection.go         | 17 +++++++++++++++++
 plugins/gitee/gitee.go                  | 17 +++++++++++++++++
 plugins/gitee/impl/impl.go              | 17 +++++++++++++++++
 plugins/gitee/tasks/commit_extractor.go | 17 +++++++++++++++++
 5 files changed, 92 insertions(+)

diff --git a/.env.example b/.env.example
index 80dc9e36..c5254985 100644
--- a/.env.example
+++ b/.env.example
@@ -48,6 +48,30 @@ GITLAB_AUTH=
 GITLAB_PROXY=
 GITLAB_API_REQUESTS_PER_HOUR=
 
+########################
+# Gitee configuration #
+########################
+GITEE_ENDPOINT="https://gitee.com/api/v5/";
+GITEE_AUTH=
+GITEE_PROXY=
+GITEE_API_REQUESTS_PER_HOUR=
+# GITEE_PR_TYPE=type/(.*)$ the program will extract the value in (), in this 
example, you will get "refactor" from "type/refactor"
+GITEE_PR_TYPE="type/(.*)$"
+# GITEE_PR_COMPONENT=component/(.*)$ the program will extract the value in (), 
in this example, you will get "plugins" from "component/plugins"
+GITEE_PR_COMPONENT="component/(.*)$"
+# GITEE_ISSUE_SEVERITY=severity/(.*)$ the program will extract the value in 
(), in this example, you will get "refactor" from "type/refactor"
+GITEE_ISSUE_SEVERITY="severity/(.*)$"
+# GITEE_ISSUE_COMPONENT=component/(.*)$ the program will extract the value in 
(), in this example, you will get "refactor" from "type/refactor"
+GITEE_ISSUE_COMPONENT="component/(.*)$"
+GITEE_ISSUE_PRIORITY="^(highest|high|medium|low)$"
+GITEE_ISSUE_TYPE_BUG="^(bug|failure|error)$"
+GITEE_ISSUE_TYPE_REQUIREMENT="^(feat|feature|proposal|requirement)$"
+GITEE_ISSUE_TYPE_INCIDENT=""
+# 
GITEE_PR_BODY_CLOSE_PATTERN='(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[\s]*.*(((and
 )?(#|https:\/\/github.com\/%s\/%s\/issues\/)\d+[ ]*)+)'
+GITEE_PR_BODY_CLOSE_PATTERN="(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[\\s]*.*(((and
 )?(#|https:\\/\\/github.com\\/%s\\/%s\\/issues\\/)\\d+[ ]*)+)"
+# GITEE_PR_TITLE_PATTERN='.*\(#(\d+)\)'
+GITEE_PR_TITLE_PATTERN=".*\\(#(\\d+)\\)"
+
 ##########################
 # Jira <> Gitlab mapping #
 ##########################
diff --git a/plugins/gitee/api/connection.go b/plugins/gitee/api/connection.go
index 98884b8a..7c912eb9 100644
--- a/plugins/gitee/api/connection.go
+++ b/plugins/gitee/api/connection.go
@@ -1,3 +1,20 @@
+/*
+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.
+*/
+
 package api
 
 import (
diff --git a/plugins/gitee/gitee.go b/plugins/gitee/gitee.go
index e4faa69f..c6f19cf9 100644
--- a/plugins/gitee/gitee.go
+++ b/plugins/gitee/gitee.go
@@ -1,3 +1,20 @@
+/*
+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.
+*/
+
 package main
 
 import (
diff --git a/plugins/gitee/impl/impl.go b/plugins/gitee/impl/impl.go
index b452a44d..c1e4d799 100644
--- a/plugins/gitee/impl/impl.go
+++ b/plugins/gitee/impl/impl.go
@@ -1,3 +1,20 @@
+/*
+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.
+*/
+
 package impl
 
 import (
diff --git a/plugins/gitee/tasks/commit_extractor.go 
b/plugins/gitee/tasks/commit_extractor.go
index 484a6230..3f280af5 100644
--- a/plugins/gitee/tasks/commit_extractor.go
+++ b/plugins/gitee/tasks/commit_extractor.go
@@ -1,3 +1,20 @@
+/*
+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.
+*/
+
 package tasks
 
 import (

Reply via email to