Skip to content

Commit 4559395

Browse files
committed
fix(review-feedback-1244): address latest review comments
1 parent 4afb772 commit 4559395

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
blank_issues_enabled: true
1+
blank_issues_enabled: false
22
contact_links:
33
- name: 💬 讨论区 / Discussions
44
url: https://github.com/ZhuLinsen/daily_stock_analysis/discussions

tests/test_issue_templates.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
ISSUE_TEMPLATE_DIR = ROOT / ".github" / "ISSUE_TEMPLATE"
88
BUG_REPORT_FORM = ISSUE_TEMPLATE_DIR / "bug_report.yml"
99
BUG_REPORT_MARKDOWN = ISSUE_TEMPLATE_DIR / "bug_report.md"
10+
ISSUE_TEMPLATE_CONFIG = ISSUE_TEMPLATE_DIR / "config.yml"
1011

1112

1213
def _body_item(form, item_id):
@@ -19,9 +20,12 @@ def _body_item(form, item_id):
1920
def test_bug_report_uses_single_required_issue_form():
2021
assert BUG_REPORT_FORM.exists()
2122
assert not BUG_REPORT_MARKDOWN.exists()
23+
assert ISSUE_TEMPLATE_CONFIG.exists()
2224

2325
form = yaml.safe_load(BUG_REPORT_FORM.read_text(encoding="utf-8"))
26+
config = yaml.safe_load(ISSUE_TEMPLATE_CONFIG.read_text(encoding="utf-8"))
2427

28+
assert config["blank_issues_enabled"] is False
2529
assert form["title"] == "[Bug] "
2630
assert "bug" in form["labels"]
2731
assert isinstance(form["body"], list)

0 commit comments

Comments
 (0)