From a003a42b0d2528abc381028a94a89ac344ba1c72 Mon Sep 17 00:00:00 2001 From: jingsongliu <45508593+jingsongliujing@users.noreply.github.com> Date: Wed, 8 Feb 2023 21:10:36 +0800 Subject: [PATCH 1/5] Update setup.cfg (#78) update installation source configuration --- setup.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.cfg b/setup.cfg index 3dc64f86..6a5a66e5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,3 +23,6 @@ max-line-length = 120 select = B,C,E,F,P,T4,W,B9 ignore = F401,F405,F821,W503,E251 exclude = docs/src,*.pyi,.git + +[easy_install] +index-url=https://pypi.tuna.tsinghua.edu.cn/simple From d882c7953bf17b0a7d87889ea0d390e4c68a15d1 Mon Sep 17 00:00:00 2001 From: Frank Zhao Date: Thu, 9 Feb 2023 15:49:04 +0800 Subject: [PATCH 2/5] doc: update readme (#86) Add contribution leaderboard badge into README file. Signed-off-by: frank-zsy --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5bd74b6c..f0c65769 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ [![open issues](https://isitmaintained.com/badge/open/modelscope/modelscope.svg)](https://github.com/modelscope/modelscope/issues) [![GitHub pull-requests](https://img.shields.io/github/issues-pr/modelscope/modelscope.svg)](https://GitHub.com/modelscope/modelscope/pull/) [![GitHub latest commit](https://badgen.net/github/last-commit/modelscope/modelscope)](https://GitHub.com/modelscope/modelscope/commit/) +[![Leaderboard](https://img.shields.io/badge/ModelScope-Check%20Your%20Contribution-orange)](https://opensource.alibaba.com/contribution_leaderboard/details?projectValue=modelscope) + From fe77329fffe7b8f110eca327c98338988b2f2255 Mon Sep 17 00:00:00 2001 From: wenmeng zhou Date: Thu, 9 Feb 2023 16:54:41 +0800 Subject: [PATCH 3/5] Create close_stale_issue.yml add stale issue and pr cleaner --- .github/workflows/close_stale_issue.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/close_stale_issue.yml diff --git a/.github/workflows/close_stale_issue.yml b/.github/workflows/close_stale_issue.yml new file mode 100644 index 00000000..aa7fdc9b --- /dev/null +++ b/.github/workflows/close_stale_issue.yml @@ -0,0 +1,19 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v7 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.' + days-before-issue-stale: 30 + days-before-pr-stale: 45 + days-before-issue-close: 5 + days-before-pr-close: 45 From fb17fb01a6ad5857a040c27ac30cb968ba25c69e Mon Sep 17 00:00:00 2001 From: wenmeng zhou Date: Thu, 9 Feb 2023 16:56:42 +0800 Subject: [PATCH 4/5] Update close_stale_issue.yml add permission for stale action --- .github/workflows/close_stale_issue.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/close_stale_issue.yml b/.github/workflows/close_stale_issue.yml index aa7fdc9b..c523d5b7 100644 --- a/.github/workflows/close_stale_issue.yml +++ b/.github/workflows/close_stale_issue.yml @@ -17,3 +17,8 @@ jobs: days-before-pr-stale: 45 days-before-issue-close: 5 days-before-pr-close: 45 + +permissions: + contents: write # only for delete-branch option + issues: write + pull-requests: write From 8cde397946e1b59a8d7431cb7f9f4b04291044aa Mon Sep 17 00:00:00 2001 From: Zhicheng Zhang Date: Fri, 10 Feb 2023 20:46:22 +0800 Subject: [PATCH 5/5] fix lint check --- setup.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index dcb1af48..bfee5eec 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,4 +29,3 @@ ignore=DAR101 [easy_install] index-url=https://pypi.tuna.tsinghua.edu.cn/simple -