Skip to content

docs(discussions): add lightweight q-and-a discussion template#5385

Open
njzjz-bot wants to merge 7 commits intodeepmodeling:masterfrom
njzjz-bot:copilot/fix-4506
Open

docs(discussions): add lightweight q-and-a discussion template#5385
njzjz-bot wants to merge 7 commits intodeepmodeling:masterfrom
njzjz-bot:copilot/fix-4506

Conversation

@njzjz-bot
Copy link
Copy Markdown
Contributor

@njzjz-bot njzjz-bot commented Apr 7, 2026

Problem

Change

  • add a single lightweight Q&A discussion form at .github/DISCUSSION_TEMPLATE/q-a.yml
  • make most technical fields optional and explicitly ask users to fill them only when relevant
  • align field names with the existing issue templates where practical
  • document the discussion-template slug/schema constraints in .github/DISCUSSION_TEMPLATE/README.md
  • keep the documentation changes that were already part of Add GitHub Discussion templates with emphasis on reproducible examples #4902

Notes

Authored by OpenClaw (model: gpt-5.4)

Summary by CodeRabbit

  • Documentation
    • Added a new Q&A discussion template for GitHub Discussions with structured form fields to capture technical questions, environment details, versions, and reproducible examples.
    • Added documentation describing available discussion templates and usage guidelines for community contributions.

Copilot AI and others added 6 commits August 21, 2025 10:02
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
…Discussions rejected the templates on this branch because the form files used invalid top-level keys such as and \n- Several template filenames also did not match the actual discussion category slugs\n\nChange\n- replace invalid top-level keys with supported discussion form keys\n- rename templates to match category slugs and drop the unmatched extra template\n- update the template README to document the valid mapping\n\nAuthored by OpenClaw (model: gpt-5.4)
Problem
- The current discussion templates are broader than needed for this branch
- The Q&A form asks for overlapping information and treats software-specific details as too central

Change
- keep only the Q&A discussion template
- make most fields optional and clarify that users should fill them only when relevant
- align field labels with the existing issue templates where practical
- merge the latest upstream master into the branch

Authored by OpenClaw (model: gpt-5.4)
@github-actions github-actions bot added the Docs label Apr 7, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 7, 2026

📝 Walkthrough

Walkthrough

Added GitHub Discussions template configuration with a Q&A form template and documentation. The template includes fields for questions, environment details, version information, and reproducible examples. The README documents the template structure and GitHub Discussion form key limitations.

Changes

Cohort / File(s) Summary
GitHub Discussions Q&A Template
.github/DISCUSSION_TEMPLATE/README.md, .github/DISCUSSION_TEMPLATE/q-a.yml
Added Q&A discussion form template with structured fields for technical questions, environment details, and reproducible examples. Includes documentation describing template usage, filename/category matching, and form key constraints.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely summarizes the main change: adding a lightweight Q&A discussion template for GitHub Discussions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (3)
.github/DISCUSSION_TEMPLATE/q-a.yml (3)

47-83: Excellent placeholder example for reproducible cases.

The structured placeholder for the reproducible example (lines 63-80) is particularly helpful, showing users exactly how to format commands, config, expected behavior, and actual results. This will significantly improve the quality of Q&A submissions.

Similar to the earlier fields, consider removing empty placeholder:, value: keys at lines 52, 53, and 81 for consistency.

♻️ Optional cleanup
   - type: textarea
     id: details
     attributes:
       label: Details
       description: "If applicable, add more context such as what you are trying to do, what you have tried, and where you got stuck."
-      placeholder:
-      value:
     validations:
       required: false
         Actual behavior / error message:
         ...
-      value:
     validations:
       required: false
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/DISCUSSION_TEMPLATE/q-a.yml around lines 47 - 83, Remove the
redundant empty keys by deleting the empty "placeholder:" and "value:" entries
for the textarea with id "details" and the textarea with id
"reproducible-example"; locate the blocks defining id: details and id:
reproducible-example and remove their empty placeholder and value lines so the
YAML is consistent and has no superfluous empty keys.

84-92: Good comprehensive final field for additional context.

The "Further Information, Files, and Links" field provides a good catch-all for supplementary information. Consider removing the empty placeholder: and value: keys at lines 89-90 for consistency with the earlier cleanup suggestions.

♻️ Optional cleanup
   - type: textarea
     id: further
     attributes:
       label: Further Information, Files, and Links
       description: Put any additional information here, including links to docs, papers, related issues, screenshots, or external resources.
-      placeholder:
-      value:
     validations:
       required: false
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/DISCUSSION_TEMPLATE/q-a.yml around lines 84 - 92, Remove the
unnecessary empty YAML keys under the "further" textarea field: delete the empty
placeholder: and value: entries so the attributes block only contains label and
description; locate the textarea with id: further and attributes.label "Further
Information, Files, and Links" and remove those two keys to match the earlier
cleanup style.

13-46: Consider removing empty YAML keys for cleaner code.

The form structure is correct and the field descriptions are helpful. However, empty value: and placeholder: keys (lines 19, 43, 44) add no value and can be omitted entirely in YAML.

♻️ Proposed cleanup
   - type: textarea
     id: question
     attributes:
       label: Question
       description: Please describe your question clearly.
       placeholder: What would you like to ask?
-      value:
     validations:
       required: true
   - type: textarea
     id: other-version
     attributes:
       label: Python Version, CUDA Version, GCC Version, LAMMPS Version, etc
       description: "If applicable, specify your platform or environment details."
-      placeholder:
-      value:
     validations:
       required: false
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/DISCUSSION_TEMPLATE/q-a.yml around lines 13 - 46, Remove the
redundant empty YAML keys by deleting the empty "value:" and "placeholder:"
entries found under the form items (e.g., the "question" textarea and the
"other-version" textarea where empty value/placeholder keys appear); keep all
other attributes (id, label, description, validations) intact so the form
semantics remain unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/DISCUSSION_TEMPLATE/q-a.yml:
- Around line 47-83: Remove the redundant empty keys by deleting the empty
"placeholder:" and "value:" entries for the textarea with id "details" and the
textarea with id "reproducible-example"; locate the blocks defining id: details
and id: reproducible-example and remove their empty placeholder and value lines
so the YAML is consistent and has no superfluous empty keys.
- Around line 84-92: Remove the unnecessary empty YAML keys under the "further"
textarea field: delete the empty placeholder: and value: entries so the
attributes block only contains label and description; locate the textarea with
id: further and attributes.label "Further Information, Files, and Links" and
remove those two keys to match the earlier cleanup style.
- Around line 13-46: Remove the redundant empty YAML keys by deleting the empty
"value:" and "placeholder:" entries found under the form items (e.g., the
"question" textarea and the "other-version" textarea where empty
value/placeholder keys appear); keep all other attributes (id, label,
description, validations) intact so the form semantics remain unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 657441a9-d821-4212-af53-61fb1fc44517

📥 Commits

Reviewing files that changed from the base of the PR and between 52792f0 and fd53615.

📒 Files selected for processing (2)
  • .github/DISCUSSION_TEMPLATE/README.md
  • .github/DISCUSSION_TEMPLATE/q-a.yml

@njzjz njzjz requested a review from wanghan-iapcm April 7, 2026 17:29
@njzjz njzjz linked an issue Apr 7, 2026 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.39%. Comparing base (52792f0) to head (fd53615).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5385      +/-   ##
==========================================
- Coverage   80.39%   80.39%   -0.01%     
==========================================
  Files         812      812              
  Lines       83476    83476              
  Branches     4051     4050       -1     
==========================================
- Hits        67113    67112       -1     
  Misses      15139    15139              
- Partials     1224     1225       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add discussion template

2 participants