From bfc926367e7fa799c370a785c6a02f9b25f258eb Mon Sep 17 00:00:00 2001 From: kubbot <3293172751ysy@gmail.com> Date: Thu, 13 Jul 2023 13:09:09 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20file(s)=20with=20kubecu?= =?UTF-8?q?b/go-project-layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 kubbot to synchronize the warehouse --- .github/workflows/auto-invite.yml | 2 +- .github/workflows/gpt-translate.yml | 2 +- .github/workflows/help-comment-issue.yml | 20 ++++++++++++++++++++ .github/workflows/issue-robot.yml | 2 +- .github/workflows/opencommit.yml | 9 ++++----- .github/workflows/spell-check.yml | 24 +++++++++++++++++------- .github/workflows/stale.yml | 10 +++------- .github/workflows/test.yml | 8 ++++---- 8 files changed, 51 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/help-comment-issue.yml diff --git a/.github/workflows/auto-invite.yml b/.github/workflows/auto-invite.yml index f4a83a0..f16687a 100644 --- a/.github/workflows/auto-invite.yml +++ b/.github/workflows/auto-invite.yml @@ -47,4 +47,4 @@ jobs: token: "${{ secrets.BOT_GITHUB_TOKEN }}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - \ No newline at end of file + diff --git a/.github/workflows/gpt-translate.yml b/.github/workflows/gpt-translate.yml index 9e53d87..1382bb3 100644 --- a/.github/workflows/gpt-translate.yml +++ b/.github/workflows/gpt-translate.yml @@ -24,4 +24,4 @@ jobs: uses: 3ru/gpt-translate@v1.0 with: apikey: ${{ secrets.OPENAI_API_KEY }} - token: "${{ secrets.BOT_GITHUB_TOKEN }}" \ No newline at end of file + token: "${{ secrets.BOT_GITHUB_TOKEN }}" diff --git a/.github/workflows/help-comment-issue.yml b/.github/workflows/help-comment-issue.yml new file mode 100644 index 0000000..26e9919 --- /dev/null +++ b/.github/workflows/help-comment-issue.yml @@ -0,0 +1,20 @@ +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@v3 + with: + issue-number: ${{ github.event.issue.number }} + token: ${{ secrets.BOT_GITHUB_TOKEN }} + 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`.🎯 diff --git a/.github/workflows/issue-robot.yml b/.github/workflows/issue-robot.yml index eadd6ef..de6daab 100644 --- a/.github/workflows/issue-robot.yml +++ b/.github/workflows/issue-robot.yml @@ -19,4 +19,4 @@ jobs: # it is not necessary to decide whether you need to modify the issue header content IS_MODIFY_TITLE: true BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} - # Required, input your bot github token \ No newline at end of file + # Required, input your bot github token diff --git a/.github/workflows/opencommit.yml b/.github/workflows/opencommit.yml index 83375af..d3d5250 100644 --- a/.github/workflows/opencommit.yml +++ b/.github/workflows/opencommit.yml @@ -1,11 +1,10 @@ -# Copyright © 2023 KubeCub open source community. All rights reserved. -# Licensed under the MIT License (the "License"); -# you may not use this file except in compliance with the License. - name: 'OpenCommit Action' on: push: + # this list of branches is often enough, + # but you may still ignore other public branches + branches-ignore: [main master dev development release] jobs: opencommit: @@ -23,7 +22,7 @@ jobs: fetch-depth: 0 - uses: di-sukharev/opencommit@github-action-v1.0.4 with: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} env: # set openAI api key in repo actions secrets, diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 366fdbe..0503175 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -1,7 +1,3 @@ -# Copyright © 2023 KubeCub open source community. All rights reserved. -# Licensed under the MIT License (the "License"); -# you may not use this file except in compliance with the License. - name: Test repository spelling check on: push: @@ -23,9 +19,23 @@ jobs: - name: Check spelling of md uses: crate-ci/typos@master with: - files: ./CONTIRIBUTING.md - + files: + ./CONTIRIBUTING.md + ./README.md + - name: Use custom config file uses: crate-ci/typos@master with: - files: ./README.md \ No newline at end of file + files: ./file.txt + config: ./myconfig.toml + + - name: Ignore implicit configuration file + uses: crate-ci/typos@master + with: + files: ./file.txt + isolated: true + + - name: Writes changes in the local checkout + uses: crate-ci/typos@master + with: + write_changes: true \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 61befcb..56a1f1e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,7 +1,3 @@ -# Copyright © 2023 KubeCub open source community. All rights reserved. -# Licensed under the MIT License (the "License"); -# you may not use this file except in compliance with the License. - # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. # # You can adjust the behavior by modifying this file. @@ -26,11 +22,11 @@ jobs: with: repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} days-before-stale: 7 - days-before-close: 3 + days-before-close: 5 stale-issue-message: 'This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 7 days.' stale-pr-message: 'This issue is stale because it has been open 7 days with no activity.' - close-issue-message: 'This issue was closed because it has been stalled for 3 days with no activity.' - close-pr-message: 'This PR was closed because it has been stalled for 3 days with no activity. You can reopen it if you want.' + 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 5 days with no activity. You can reopen it if you want.' stale-pr-label: lifecycle/stale stale-issue-label: lifecycle/stale exempt-issue-labels: 'kubecub' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42e9aaa..0b53454 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,11 +15,11 @@ jobs: uses: actions/checkout@v2 - name: Install dependencies - run: sudo apt-get update - - name: Build project&& sudo apt-get install -y make + run: sudo apt-get update && sudo apt-get install -y make + - name: Build project run: make build - + - name: Test build artifacts run: | - # Add your tests here to check the build artifacts \ No newline at end of file + # Add your tests here to check the build artifacts