Skip to content

Commit

Permalink
🔄 synced file(s) with kubecub/go-project-layout
Browse files Browse the repository at this point in the history
🤖 kubbot to synchronize the warehouse
  • Loading branch information
kubbot committed Jul 13, 2023
1 parent 48a7e1b commit bfc9263
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-invite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
token: "${{ secrets.BOT_GITHUB_TOKEN }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


2 changes: 1 addition & 1 deletion .github/workflows/gpt-translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
uses: 3ru/[email protected]
with:
apikey: ${{ secrets.OPENAI_API_KEY }}
token: "${{ secrets.BOT_GITHUB_TOKEN }}"
token: "${{ secrets.BOT_GITHUB_TOKEN }}"
20 changes: 20 additions & 0 deletions .github/workflows/help-comment-issue.yml
Original file line number Diff line number Diff line change
@@ -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`.🎯
2 changes: 1 addition & 1 deletion .github/workflows/issue-robot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Required, input your bot github token
9 changes: 4 additions & 5 deletions .github/workflows/opencommit.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -23,7 +22,7 @@ jobs:
fetch-depth: 0
- uses: di-sukharev/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

env:
# set openAI api key in repo actions secrets,
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
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
10 changes: 3 additions & 7 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Add your tests here to check the build artifacts

0 comments on commit bfc9263

Please sign in to comment.