-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize workflow, add condecov and issue, stale robot (#202)
optimize workflow, add condecov and issue robot
- Loading branch information
Showing
5 changed files
with
106 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Golang CI Lint | ||
name: "golang ci lint" | ||
|
||
# Controls when the workflow will run | ||
on: | ||
|
@@ -43,14 +43,16 @@ jobs: | |
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
name: Set Up Go | ||
- name: "set up go" | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.16 | ||
|
||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
name: "Checkout ${{ github.ref }}" | ||
- name: Golang CI Lint | ||
- name: "checkout ${{ github.ref }}" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "golang ci lint" | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.44.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
name: 'issue translator' | ||
on: | ||
issue_comment: | ||
types: [created] | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: tomsun28/[email protected] | ||
with: | ||
# it is not necessary to decide whether you need to modify the issue header content | ||
IS_MODIFY_TITLE: false | ||
CUSTOM_BOT_NOTE: RoBot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
|
||
# https://github.com/actions/stale | ||
name: 'close the stale content' | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
permissions: | ||
pull-requests: write | ||
issues: write | ||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v4 | ||
with: | ||
#stale issues | ||
days-before-issue-stale: 28 | ||
days-before-issue-close: 7 | ||
exempt-issue-labels: 'feature' | ||
stale-issue-message: > | ||
This issue has not been active for the past 4 weeks, so we will automatically close this issue after 7 days | ||
close-issue-message: > | ||
This issue has not been active for the past 5 weeks, so we are closing it now | ||
#stale prs | ||
days-before-pr-stale: 84 | ||
days-before-pr-close: 7 | ||
stale-pr-message: > | ||
This PR has not been active for the past 12 weeks, so we will automatically close this issue after seven days | ||
close-pr-message: > | ||
This PR has not had any activity for the past 13 weeks, so we are now closing it down |