From 3bffd766262805eba3b076e60497d9b73ebd3518 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Wed, 8 Apr 2026 18:49:16 +0800 Subject: [PATCH] chore: update github templates --- .github/ISSUE_TEMPLATE/bug_report.yml | 50 +++++++++++----------- .github/ISSUE_TEMPLATE/feature_request.yml | 23 ++++------ .github/PULL_REQUEST_TEMPLATE.md | 12 +++--- 3 files changed, 38 insertions(+), 47 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 6d5ddc7..a21da11 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,61 +1,59 @@ name: Bug Report description: Report a bug title: '[Bug] ' -labels: ['bug'] +type: Bug body: - type: markdown attributes: value: | - Thanks for your interest in improving the project! Before submitting, please read our guidelines. - 感谢您对改进项目的兴趣!提交前请阅读我们的指南。 + Thanks for your interest in improving the project! Before submitting, please search for existing issues. + 感谢参与我们的社区!请先搜索现有 Issue,避免重复提交。 - [Code of Conduct](https://github.com/alibaba/page-agent/blob/main/docs/CODE_OF_CONDUCT.md) - [Contributing Guide](https://github.com/alibaba/page-agent/blob/main/CONTRIBUTING.md) + > 为了让更多人参与讨论,请尽量使用英文提交 Issue,感谢理解 🙏 + - type: textarea id: description attributes: - label: What happened? - placeholder: Describe the bug and expected behavior + label: What happened? / 问题描述 + description: Describe what you expected vs what actually happened. + placeholder: 'A clear description of the bug.' validations: required: true - type: textarea - id: code + id: reproduction attributes: - label: Code - render: typescript - placeholder: Minimal reproduction code + label: How to reproduce / 如何复现 + description: Provide steps, URL, config or code snippet to reproduce the bug. + placeholder: '1. Open URL: https://...' validations: - required: false + required: true + + - type: input + id: version + attributes: + label: Version + placeholder: '0.0.0' - type: input id: browser attributes: label: Browser - placeholder: 'Chrome 120, Firefox 119, etc.' - validations: - required: false - - - type: input - id: version - attributes: - label: version - placeholder: '0.0.0' - validations: - required: false + placeholder: 'e.g. Chrome 130' - type: checkboxes - id: community + id: checklist attributes: - label: Community Communication / 社区沟通 - description: Confirm you will communicate respectfully and constructively / 确认将以礼貌、建设性的方式沟通 + label: Before submitting options: - label: I will be polite and respectful. / 我会保持礼貌与尊重。 required: true - - label: I will share constructive, actionable suggestions. / 我会提供建设性、可行动的建议。 - required: true - label: I have read the Code of Conduct. / 我已阅读行为准则。 required: true + - label: I have searched existing issues and this is not a duplicate. + required: true validations: required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 76c686e..7a7ec6a 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,32 +1,28 @@ name: Feature Request description: Suggest a feature title: '[Feature] ' -labels: ['enhancement'] +type: Feature body: - type: markdown attributes: value: | - Thanks for your interest in improving the project! Before submitting, please read our guidelines. - 感谢您对改进项目的兴趣!提交前请阅读我们的指南。 + Thanks for your interest in improving the project! Before submitting, please search for existing issues. + 感谢参与我们的社区!请先搜索现有 Issue,避免重复提交。 - [Code of Conduct](https://github.com/alibaba/page-agent/blob/main/docs/CODE_OF_CONDUCT.md) - [Contributing Guide](https://github.com/alibaba/page-agent/blob/main/CONTRIBUTING.md) + > 为了让更多人参与讨论,请尽量使用英文提交 Issue,感谢理解 🙏 + - type: textarea id: description attributes: label: Feature Description / 功能描述 - description: Describe the problem, solution, and any API changes. / 描述问题、解决方案以及 API 变更。 + description: Describe the problem, solution, and any API changes. placeholder: | **Problem**: - What problem does this solve? - **Solution**: - How should this work? - **Proposed API**: - ```typescript - // code here ``` validations: required: true @@ -34,14 +30,13 @@ body: - type: checkboxes id: community attributes: - label: Community Communication / 社区沟通 - description: Confirm you will communicate respectfully and constructively / 确认将以礼貌、建设性的方式沟通 + label: Before submitting options: - label: I will be polite and respectful. / 我会保持礼貌与尊重。 required: true - - label: I will share constructive, actionable suggestions. / 我会提供建设性、可行动的建议。 - required: true - label: I have read the CODE_OF_CONDUCT.md and CONTRIBUTING.md. / 我已阅读行为准则。 required: true + - label: I have searched existing issues and this is not a duplicate. + required: true validations: required: true diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index eed8cee..987cf97 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,15 +2,15 @@ Brief description of changes. +Closes #(issue) + ## Type +- [ ] Breaking change - [ ] Bug fix - [ ] Feature / Improvement -- [ ] Refactor -- [ ] Documentation -- [ ] Website -- [ ] Demo / Testing -- [ ] Breaking change +- [ ] Refactor / Chores +- [ ] Documentation / Website / Demo / Testing ## Testing @@ -18,8 +18,6 @@ Brief description of changes. - [ ] No console errors - [ ] Types/doc added -Closes #(issue) - ## Requirements / 要求 - [ ] I have read and follow the [Code of Conduct](../docs/CODE_OF_CONDUCT.md) and [Contributing Guide](../CONTRIBUTING.md) . / 我已阅读并遵守行为准则。