-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from RightCapitalHQ/feature/add-ci-workflows
Feature/add ci workflows
- Loading branch information
Showing
5 changed files
with
101 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lint | ||
on: | ||
push: | ||
branches: [main, feature/**] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Prepare Node.js | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
node-version-file: .node-version | ||
|
||
- name: Install deps | ||
run: npm install -g markdownlint-cli | ||
|
||
- name: Lint the markdown file | ||
run: markdownlint 'README.md' |
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,32 @@ | ||
--- | ||
name: Lock | ||
|
||
on: | ||
schedule: | ||
- cron: '0 9 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lock: | ||
name: 🔒 Lock closed issues and PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v2.0.3 | ||
with: | ||
github-token: ${{ github.token }} | ||
issue-lock-inactive-days: '30' | ||
issue-lock-reason: '' | ||
issue-comment: > | ||
Issue closed and locked due to lack of activity. | ||
If you encounter this same issue, please open a new issue and refer | ||
to this closed one. | ||
pr-lock-inactive-days: '1' | ||
pr-lock-reason: '' | ||
pr-comment: > | ||
Pull Request closed and locked due to lack of activity. | ||
If you'd like to build on this closed PR, you can clone it using | ||
this method: https://stackoverflow.com/a/14969986 | ||
Then open a new PR, referencing this closed PR in your message. |
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,44 @@ | ||
--- | ||
name: Stale | ||
|
||
on: | ||
schedule: | ||
- cron: '0 8 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
name: 🧹 Clean up stale issues and PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🚀 Run stale | ||
uses: actions/stale@v8 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 30 | ||
days-before-close: 7 | ||
remove-stale-when-updated: true | ||
stale-issue-label: 'stale' | ||
exempt-issue-labels: 'no-stale,help-wanted' | ||
stale-issue-message: > | ||
There hasn't been any activity on this issue recently, and in order | ||
to prioritize active issues, it will be marked as stale. | ||
Please make sure to update to the latest version and | ||
check if that solves the issue. Let us know if that works for you | ||
by leaving a 👍 | ||
Because this issue is marked as stale, it will be closed and locked | ||
in 7 days if no further activity occurs. | ||
Thank you for your contributions! | ||
stale-pr-label: 'stale' | ||
exempt-pr-labels: 'no-stale' | ||
stale-pr-message: > | ||
There hasn't been any activity on this pull request recently, and in | ||
order to prioritize active work, it has been marked as stale. | ||
This PR will be closed and locked in 7 days if no further activity | ||
occurs. | ||
Thank you for your contributions! |
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 @@ | ||
18.17.1 |
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 |
---|---|---|
|
@@ -770,7 +770,7 @@ | |
|
||
> 09:05 am, 9:05, 9:5 am | ||
# 代码 | ||
## 代码 | ||
|
||
1. 变量类型,数据库字段类型,类、方法、函数、变量的名字,字面量(literal),在句子中应该格式化为代码。 | ||
|
||
|