From bd1864e8541fe580219012ce0f2b38ccdbca0d8d Mon Sep 17 00:00:00 2001 From: labuladong Date: Sun, 19 Mar 2023 18:12:35 +0800 Subject: [PATCH] Update bug_report.yml --- .github/ISSUE_TEMPLATE/bug_report.yml | 15 ++++++++++----- .github/PULL_REQUEST_TEMPLATE.md | 8 ++++++-- .../contribution-guide.md" | 6 +++++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index a22c9e4..3981dae 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,11 +1,16 @@ name: 报告错误的解法代码 -title: "[bug] {这里替换为出错的力扣题号和题目} {这里替换为出错的编程语言}" -description: +title: "[bug][{这里替换为出错的编程语言}] {这里替换为出错的力扣题目标识符} " +description: "反馈我的刷题全家桶中的错误。" labels: [ "code bug" ] body: + - type: markdown + attributes: + value: | + 力扣题目标识符是题目 URL 的最后一部分。比如 [https://leetcode.cn/problems/search-a-2d-matrix/](https://leetcode.cn/problems/search-a-2d-matrix/) 这道题标识符就是 `search-a-2d-matrix`。请补全 issue 题目,示例:`[bug][golang] search-a-2d-matrix`. + - type: checkboxes attributes: - label: Search before asking + label: 请在提交 bug 之前先搜索 description: > 请先搜索 [issues](https://github.com/labuladong/fucking-algorithm/issues) 确保你提的这个 bug 还没有被提交过。 options: @@ -17,7 +22,7 @@ body: label: 出错的题目链接 description: | 输入力扣的题目链接 - placeholder: e.g. https://leetcode.cn/problems/search-a-2d-matrix/ + placeholder: 例如 https://leetcode.cn/problems/search-a-2d-matrix/ validations: required: true - type: textarea @@ -41,4 +46,4 @@ body: - label: 我愿意! - type: markdown attributes: - value: "感谢你的支持,刷题全家桶会因你变得越来越好!" \ No newline at end of file + value: "感谢你的支持,[labuladong 的刷题全家桶](https://labuladong.github.io/article/fname.html?fname=全家桶简介) 会因你变得越来越好!" diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 59f95ce..f08e81c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,9 +1,13 @@ + + +Fixes + 我修改的是如下题目的 xx 解法: diff --git "a/\345\244\232\350\257\255\350\250\200\350\247\243\346\263\225\344\273\243\347\240\201/contribution-guide.md" "b/\345\244\232\350\257\255\350\250\200\350\247\243\346\263\225\344\273\243\347\240\201/contribution-guide.md" index e1c5ae6..0336bb3 100644 --- "a/\345\244\232\350\257\255\350\250\200\350\247\243\346\263\225\344\273\243\347\240\201/contribution-guide.md" +++ "b/\345\244\232\350\257\255\350\250\200\350\247\243\346\263\225\344\273\243\347\240\201/contribution-guide.md" @@ -8,6 +8,10 @@ chatGPT 的改写效果还是非常不错的,不过难免还是存在一些错误,所以我希望能够和大家一起来修正这些错误。 +## 如何反馈错误 + +如果你发现某些解法代码不能通过力扣的所有测试用例(一般都是 chatGPT 改写的解法代码会出现这种情况,我的解法代码都是通过测试才发布的),可以 [点这里](https://github.com/labuladong/fucking-algorithm/issues/new?assignees=&labels=code+bug&template=bug_report.yml&title=%5Bbug%5D%5B%7B%E8%BF%99%E9%87%8C%E6%9B%BF%E6%8D%A2%E4%B8%BA%E5%87%BA%E9%94%99%E7%9A%84%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80%7D%5D+%7B%E8%BF%99%E9%87%8C%E6%9B%BF%E6%8D%A2%E4%B8%BA%E5%87%BA%E9%94%99%E7%9A%84%E5%8A%9B%E6%89%A3%E9%A2%98%E7%9B%AE%E6%A0%87%E8%AF%86%E7%AC%A6%7D+) 按照模板提交 issue,我和其他小伙伴会提交 PR 修复这些错误。 + ## 如何修正错误 首先,感谢你愿意为我的插件提供的解法代码纠错,你向本仓库提交 PR 修复错误后,你将成为本仓库的 contributor,出现在仓库首页的贡献者列表中。本仓库已经获得了 115k star,你的贡献将会被许多人看到。 @@ -65,6 +69,6 @@ chatGPT 的改写效果还是非常不错的,不过难免还是存在一些错 2、把我的解法翻译成多语言的目的是帮助不同背景的小伙伴理解算法思维,所以你修改的代码可以不是效率最优的,但应该尽可能和我的解法思路保持一致,且包含我的解法中的完整注释。 -3、你的 PR 描述中需要包含代码通过所有测试用例截图。 +3、你的 PR 描述中需要包含代码通过所有测试用例截图。PR 标题的格式为 `[fix][{lang}] {slug}`,其中 `{lang}` 需要替换为你修复的解法语言,比如 `[fix][cpp]`,`{slug}` 需要替换为你修复的题目的标识符(题目 URL 的最后一部分),比如 [https://leetcode.cn/problems/search-a-2d-matrix/](https://leetcode.cn/problems/search-a-2d-matrix/) 这道题的标识符就是 `search-a-2d-matrix`。 **你可以查看这个 PR 作为案例**:https://github.com/labuladong/fucking-algorithm/pull/1112 \ No newline at end of file -- GitLab