Skip to content

Commit 2f6a4c5

Browse files
authored
Merge pull request #693 from RayWangQvQ/develop
Release 2.0.4
2 parents 01da40d + 68ef98d commit 2f6a4c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1451
-1083
lines changed

.github/workflows/no-response.yml

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
name: No Response
2-
1+
name: Close Stale Issues
32
on:
4-
# workflow_dispatch:
5-
issue_comment:
6-
types: [created]
73
schedule:
8-
- cron: '7 4,10 * * *'
4+
- cron: "0 8 * * *" # 每天的 00:00 运行
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
911

1012
jobs:
11-
noResponse:
13+
close_stale_issues:
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: lee-dohm/[email protected]
16+
- name: Close Stale Issues
17+
uses: actions/stale@v5
1518
with:
16-
token: ${{ github.token }}
17-
# closeComment: This issue has been automatically closed due to no response from the original author. Please feel free to reopen it if you have more information that can help us investigate the issue further.
18-
daysUntilClose: 3
19-
responseRequiredLabel: needs-more-info
19+
days-before-stale: 3 # 3 天不活跃后标记Stale
20+
days-before-close: 3 # 标记Stale后3天不活跃则关闭问题
21+
stale-issue-label: "Stale" # 标记为 "Stale" 的问题
22+
stale-issue-message: "🕸️ This has been inactive for 3 days, please confirm if it still needs attention~~" # Comment added
23+
close-issue-message: "🚫 This has been inactive for too long and is now closed, feel free to reopen it if needed!" # Comment added
24+
only-labels: "needs-more-info" # 只处理标签为 "help wanted" 的问题
25+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-image.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
if [ "${{ github.event.release.tag_name }}" ] ; then
3434
TargetVersion=${{ github.event.release.tag_name }}
3535
fi
36-
if [ "${{ github.event.inputs.manualTag }}" ] ; then
37-
TargetVersion=${{ github.event.inputs.manualTag }}
36+
then
37+
TargetVersion=$(echo "$GITHUB_REF" | sed 's/refs\/tags\///')
3838
fi
3939
echo "TargetVersion: $TargetVersion"
4040
echo "TargetVersion=$TargetVersion" >> $GITHUB_OUTPUT

.github/workflows/publish-release.yml

+14-28
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,48 @@
11
# 打包发布Release
2-
32
name: Publish release
43

54
on:
65
workflow_dispatch:
7-
inputs:
8-
version:
9-
description: '版本号'
10-
required: true
116

127
permissions:
138
contents: write
149
discussions: write
1510

1611
jobs:
1712
build:
18-
name: publish relesae
13+
name: Publish Release
1914
if: ${{ github.repository == 'RayWangQvQ/BiliBiliToolPro' }}
2015
runs-on: ubuntu-latest
2116

2217
steps:
23-
- name: Checkout code
18+
- name: Checkout Code
2419
uses: actions/checkout@v3
25-
with:
26-
ref: ${{ github.event.inputs.version }}
2720

28-
- name: Setup .NET
21+
- name: Setup .NET Core
2922
uses: actions/setup-dotnet@v3
3023
with:
31-
dotnet-version: 6.0.x
24+
dotnet-version: '6.0.x'
3225

33-
- name: Publish and zip
26+
- name: Publish and Zip Release
3427
run: |
35-
pwd && ls
3628
cd ./scripts
3729
chmod +x ./publish.sh
38-
. publish.sh --runtime all
30+
./publish.sh --runtime all
3931
40-
- name: Get release content
41-
id: release_content
32+
- name: Extract Release Notes
33+
id: release_notes
4234
run: |
43-
cd ${{ github.workspace }}
44-
pwd && ls
45-
content=$(tac ./CHANGELOG.md | grep -m1 "##" -B 1000 | tac)
46-
echo "Release content: $content"
47-
echo "release_content<<EOF" >> $GITHUB_OUTPUT
48-
echo "$content" >> $GITHUB_OUTPUT
49-
echo "EOF" >> $GITHUB_OUTPUT
35+
content=$(grep -m1 "##" -A 1000 ./CHANGELOG.md)
36+
echo "::set-output name=content::$content"
5037
51-
- name: Upload release asset
52-
id: upload-release-asset
38+
- name: Create Release
5339
uses: softprops/action-gh-release@v1
5440
with:
55-
files: ./src/Ray.BiliBiliTool.Console/bin/Publish/*.zip
41+
files: './src/Ray.BiliBiliTool.Console/bin/Publish/*.zip'
5642
token: ${{ secrets.GITHUB_TOKEN }}
57-
name: BiliBiliToolPro-V${{ github.event.inputs.version }}
43+
name: "BiliBiliToolPro-V${{ github.event.inputs.version }}"
5844
tag_name: ${{ github.event.inputs.version }}
59-
body: ${{ steps.release_content.outputs.release_content }}
45+
body: ${{ steps.release_notes.outputs.content }}
6046
discussion_category_name: Announcements
6147
generate_release_notes: true
6248
fail_on_unmatched_files: true

CHANGELOG.md

+25-22
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,62 @@
1-
## 2.0.3
2-
- PR[#641]:实现浏览会员购页面与观看正片内容功能
3-
- PR[#685]:部分修复大积分功能
4-
- Fix:更新过于老旧的UserAgent
5-
- Fix:更新排行榜api
1+
## 2.0.4
2+
- Fix: 尝试修复大会员大积分“账号风险”异常
3+
- Feature:为agent api创建集成测试
4+
## 2.0.3
5+
- PR[#641]:实现浏览会员购页面与观看正片内容功能
6+
- PR[#685]:部分修复大积分功能
7+
- Fix:更新过于老旧的UserAgent
8+
- Fix:更新排行榜api
69
## 2.0.2
7-
- PR[#617]:增加专栏投币功能与领取大会员经验的功能
10+
- PR[#617]:增加专栏投币功能与领取大会员经验的功能
811
## 2.0.1
912
- PR[#539]:更新文档
10-
- PR[#557]:修复直播接口权限不足问题
13+
- PR[#557]:修复直播接口权限不足问题
1114
## 2.0.0
1215
- Feature[#513]:将基础组件和抽象迁移到nuget包中
13-
- Fix[#543]:修复部分Api调用报“访问权限不足”
16+
- Fix[#543]:修复部分Api调用报“访问权限不足”
1417
## 1.0.3
15-
- Fix #486 : fix release zip error
18+
- Fix #486 : fix release zip error
1619
## 1.0.2
1720
- Fix #484 : fix read dic config error
1821
- Merge PR #472 : add reverse proxy host for telegram notification
19-
- Merge PR #483 : update login field for entrypoint
22+
- Merge PR #483 : update login field for entrypoint
2023
## 1.0.1
2124
- Fix #463 : do not trust user's ck config
2225
- Feature #460 : publish single file when release
2326
- Feature: use new scripts for gh actions's release
24-
- Feature #473 : let user input when there is no target task in configs
27+
- Feature #473 : let user input when there is no target task in configs
2528
## 1.0.0
2629
- Feature: Enable asynchronous
2730
- Fix #344 : Support `Ctrl + C` to trigger exit event
2831
- Fix #451 : Rebuild cookie factory pattern and fix bug of donating coin
2932
- Featur: Replace AOP from MethodBoundaryAspect.Fody to Rougamo.Fody, to fix async exception
3033
- Merge PR #448 : Fix typo
31-
- Fix #446 : Change id type from int to long
34+
- Fix #446 : Change id type from int to long
3235
## 0.4.6
3336
- Fix: ck list init empty error
34-
- Feature #440 : use 'apk add' to install dotnet in qinglong
37+
- Feature #440 : use 'apk add' to install dotnet in qinglong
3538
## 0.4.5
36-
- Fix #423 : Change int to string to avoid overflow exception
39+
- Fix #423 : Change int to string to avoid overflow exception
3740
## 0.4.4
3841
- Fix #228 : Try to fix sharing video error
39-
- Feature: Change default docker image from dockerhub to github
42+
- Feature: Change default docker image from dockerhub to github
4043
## 0.4.3
4144
- Feature #419 : Add a auto shell script for installing with docker
42-
- Feature #396 : Publish docker image to GitHub pkg
45+
- Feature #396 : Publish docker image to GitHub pkg
4346
## 0.4.2
44-
- Merfe PRs #425 #426 #427 : Enhancement docker things, thx @zclkkk
47+
- Merfe PRs #425 #426 #427 : Enhancement docker things, thx @zclkkk
4548
## 0.4.1
46-
- Merge PR #418 : Fix search video api's error, thx @catlair
49+
- Merge PR #418 : Fix search video api's error, thx @catlair
4750
## 0.4.0
48-
- 合并PR( #381 #383 ),新增直播间挂机功能,感谢@bakapiano
51+
- 合并PR( #381 #383 ),新增直播间挂机功能,感谢@bakapiano
4952
## 0.3.2
5053
- Fix( #358 ),获取auth时兼容老版青龙文件路径
5154
- Fix( #364 ),兼容青龙异形response数据类型
5255
- Fix( #366 #361 ),修复一些低级bug
53-
- Feature( #359 ),兼容读取不到`$QL_DIR`的情况
56+
- Feature( #359 ),兼容读取不到`$QL_DIR`的情况
5457
## 0.3.1
5558
- Fix( #260 ),在需要的时候encode cookie
56-
- 更新文档
59+
- 更新文档
5760
## 0.3.0
5861
- hotfix docker build error
5962
- 合并PR(#341),新增krew部署,感谢@chenliu1993
@@ -85,7 +88,7 @@
8588
- HostConfiguration,删除了CommandLine配置源,推荐只使用环境变量,同时更新青龙shell脚本内配置
8689
-#169】领取大会员福利任务更改为每日都尝试执行
8790
- 青龙拉库兼容大小写问题
88-
-#197】合并PR,新增了阅读漫画功能到每日任务中(@ChanceLuo
91+
-#197】合并PR,新增了阅读漫画功能到每日任务中(@ChanceLuo
8992
## 0.1.1
9093
-#54】优化青龙shell脚本读取仓库目录方式,解决青龙新老版本切换导致出现多个repo目录的bug
9194
-#82】【#85】合并外部PR,更新了文档

0 commit comments

Comments
 (0)