From 3beed837f74b24106e0e09c7e146934645dba3df Mon Sep 17 00:00:00 2001
From: "deepin-community-ci-bot[bot]"
 <111498200+deepin-community-ci-bot[bot]@users.noreply.github.com>
Date: Wed, 15 Feb 2023 04:54:53 +0000
Subject: [PATCH] Initial commit

---
 .github/workflows/backup-to-gitlab.yml | 12 +++++++++
 .github/workflows/call-auto-tag.yml    | 17 ++++++++++++
 .github/workflows/call-build-deb.yml   | 17 ++++++++++++
 .github/workflows/call-build-tag.yml   | 14 ++++++++++
 .github/workflows/call-chatOps.yml     | 10 +++++++
 .obs/workflows.yml                     | 37 ++++++++++++++++++++++++++
 README.md                              |  1 +
 debian/changelog                       |  5 ++++
 debian/compat                          |  1 +
 debian/control                         | 15 +++++++++++
 debian/copyright                       | 22 +++++++++++++++
 debian/rules                           |  4 +++
 debian/source/format                   |  1 +
 13 files changed, 156 insertions(+)
 create mode 100644 .github/workflows/backup-to-gitlab.yml
 create mode 100644 .github/workflows/call-auto-tag.yml
 create mode 100644 .github/workflows/call-build-deb.yml
 create mode 100644 .github/workflows/call-build-tag.yml
 create mode 100644 .github/workflows/call-chatOps.yml
 create mode 100644 .obs/workflows.yml
 create mode 100644 README.md
 create mode 100644 debian/changelog
 create mode 100644 debian/compat
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100755 debian/rules
 create mode 100644 debian/source/format

diff --git a/.github/workflows/backup-to-gitlab.yml b/.github/workflows/backup-to-gitlab.yml
new file mode 100644
index 0000000..8dfd7b3
--- /dev/null
+++ b/.github/workflows/backup-to-gitlab.yml
@@ -0,0 +1,12 @@
+name: backup to gitlab
+on: [push]
+
+concurrency:
+  group: ${{ github.workflow }}
+  cancel-in-progress: true
+
+jobs:
+  backup-to-gitlabwh:
+    uses: deepin-community/.github/.github/workflows/backup-to-gitlabwh.yml@master
+    secrets:
+      BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
diff --git a/.github/workflows/call-auto-tag.yml b/.github/workflows/call-auto-tag.yml
new file mode 100644
index 0000000..3f9b471
--- /dev/null
+++ b/.github/workflows/call-auto-tag.yml
@@ -0,0 +1,17 @@
+name: auto tag
+
+on:
+  pull_request_target:
+    types: [opened, synchronize, closed]
+    paths:
+      - "debian/changelog"
+
+concurrency:
+  group: ${{ github.workflow }}-pull/${{ github.event.number }}
+  cancel-in-progress: true
+
+jobs:
+  auto_tag:
+    uses: deepin-community/.github/.github/workflows/auto-tag.yml@master
+    secrets:
+      APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
diff --git a/.github/workflows/call-build-deb.yml b/.github/workflows/call-build-deb.yml
new file mode 100644
index 0000000..dcbe2ab
--- /dev/null
+++ b/.github/workflows/call-build-deb.yml
@@ -0,0 +1,17 @@
+name: Call build-deb
+on:
+  pull_request_target:
+    paths-ignore:
+      - ".github/workflows/**"
+    types: [ opened, closed, synchronize ]
+
+concurrency:
+  group: ${{ github.workflow }}-pull/${{ github.event.number }}
+  cancel-in-progress: true
+
+jobs:
+  check_job:
+    if: github.event.action != 'closed' || github.event.pull_request.merged
+    uses: deepin-community/.github/.github/workflows/build-deb.yml@master
+    secrets:
+      BridgeToken: ${{ secrets.BridgeToken }}
diff --git a/.github/workflows/call-build-tag.yml b/.github/workflows/call-build-tag.yml
new file mode 100644
index 0000000..d0a591a
--- /dev/null
+++ b/.github/workflows/call-build-tag.yml
@@ -0,0 +1,14 @@
+name: tag build
+on:
+  push:
+    tags: "*"
+
+concurrency:
+  group: ${{ github.workflow }}
+  cancel-in-progress: true
+
+jobs:
+  build:
+    uses: deepin-community/.github/.github/workflows/build-tag.yml@master
+    secrets:
+      BridgeToken: ${{ secrets.BridgeToken }}
diff --git a/.github/workflows/call-chatOps.yml b/.github/workflows/call-chatOps.yml
new file mode 100644
index 0000000..ad09472
--- /dev/null
+++ b/.github/workflows/call-chatOps.yml
@@ -0,0 +1,10 @@
+name: chatOps
+on:
+  issue_comment:
+    types: [created]
+
+jobs:
+  chatopt:
+    uses: deepin-community/.github/.github/workflows/chatOps.yml@master
+    secrets:
+      APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
diff --git a/.obs/workflows.yml b/.obs/workflows.yml
new file mode 100644
index 0000000..ef8f066
--- /dev/null
+++ b/.obs/workflows.yml
@@ -0,0 +1,37 @@
+test_build:
+  steps:
+    - link_package:
+        source_project: deepin:Develop:community
+        source_package: %{SCM_REPOSITORY_NAME} 
+        target_project: deepin:CI
+
+    - configure_repositories:
+        project: deepin:CI
+        repositories:
+          - name: deepin_develop
+            paths:
+              - target_project: deepin:CI
+                target_repository: deepin_develop
+            architectures:
+              - x86_64
+              - aarch64
+
+  filters:
+    event: pull_request
+
+tag_build:
+  steps:
+    - branch_package:
+        source_project: deepin:Develop:community
+        source_package: %{SCM_REPOSITORY_NAME} 
+        target_project: deepin:Unstable:community
+  filters:
+    event: tag_push
+
+commit_build:
+  steps:
+    - trigger_services:
+        project: deepin:Develop:community
+        package: %{SCM_REPOSITORY_NAME}
+  filters:
+    event: push
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9ebb840
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# template-repository
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..bad88e2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+template-repository (1.0-1) unstable; urgency=medium
+
+  * Initial release
+
+ -- Tsic404 <liuheng@deepin.org>  Sat, 28 Jan 2023 13:46:49 +0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cb7c4a0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,15 @@
+Source: template-repository
+Section: unknown
+Priority: optional
+Maintainer: Tsic404 <liuheng@deepin.org>
+Build-Depends: debhelper (>= 11)
+Standards-Version: 4.1.3
+Homepage: https://github.com/deepin-community/template-repository
+#Vcs-Browser: https://salsa.debian.org/debian/deepin-community-template-repository
+#Vcs-Git: https://salsa.debian.org/debian/deepin-community-template-repository.git
+
+Package: template-repository
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f5c805e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: template-repository
+Source: https://github.com/deepin-community/template-repository
+
+Files: *
+Copyright: 2023 Tsic404 <liuheng@deepin.org>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)