forked from ZLMediaKit/ZLMediaKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into mid
# Conflicts: # src/Http/HttpFileManager.cpp # src/Rtp/RtpSender.cpp
- Loading branch information
Showing
225 changed files
with
7,570 additions
and
3,970 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
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,6 @@ | ||
blank_issues_enabled: false | ||
|
||
contact_links: | ||
- name: 技术咨询 | ||
url: https://t.zsxq.com/FcVK5 | ||
about: 请在知识星球发起技术咨询 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,58 @@ | ||
name: issue_lint | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
issue_lint: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const fs = require('fs').promises; | ||
const getTitles = (str) => ( | ||
[...str.matchAll(/^## (.*)/gm)].map((m) => m[0]) | ||
); | ||
const titles = getTitles(context.payload.issue.body); | ||
for (let file of await fs.readdir('.github/ISSUE_TEMPLATE')) { | ||
if (!file.endsWith('.md')) { | ||
continue; | ||
} | ||
const template = await fs.readFile(`.github/ISSUE_TEMPLATE/${file}`, 'utf-8'); | ||
const templateTitles = getTitles(template); | ||
if (templateTitles.every((title) => titles.includes(title))) { | ||
process.exit(0); | ||
} | ||
} | ||
await github.rest.issues.createComment({ | ||
owner: context.issue.owner, | ||
repo: context.issue.repo, | ||
issue_number: context.issue.number, | ||
body: '此issue由于不符合模板规范已经自动关闭,请重新按照模板规范确保包含模板中所有章节标题再提交\n', | ||
}); | ||
await github.rest.issues.addLabels({ | ||
owner: context.issue.owner, | ||
repo: context.issue.repo, | ||
issue_number: context.issue.number, | ||
labels: ['自动关闭'] | ||
}); | ||
|
||
await github.rest.issues.update({ | ||
owner: context.issue.owner, | ||
repo: context.issue.repo, | ||
issue_number: context.issue.number, | ||
state: 'closed', | ||
}); |
Oops, something went wrong.