From 6394ad92279a102ee394227acdfb4751f3f5be6a Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Tue, 27 Jun 2023 20:17:36 +0800 Subject: [PATCH] feat: project actions Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .github/sync.yml | 37 +++++++++++------------- .github/workflows/check-coverage.yml | 1 - .github/workflows/help-comment-issue.yml | 19 ++++++++++++ .github/workflows/project-progress.yml | 22 ++++++++++++++ 4 files changed, 58 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/help-comment-issue.yml create mode 100644 .github/workflows/project-progress.yml diff --git a/.github/sync.yml b/.github/sync.yml index 4e36825c9..b4a87cc5d 100644 --- a/.github/sync.yml +++ b/.github/sync.yml @@ -5,10 +5,10 @@ OpenIMSDK/.github: dest: LICENSE - source: script/LICENSE/ dest: scripts/LICENSE/ - replace: true + replace: false - source: .github/ dest: .github/ - replace: true + replace: false exclude: | workflows/ sync.yml @@ -18,7 +18,7 @@ OpenIMSDK/community: dest: LICENSE - source: script/LICENSE/ dest: scripts/LICENSE/ - replace: true + replace: false - source: .github/workflows/ dest: .github/workflows/ exclude: @@ -26,7 +26,7 @@ OpenIMSDK/community: - sync.yml - source: .github/ dest: .github/ - replace: true + replace: false exclude: | sync.yml @@ -35,17 +35,13 @@ OpenIMSDK/openim-sdk-core: dest: LICENSE - source: script/LICENSE/ dest: scripts/LICENSE/ - replace: true - - source: .github/workflows/ - dest: .github/workflows/ - exclude: - - e2e-test.yml - - sync.yml - - source: .github/ - dest: .github/ - replace: true - exclude: | - sync.yml + replace: false + - source: .github/workflows/issue-robot.yml + dest: .github/workflows/issue-robot.yml + replace: false + - source: .github/workflows/stale.yml + dest: .github/workflows/stale.yml + replace: false OpenIMSDK/OpenIM-Docs: - source: .github/workflows/ @@ -69,8 +65,9 @@ group: - source: LICENSE dest: LICENSE replace: false - - source: .github/workflows/ - dest: .github/workflows/ - exclude: | - e2e-test.yml - sync.yml + - source: .github/workflows/issue-robot.yml + dest: .github/workflows/issue-robot.yml + replace: false + - source: .github/workflows/stale.yml + dest: .github/workflows/stale.yml + replace: false diff --git a/.github/workflows/check-coverage.yml b/.github/workflows/check-coverage.yml index 4a505f51d..9534ee6de 100644 --- a/.github/workflows/check-coverage.yml +++ b/.github/workflows/check-coverage.yml @@ -1,6 +1,5 @@ # name: Check-Coverage - # on: # workflow_dispatch: # push: diff --git a/.github/workflows/help-comment-issue.yml b/.github/workflows/help-comment-issue.yml new file mode 100644 index 000000000..fa2a42652 --- /dev/null +++ b/.github/workflows/help-comment-issue.yml @@ -0,0 +1,19 @@ +name: Good frist issue add comment +on: + issues: + types: + - labeled +jobs: + add-comment: + if: github.event.label.name == 'help-wanted' || github.event.label.name == 'good-first-issue' + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Add comment + uses: peter-evans/create-or-update-comment@5f728c3dae25f329afbe34ee4d08eef25569d79f + with: + issue-number: ${{ github.event.issue.number }} + body: | + This issue is available for anyone to work on. **Make sure to reference this issue in your pull request.** :sparkles: Thank you for your contribution! :sparkles: + If you wish to accept this assignment, please leave a comment in the comments section: `/accept`.🎯 \ No newline at end of file diff --git a/.github/workflows/project-progress.yml b/.github/workflows/project-progress.yml new file mode 100644 index 000000000..ad721a361 --- /dev/null +++ b/.github/workflows/project-progress.yml @@ -0,0 +1,22 @@ +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: Move assigned card +on: + issues: + types: + - assigned + pull_request: + types: + - assigned + +jobs: + move-assigned-card: + runs-on: ubuntu-latest + steps: + - uses: alex-page/github-project-automation-plus@v0.8.3 + with: + project: OpenIM 2023 Sprint 🔥 + column: In Progress + repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} \ No newline at end of file