The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(issue-mgmt): 重做 issue 模板 + 添加 issue 管理自动化
XiaoYouChR761638e3b221
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex 27fedd24..3256b53a 100644--- a/.github/ISSUE_TEMPLATE/bug_report.yml+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -1,92 +1,107 @@name: Bug 报告-description: 如果你在使用过程中遇到了问题,请按照下面的模板提交一个 Bug 报告,我们会尽快调查并修复这个问题。-title: "[Bug] 我的标题"-assignees: XiaoYouChR+description: 提交 Bug 报告+title: "[Bug] "labels:- "🐛Bug"body:-- type: markdown+- type: checkboxes+ id: no-duplicateattributes:- value: |- ## 写在开头- 🚨 请务必完整填写下面的内容,如果缺少必要的信息,开发者可能会在未调查的情况下直接关闭问题 🚨+ label: 检查清单+ options:+ - label: 我已搜索现有 Issue,确认没有重复+ required: true- type: textareaid: description+ attributes:+ label: 描述+ description: 简述你遇到的问题validations:required: true- attributes:- label: Bug 描述- description: 请简短的描述你遇到的问题- type: textareaid: repro-steps+ attributes:+ label: 复现步骤+ render: markdown+ placeholder: |+ 1. 打开应用+ 2. 进入 '...'+ 3. 点击 '...'+ 4. 出现问题validations:required: true- attributes:- label: 复现问题的步骤- render: markdown- description: 请提供复现问题的步骤,如果不能,请写明原因- placeholder: |- 干净清晰的复现步骤有助于开发者更快定位问题所在,你所遇到的问题也会获得更高的优先级.- 示例步骤:- 1. 打开应用- 2. 进入 '...'- 3. 点击 '....'- 4. 滚动至 '....'- 5. 发现问题+- type: input+ id: source-url+ attributes:+ label: 复现源链接+ description: 触发此问题的下载链接,与链接无关填 N/A+ placeholder: "https://example.com/file.zip 或 N/A"+ validations:+ required: true- type: textareaid: expected-behavior- validations:- required: falseattributes:- label: 预期行为- description: 简要描述你希望看到什么样的结果- render: markdown+ label: 预期行为+ render: markdown- type: textareaid: screenshotsattributes:- label: 截图- description: 如果可以,提交截图更有助于我们分析问题+ label: 截图-- type: checkboxes- id: environment-app-target-version+- type: input+ id: gd-versionattributes:- label: 系统版本- description: 选择一个你发现问题的系统版本- options:- - label: Windows 10 2004 - 22H2 (Build 19041 - 19045)- - label: Windows 11 21H2 (Build 22000)- - label: Windows 11 22H2 (Build 22621)- - label: Windows 11 23H2 (Build 22631)- - label: Windows 11 24H2 (Build 26100)- - label: Windows 11 25H2 (Build 26200)- - label: 其它 (macOS 或 Linux, 请在下方备注系统版本)+ label: Ghost Downloader 版本+ placeholder: "例: v4.2.6"+ validations:+ required: true- type: input- id: environment-app-target-other-version+ id: extension-version+ attributes:+ label: 浏览器扩展版本+ description: 与扩展无关填 N/A+ placeholder: "例: 1.2.0 或 N/A"+ validations:+ required: true++- type: dropdown+ id: osattributes:- label: 其它系统版本- description: 如果你是在特别的系统版本中运行应用,请注明系统版本+ label: 操作系统+ options:+ - Windows 10+ - Windows 11+ - macOS+ - Linux+ - Android+ validations:+ required: true- type: input- id: form-factor+ id: os-detailattributes:- label: 处理器型号- description: 处理器架构和指令集信息有助于我们分析问题+ label: 系统版本详情+ description: Windows 请运行 winver,Linux 请附带 glibc 版本(运行 ldd --version),Android 请注明版本、设备和 ROM 名称+ placeholder: "例: 24H2 Build 26200 / macOS 15.1 / Fedora 44 glibc 2.41 / Android 16 OPPO Find X8s ColorOS 16"+ validations:+ required: true- type: textareaid: log-infoattributes:- label: 日志记录- description: 请`粘贴报错时自动复制的报错内容`或者打开软件后依次点击`设置->关于->提供反馈->查看日志`后上传`GhostDownloader.log`文件+ label: 日志+ description: 粘贴报错内容,或 设置→关于→提供反馈→查看日志 后上传 GhostDownloader.log+ validations:+ required: true- type: textareaid: additional-contextattributes:- label: 备注- description: 添加你认为必要的其他信息, 比如是否愿意提交 Pull Request 来修复这个问题- render: markdown+ label: 备注+ render: markdowndiff --git a/.github/ISSUE_TEMPLATE/bug_report_en.yml b/.github/ISSUE_TEMPLATE/bug_report_en.ymlindex 3ff43778..f8c5f627 100644--- a/.github/ISSUE_TEMPLATE/bug_report_en.yml+++ b/.github/ISSUE_TEMPLATE/bug_report_en.yml@@ -1,92 +1,107 @@-name: Bug report (EN)-description: If you encountered a problem while using the app, please submit a bug report with the form below. We will investigate and fix it as soon as possible.-title: "[Bug] My title"-assignees: XiaoYouChR+name: Bug Report (EN)+description: Submit a bug report+title: "[Bug] "labels:- "🐛Bug"body:-- type: markdown+- type: checkboxes+ id: no-duplicateattributes:- value: |- ## Before you start- 🚨 Please fill out the form below as completely as possible. If key details are missing, the issue may be closed before investigation. 🚨+ label: Checklist+ options:+ - label: I have searched existing issues and confirmed this is not a duplicate+ required: true- type: textareaid: description+ attributes:+ label: Description+ description: Briefly describe the problemvalidations:required: true- attributes:- label: Bug description- description: Briefly describe the problem you encountered- type: textareaid: repro-steps+ attributes:+ label: Steps to reproduce+ render: markdown+ placeholder: |+ 1. Open the app+ 2. Go to '...'+ 3. Click '...'+ 4. Issue appearsvalidations:required: true- attributes:- label: Steps to reproduce- render: markdown- description: Provide the steps to reproduce the issue. If you cannot reproduce it consistently, please explain why- placeholder: |- Clear reproduction steps help us locate the problem faster and give your report a higher priority.- Example steps:- 1. Open the app- 2. Go to '...'- 3. Click '....'- 4. Scroll to '....'- 5. Notice the issue+- type: input+ id: source-url+ attributes:+ label: Source URL+ description: The download link that triggered this issue. Enter N/A if not link-related+ placeholder: "https://example.com/file.zip or N/A"+ validations:+ required: true- type: textareaid: expected-behavior- validations:- required: falseattributes:- label: Expected behavior- description: Briefly describe what you expected to happen- render: markdown+ label: Expected behavior+ render: markdown- type: textareaid: screenshotsattributes:- label: Screenshots- description: If possible, attach screenshots to help us analyze the issue+ label: Screenshots-- type: checkboxes- id: environment-app-target-version+- type: input+ id: gd-versionattributes:- label: Operating system version- description: Select the system version where you encountered the issue- options:- - label: Windows 10 2004 - 22H2 (Build 19041 - 19045)- - label: Windows 11 21H2 (Build 22000)- - label: Windows 11 22H2 (Build 22621)- - label: Windows 11 23H2 (Build 22631)- - label: Windows 11 24H2 (Build 26100)- - label: Windows 11 25H2 (Build 26200)- - label: Other (macOS or Linux, please specify below)+ label: Ghost Downloader version+ placeholder: "e.g. v4.2.6"+ validations:+ required: true- type: input- id: environment-app-target-other-version+ id: extension-version+ attributes:+ label: Browser extension version+ description: Enter N/A if not extension-related+ placeholder: "e.g. 1.2.0 or N/A"+ validations:+ required: true++- type: dropdown+ id: osattributes:- label: Other system version- description: If you are running the app on a different or special system version, please specify it here+ label: Operating system+ options:+ - Windows 10+ - Windows 11+ - macOS+ - Linux+ - Android+ validations:+ required: true- type: input- id: form-factor+ id: os-detailattributes:- label: Processor model- description: CPU architecture and instruction set details help us analyze the issue+ label: OS version details+ description: Windows run winver, Linux include glibc version (run ldd --version), Android include version, device and ROM name+ placeholder: "e.g. 24H2 Build 26200 / macOS 15.1 / Fedora 44 glibc 2.41 / Android 16 OPPO Find X8s ColorOS 16"+ validations:+ required: true- type: textareaid: log-infoattributes:- label: Logs- description: Please `paste the copied error message` or open the app and go to `Settings -> About -> Provide feedback -> View logs`, then upload the `GhostDownloader.log` file+ label: Logs+ description: Paste the error message, or go to Settings → About → Feedback → View logs and upload GhostDownloader.log+ validations:+ required: true- type: textareaid: additional-contextattributes:- label: Additional context- description: Add any other information you think is helpful, such as whether you would like to submit a pull request to fix this issue- render: markdown+ label: Additional context+ render: markdowndiff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 00000000..f21f0b4a--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,11 @@+blank_issues_enabled: false+contact_links:+ - name: 使用问题 / Q&A+ url: https://github.com/XiaoYouChR/Ghost-Downloader-3/discussions/categories/求助-q-a+ about: 使用问题、配置问题请到 Discussions 提问+ - name: 功能建议 / Ideas+ url: https://github.com/XiaoYouChR/Ghost-Downloader-3/discussions/categories/功能建议-ideas+ about: 功能建议请先到 Discussions 讨论+ - name: 翻译贡献 / Translations+ url: https://github.com/XiaoYouChR/Ghost-Downloader-3/discussions/categories/翻译-translations+ about: 翻译贡献请到 Discussions 讨论或直接走 Crowdindiff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.ymlindex ac38bdc2..5cc483fb 100644--- a/.github/ISSUE_TEMPLATE/feature_request.yml+++ b/.github/ISSUE_TEMPLATE/feature_request.yml@@ -1,49 +1,40 @@name: 功能需求-description: 给项目提供建议或点子-title: "[Feature] 我的标题"+description: 提出功能建议+title: "[Feature] "labels:- "✨Enhancement"-assignees: XiaoYouChRbody:-- type: markdown- attributes:- value: |- ## 写在开头- 🚨 请务必完整填写下面的内容,如果缺少必要的信息,开发者可能会在未调查的情况下直接关闭问题 🚨+- type: checkboxes+ id: no-duplicate+ attributes:+ label: 检查清单+ options:+ - label: 我已搜索现有 Issue 和 Discussions,确认没有重复+ required: true- type: textareaid: problem-description- validations:- required: true- attributes:+ attributes:label: 问题描述- description: 描述你想要解决的问题或者功能的使用场景- placeholder: |- 请描述你遇到的问题或者链接到已存在的 issue.- 从用户故事开始, 简明扼要的说明该功能的适用场景。- 说明当前应用在没有该功能情况下对你造成了哪些困扰,而有了这项功能后又能为用户创造怎样的价值+ description: 你想解决什么问题?当前缺少这个功能给你带来了什么困扰?+ validations:+ required: true- type: textareaid: solution-description- validations:+ attributes:+ label: 期望方案+ description: 你期望的解决方式是什么?+ validations:required: true- attributes:- label: 描述解决方案- description: 说说对于该问题, 你预期的解决方案是怎样的- placeholder: |- 尽量清晰地描述你所预期的解决方案,它会以怎样的方式解决你所遇到的问题,这有助于开发者做出符合你预期的更新- type: textareaid: alternatives- attributes:+ attributes:label: 备选方案- description: 问题的解决方法不止一种,也许你有一个退而求其次的方案- placeholder: |- 当前一种解决方案难以实现时,你是否考虑了其他的替代方案?是否有一个最低的,可接受的实现目标?- type: textareaid: additional-infoattributes:- label: 附加信息- description: 添加一些你认为有必要的备注信息,或者展示一些能表现你思路的草图, 以及你是否愿意提交 Pull Request 来实现这个功能+ label: 补充信息render: markdowndiff --git a/.github/ISSUE_TEMPLATE/feature_request_en.yml b/.github/ISSUE_TEMPLATE/feature_request_en.ymlindex dab3d88a..261740da 100644--- a/.github/ISSUE_TEMPLATE/feature_request_en.yml+++ b/.github/ISSUE_TEMPLATE/feature_request_en.yml@@ -1,51 +1,40 @@-name: Feature request (EN)-description: Suggest an idea or improvement for the project-title: "[Feature] My title"+name: Feature Request (EN)+description: Suggest an idea or improvement+title: "[Feature] "labels:- "✨Enhancement"-assignees: XiaoYouChRbody:-- type: markdown+- type: checkboxes+ id: no-duplicateattributes:- value: |- ## Before you start- 🚨 Please fill out the form below as completely as possible. If key details are missing, the issue may be closed before investigation. 🚨+ label: Checklist+ options:+ - label: I have searched existing issues and Discussions to confirm this is not a duplicate+ required: true- type: textareaid: problem-description- validations:- required: trueattributes:label: Problem description- description: Describe the problem you want to solve or the scenario where this feature would be useful- placeholder: |- Please describe the problem you encountered, or link to an existing issue.- Start with the user story and briefly explain the scenario where this feature is needed.- Explain what difficulties the current app causes without this feature, and what value it would create for users once added.+ description: What problem are you trying to solve? What difficulty does the current app cause without this feature?+ validations:+ required: true- type: textareaid: solution-description- validations:- required: trueattributes:label: Proposed solution- description: Describe the solution you expect for this problem- placeholder: |- Describe your expected solution as clearly as possible.- Explain how it would solve the problem you are facing so developers can better align the implementation with your expectations.+ description: How do you expect this to work?+ validations:+ required: true- type: textareaid: alternativesattributes:label: Alternatives- description: There may be more than one way to solve the problem. You might have a fallback option as well- placeholder: |- If the preferred solution is difficult to implement, have you considered any alternative approaches?- Is there a minimum acceptable implementation that would still help?- type: textareaid: additional-infoattributes:label: Additional information- description: Add any extra notes you think are useful, sketches that show your idea, and whether you would be willing to submit a pull request for this featurerender: markdowndiff --git a/.github/workflows/auto-confirmed.yml b/.github/workflows/auto-confirmed.ymlnew file mode 100644index 00000000..0de31903--- /dev/null+++ b/.github/workflows/auto-confirmed.yml@@ -0,0 +1,29 @@+name: Auto Confirmed+on:+ issue_comment:+ types: [created]++jobs:+ auto-confirm:+ if: >-+ !github.event.issue.pull_request &&+ github.event.comment.user.login == github.repository_owner+ runs-on: ubuntu-latest+ steps:+ - uses: actions/github-script@v9+ with:+ script: |+ const issue = await github.rest.issues.get({+ owner: context.repo.owner,+ repo: context.repo.repo,+ issue_number: context.issue.number+ });+ const labels = issue.data.labels.map(l => l.name);+ if (!labels.includes('🔍needs-info')) {+ await github.rest.issues.addLabels({+ owner: context.repo.owner,+ repo: context.repo.repo,+ issue_number: context.issue.number,+ labels: ['✅confirmed']+ });+ }diff --git a/.github/workflows/needs-info-close.yml b/.github/workflows/needs-info-close.ymlnew file mode 100644index 00000000..a090ca06--- /dev/null+++ b/.github/workflows/needs-info-close.yml@@ -0,0 +1,21 @@+name: Needs Info Close+on:+ schedule:+ - cron: '0 2 * * *'++jobs:+ close-needs-info:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/stale@v11+ with:+ only-labels: '🔍needs-info'+ days-before-stale: -1+ days-before-close: 10+ close-issue-message: >-+ 此 issue 因等待补充信息超过 10 天未收到回复而被自动关闭。+ 如果问题仍然存在,请补充所需信息后重新打开。+ close-issue-reason: not_planned+ days-before-pr-stale: -1+ days-before-pr-close: -1+ operations-per-run: 50diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.ymlnew file mode 100644index 00000000..4d8d196a--- /dev/null+++ b/.github/workflows/stale.yml@@ -0,0 +1,25 @@+name: Stale Issues+on:+ schedule:+ - cron: '0 3 * * *'++jobs:+ stale:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/stale@v11+ with:+ days-before-stale: 30+ days-before-close: 7+ stale-issue-message: >-+ 此 issue 已超过 30 天没有活动,将在 7 天后自动关闭。+ 如仍需处理,请回复或添加新信息。+ close-issue-message: >-+ 此 issue 因长期无活动已自动关闭。+ 如果问题仍然存在,欢迎重新打开。+ stale-issue-label: '⏰stale'+ exempt-issue-labels: '✅confirmed,⏸️blocked-upstream'+ close-issue-reason: not_planned+ days-before-pr-stale: -1+ days-before-pr-close: -1+ operations-per-run: 100diff --git a/.github/workflows/title-check.yml b/.github/workflows/title-check.ymlnew file mode 100644index 00000000..6e3fc4bf--- /dev/null+++ b/.github/workflows/title-check.yml@@ -0,0 +1,27 @@+name: Title Check+on:+ issues:+ types: [opened]++jobs:+ check-title:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/github-script@v9+ with:+ script: |+ const title = context.payload.issue.title;+ if (/我的标题|My title/i.test(title) || /^\[(Bug|Feature)\]\s*$/.test(title)) {+ await github.rest.issues.createComment({+ owner: context.repo.owner,+ repo: context.repo.repo,+ issue_number: context.issue.number,+ body: '请修改 issue 标题为对问题的简要描述。\nPlease update the issue title to a brief description of your problem.'+ });+ await github.rest.issues.addLabels({+ owner: context.repo.owner,+ repo: context.repo.repo,+ issue_number: context.issue.number,+ labels: ['🔍needs-info']+ });+ }