diff --git a/.github/ISSUE_TEMPLATE/oss_ip.md b/.github/ISSUE_TEMPLATE/oss_ip.md new file mode 100644 index 00000000..26b2bdb9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/oss_ip.md @@ -0,0 +1,35 @@ +--- +name: 开源软件知识产权-SoftwareName +about: 主动联系开源软件供应商,获得商标合理合规的使用许可,并确认License合规 +title: '开源软件知识产权-SoftwareName' +labels: '' +assignees: '' + +--- + +**概要** + +SoftwareName 商标联系事宜 + +**状态** + +- [ ] 已发邮件/工单 +- [ ] 总联系不上 +- [ ] 沟通中 +- [ ] 沟通中断(需重新发起) +- [ ] 需申请 Partner +- [ ] 对方拒绝授权 +- [ ] 获得书面同意 +- [ ] 获得授权书 +- [ ] 关系维护(条款变更/关怀/其他) + +**跟进** + +- [ ] 联系人[归档](https://www.hubspot.com/) +- [ ] 结果[归档](https://github.com/websoft9op/vendor/tree/main/list) +- [ ] 修正[知识库](https://websoft9.yuque.com/inc/legal/hl14s6) +- [ ] 通知商品管理员 + +**备注** + +其他重要的信息 diff --git a/.github/ISSUE_TEMPLATE/outsourcer.md b/.github/ISSUE_TEMPLATE/outsourcer.md new file mode 100644 index 00000000..e8fe90e4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/outsourcer.md @@ -0,0 +1,43 @@ +--- +name: 外包商-SoftwareName +about: 技术和创意外包商发展 +title: '外包商-SoftwareName' +labels: '' +assignees: '' + +--- + +**概要** + +SoftwareName 合作伙伴资格 + +**伙伴类型** + +- [ ] 代理分销伙伴(有代理价格或返点奖励) +- [ ] 技术集成伙伴 +- [ ] 咨询与培训伙伴 +- [ ] 其他 + +**状态** + +- [ ] 已发邮件/工单 +- [ ] 总联系不上 +- [ ] 沟通中 +- [ ] 沟通中断(需重新发起) +- [ ] 申请被拒绝 +- [ ] 申请通过 +- [ ] 关系维护(条款变更/关怀/其他) + +**深度合作** + +- [ ] 多云分发服务(镜像免费) +- [ ] 多云分发服务(镜像收费) + +**跟进** + +- [ ] 联系人[归档](https://www.hubspot.com/) +- [ ] 结果[归档](https://github.com/websoft9op/vendor/tree/main/list) + +**备注** + +其他重要的信息 diff --git a/.github/ISSUE_TEMPLATE/partner.md b/.github/ISSUE_TEMPLATE/partner.md new file mode 100644 index 00000000..db098f23 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/partner.md @@ -0,0 +1,43 @@ +--- +name: 合作伙伴资格-SoftwareName +about: 成为商业软件或开源软件企业版的合作伙伴 +title: '合作伙伴资格-SoftwareName' +labels: '' +assignees: '' + +--- + +**概要** + +SoftwareName 合作伙伴资格 + +**伙伴类型** + +- [ ] 代理分销伙伴(有代理价格或返点奖励) +- [ ] 技术集成伙伴 +- [ ] 咨询与培训伙伴 +- [ ] 其他 + +**状态** + +- [ ] 已发邮件/工单 +- [ ] 总联系不上 +- [ ] 沟通中 +- [ ] 沟通中断(需重新发起) +- [ ] 申请被拒绝 +- [ ] 申请通过 +- [ ] 关系维护(条款变更/关怀/其他) + +**深度合作** + +- [ ] 多云分发服务(镜像免费) +- [ ] 多云分发服务(镜像收费) + +**跟进** + +- [ ] 联系人[归档](https://www.hubspot.com/) +- [ ] 结果[归档](https://github.com/websoft9op/vendor/tree/main/list) + +**备注** + +其他重要的信息 diff --git a/.github/workflows/create.yml b/.github/workflows/create.yml new file mode 100644 index 00000000..e8df7563 --- /dev/null +++ b/.github/workflows/create.yml @@ -0,0 +1,25 @@ +name: Create new vendor folder + +on: + push: + branches: [ main ] + paths: + - 'apps/add' +jobs: + build: + name: Create vendor + runs-on: ubuntu-latest + env: + TAGS: latest + steps: + - uses: actions/checkout@v2 + name: Check out code + + - name: Creating + run: | + cd apps + cd list && python3 create.py + + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: new vendor diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml deleted file mode 100644 index 9cf09aa2..00000000 --- a/.github/workflows/doc.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Docs Build and Upload - -on: - push: - paths: docs/** - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - - name: npm install vuepress - run: | - sudo npm install -g vuepress - - - name: vuepress build - run: | - cd docs - sudo vuepress build - env: - CI: true - - # to azure blob - - name: debug - run: ls - - uses: bacongobbler/azure-blob-storage-upload@v1.2.0 - with: - source_dir: docs/html - container_name: $web - connection_string: ${{ secrets.Azure_blob }} - extra_args: '--destination-path docs' - sync: false diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml deleted file mode 100644 index 9ce1edbf..00000000 --- a/.github/workflows/mirror.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Mirror to Gitee Repo - -# on: [ push, delete, create ] -on: - push: - branches: - - main - -jobs: - git-mirror: - runs-on: ubuntu-latest - steps: - - name: Configure Private Key - env: - SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }} - run: | - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - echo "StrictHostKeyChecking no" >> ~/.ssh/config - - name: Push Mirror - env: - # SOURCE_REPO: 'https://github.com/mgithubTestOrg/giteeMirror.git' - SOURCE_REPO: 'https://github.com/${{ github.repository }}.git' - # DESTINATION_REPO: 'git@gitee.com:mgithubTestOrg/giteeMirror.git' -# DESTINATION_REPO: 'git@gitee.com:${{ github.repository }}.git' - DESTINATION_REPO: 'git@gitee.com:websoft9/${{ github.event.repository.name }}.git' - BASE_REPO: 'https://github.com/${{ github.repository }}' - run: | - git clone "$SOURCE_REPO" && cd `basename "$BASE_REPO"` - git config --global user.name "${{ github.actor }}" - git config --global user.email "xxx@websoft9.com" - - git remote set-url --push origin "$DESTINATION_REPO" - git push origin main --force - - git checkout dev - if [ -f "requirements.yml" ];then - sed -i 's/github/gitee/g' requirements.yml - git add requirements.yml - git commit -m "Make requirements.yml compatible with gitee" - fi - git push origin dev --force - - git checkout main - - git fetch -p origin - git for-each-ref --format 'delete %(refname)' refs/pull | git update-ref --stdin - git push origin main --force - - if [ -f "requirements.yml" ];then - sed -i 's/github/gitee/g' requirements.yml - git add requirements.yml - git commit -m "Make requirements.yml compatible with gitee" - fi - git push origin main --force \ No newline at end of file diff --git a/apps/add b/apps/add new file mode 100644 index 00000000..0226324b --- /dev/null +++ b/apps/add @@ -0,0 +1 @@ +sscms \ No newline at end of file diff --git a/apps/create.py b/apps/create.py new file mode 100644 index 00000000..4da5ec2c --- /dev/null +++ b/apps/create.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python2 +#!/usr/bin/env python3 +#coding: utf-8 + +import os, io, sys, platform, shutil, urllib3, time, json + + +def ReadLists(filename): + if os.path.getsize(filename) == 0: + print("\n清单中没有项目!") + sys.exit() + else: + with open("./"+filename,mode='r',newline='') as f: + templists=list(f) + rlist=[] + for templist in templists: + rlist.append(templist.replace('\n','')) + return rlist + +mylists=ReadLists("add") + +# 批量处理,创建项目文件夹,issue +for mylist in mylists: + print("处理 "+mylist+" ...\n") + path=os.getcwd()+"/"+mylist+"/README.md" + print(path) + print(os.path.exists(path)) + if not os.path.exists(path): + os.system("git clone --depth https://github.com/Websoft9/ansible-template "+ mylist) + os.system("cd "+ mylist +" && rm -rf .git .github docs") + os.system("echo '' > lists") + +print("\n执行完成,并清空列表") \ No newline at end of file