mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 06:19:20 +08:00
feat: migrate the original main branch code
Signed-off-by: kubbot & kubecub <3293172751ysy@gmail.com>
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"ignorePatterns": [
|
||||
{
|
||||
"pattern": "^http://127.0.0.1"
|
||||
},
|
||||
{
|
||||
"pattern": "^http://localhost"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -33,6 +33,7 @@
|
||||
# uses: magnetikonline/action-golang-cache@v3
|
||||
# with:
|
||||
# go-version: ${{ env.GO_VERSION }}
|
||||
# token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||
|
||||
# - name: Install Dependencies
|
||||
# run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#
|
||||
@@ -0,0 +1,47 @@
|
||||
# name: Github Rebot for Link check error
|
||||
|
||||
# on:
|
||||
# pull_request:
|
||||
# branches: [ main ]
|
||||
# paths:
|
||||
# - '**.md'
|
||||
# - 'docs/**'
|
||||
# - '.lycheeignore'
|
||||
# push:
|
||||
# branches: [ main ]
|
||||
|
||||
# schedule:
|
||||
# - cron: '0 11 * * *'
|
||||
|
||||
# jobs:
|
||||
# linkChecker:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
|
||||
# - name: Link Checker
|
||||
# id: lychee
|
||||
# uses: lycheeverse/lychee-action@v1.7.0
|
||||
# with:
|
||||
# # For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters
|
||||
# # Actions Link address -> https://github.com/lycheeverse/lychee-action
|
||||
# # -E, --exclude-all-private Exclude all private IPs from checking.
|
||||
# # -i, --insecure Proceed for server connections considered insecure (invalid TLS)
|
||||
# # -n, --no-progress Do not show progress bar.
|
||||
# # -t, --timeout <timeout> Website timeout in seconds from connect to response finished [default:20]
|
||||
# # --max-concurrency <max-concurrency> Maximum number of concurrent network requests [default: 128]
|
||||
# # -a --accept <accept> Comma-separated list of accepted status codes for valid links
|
||||
# # docs/.vitepress/dist the site directory to check
|
||||
# # ./*.md all markdown files in the root directory
|
||||
# args: --verbose -E -i --no-progress --exclude-path './CHANGELOG' './**/*.md'
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{secrets.GH_PAT}}
|
||||
|
||||
# - name: Create Issue From File
|
||||
# if: env.lychee_exit_code != 0
|
||||
# uses: peter-evans/create-issue-from-file@v4
|
||||
# with:
|
||||
# title: Bug reports for links in OpenIM docs
|
||||
# content-filepath: ./lychee/out.md
|
||||
# labels: kind/documentation, triage/unresolved, report
|
||||
# token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||
@@ -1,27 +0,0 @@
|
||||
name: Markdown-related check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: "*"
|
||||
push:
|
||||
branches: "*"
|
||||
|
||||
jobs:
|
||||
markdown-related-check:
|
||||
name: markdown-related check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Markdown Link Check
|
||||
uses: docker://dragonflyoss/linter:v0.2.7
|
||||
with:
|
||||
# validate all links in markdown files excluding vendor folder
|
||||
args: bash -c "code=0;for mdFile in $(find ./ -name '*.md' | grep -v vendor | grep -v .github); do markdown-link-check -q --config .github/workflows/.mlc_config.json $mdFile; if [ $? -ne 0 ]; then code=1; fi;done; echo $code; exit $code"
|
||||
|
||||
- name: Markdown Lint
|
||||
uses: docker://dragonflyoss/linter:v0.2.7
|
||||
with:
|
||||
# lint all markdown files excluding vendor folder
|
||||
args: bash -c "find ./ -name '*.md' | grep -v vendor | grep -v .github | xargs mdl -r ~MD010,~MD013,~MD022,~MD024,~MD026,~MD029,~MD033,~MD036"
|
||||
Reference in New Issue
Block a user