diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index a22c9e4303dcf2b40c50879414b8311d38184c82..3981dae22b3a49313124b2f6c24ded4142b5a914 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 59f95cee0b8e750ce737b9c207f3dd6b159a1af1..f08e81c1c363a13bab8341188b708f08706f8220 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 e1c5ae6607c7f3c92a45d9eb311bbc2b9a50243d..0336bb3d4c9234d77105f6b250ed48ff6a0320eb 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