Skip to content

重写 ISSUE_TEMPLATE 以匹配 AddImgTag 扩展项目 / Rewrite ISSUE_TEMPLATE for AddImgTag extension project#3

Merged
ZoruaFox merged 3 commits intomainfrom
copilot/fix-39fa64bc-9e08-4514-903d-b0ce2d2fd303
Sep 25, 2025
Merged

重写 ISSUE_TEMPLATE 以匹配 AddImgTag 扩展项目 / Rewrite ISSUE_TEMPLATE for AddImgTag extension project#3
ZoruaFox merged 3 commits intomainfrom
copilot/fix-39fa64bc-9e08-4514-903d-b0ce2d2fd303

Conversation

Copy link
Contributor

Copilot AI commented Sep 25, 2025

问题 / Issue

现有的 GitHub Issue 模板是从其他项目(YouShou Archives)复制的通用模板,与 AddImgTag 扩展项目的实际情况不符。模板中包含了不相关的引用和字段,无法有效收集与 MediaWiki 扩展相关的问题信息。

The existing GitHub issue templates were generic templates copied from another project (YouShou Archives) and didn't match the actual context of the AddImgTag extension project. The templates contained irrelevant references and fields that couldn't effectively collect MediaWiki extension-related issue information.

解决方案 / Solution

完全重写了 Issue 模板,使其专门针对 AddImgTag 扩展:

Completely rewrote the issue templates to be specifically tailored for the AddImgTag extension:

🐛 漏洞报告模板 / Bug Report Template

  • 移除了与 "档案馆" 和安全漏洞相关的无关内容
  • 添加了 MediaWiki 版本和扩展版本字段
  • 创建了 AddImgTag 特定的问题分类:
    • <img> 标签解析
    • {{#img:}} 解析器函数
    • 白名单/黑名单功能
    • 配置相关问题
  • 添加了扩展配置字段,便于调试问题
  • 改进了问题描述结构,包含期望行为 vs 实际行为

功能请求模板 / Feature Request Template

  • 针对 AddImgTag 扩展功能进行定制
  • 添加了相关的功能分类:
    • 标签支持
    • 解析器函数
    • 安全功能
    • 配置选项
    • 性能优化
  • 包含了使用场景、当前限制和实现建议字段
  • 添加了使用示例部分,展示 HTML 标签和解析器函数语法

⚙️ 配置文件 / Configuration File

  • 创建了新的 config.yml 文件
  • 添加了有用的链接:项目文档、讨论区、MediaWiki 官方文档
  • 保持了中英双语支持

技术改进 / Technical Improvements

  • 项目特定性:所有模板现在都反映了 AddImgTag 扩展的实际功能
  • 更好的用户体验:更结构化的表单,包含相关的下拉选项和必填字段
  • 增强调试能力:添加了 MediaWiki 版本、扩展版本和配置详情字段
  • 有效的 YAML:所有文件都通过了 YAML 语法验证
  • 正确的仓库链接:所有引用都更新为指向正确的仓库地址

All templates now properly reflect the AddImgTag extension's purpose as a MediaWiki extension that adds <img> tag and {{#img:}} parser function support for MediaWiki 1.43+.

测试 / Testing

  • ✅ YAML 语法验证通过
  • ✅ 所有仓库链接已更新为正确地址
  • ✅ 保持了原有的维护者分配(ZoruaFox 和 ajdgg)
  • ✅ 中英双语支持完整

Fixes the issue by providing project-appropriate issue templates that will help users report bugs and request features more effectively for the AddImgTag MediaWiki extension.

Original prompt

请根据本项目实际情况,重新编写ISSUE_TEMPLATE
请根据本项目实际情况,重新编写ISSUE_TEMPLATE

Created from VS Code via the [GitHub Pull Request](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github) extension.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@ZoruaFox
Copy link
Member

原来你是这么个代理法啊

Co-authored-by: ZoruaFox <96456728+ZoruaFox@users.noreply.github.com>
Copilot AI changed the title [WIP] 请根据本项目实际情况,重新编写ISSUE_TEMPLATE 重写 ISSUE_TEMPLATE 以匹配 AddImgTag 扩展项目 / Rewrite ISSUE_TEMPLATE for AddImgTag extension project Sep 25, 2025
Copilot AI requested a review from ZoruaFox September 25, 2025 04:26
Removed urgency dropdown from bug report template.

Signed-off-by: ZoruaFox <96456728+ZoruaFox@users.noreply.github.com>
@coderabbitai
Copy link

coderabbitai bot commented Sep 25, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Comment @coderabbitai help to get the list of available commands and usage tips.

@ZoruaFox ZoruaFox marked this pull request as ready for review September 25, 2025 04:29
@ZoruaFox ZoruaFox merged commit 1a7fa13 into main Sep 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants