From dc22448cb63186f72346591fda5cffe55659fc70 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 08:17:43 -0500 Subject: [PATCH] docs: Update issue and PR templates (#325) (#340) This does a few things: 1. Automatically applies relevant labels on new issues/PRs as users submit them. 2. Cleans up and syncs the structure of all of the issue templates. 3. Updates the PR template to remind folks to use `unclog` format when submitting changelog entries. Templates rendered: - [Bug report](https://github.com/cometbft/cometbft/blob/thane/324-update-issue-pr-templates/.github/ISSUE_TEMPLATE/bug-report.md) - [Feature request](https://github.com/cometbft/cometbft/blob/thane/324-update-issue-pr-templates/.github/ISSUE_TEMPLATE/feature-request.md) - [Protocol change proposal](https://github.com/cometbft/cometbft/blob/thane/324-update-issue-pr-templates/.github/ISSUE_TEMPLATE/proposal.md) - [Pull request template](https://github.com/cometbft/cometbft/blob/thane/324-update-issue-pr-templates/.github/PULL_REQUEST_TEMPLATE.md) --- #### PR checklist - [x] Tests written/updated, or no tests needed - [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed - [x] Updated relevant documentation (`docs/`) and code comments, or no documentation updates needed (cherry picked from commit 3dd985b78ec77d9656f38a3a078941951ac67682) Co-authored-by: Thane Thomson --- .github/ISSUE_TEMPLATE/bug-report.md | 56 +++++++++++++++++++---- .github/ISSUE_TEMPLATE/feature-request.md | 12 +++-- .github/ISSUE_TEMPLATE/proposal.md | 12 ++--- .github/PULL_REQUEST_TEMPLATE.md | 8 ++-- .github/issue_template.md | 4 ++ 5 files changed, 67 insertions(+), 25 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index e519c322c..6afb939c0 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -1,7 +1,7 @@ --- name: Bug report about: Create a report to help us squash bugs! - +labels: bug, needs-triage --- +## Bug Report + +### Setup + **CometBFT version** (use `cometbft version` or `git rev-parse --verify HEAD` if installed from source): +**Have you tried the latest version**: yes/no **ABCI app** (name for built-in, URL for self-written if it's publicly available): @@ -25,23 +30,54 @@ ask you to provide additional logs and data (CometBFT & App). - **Install tools**: - **Others**: +**node command runtime flags**: -**What happened**: +### Config + -**Have you tried the latest version**: yes/no +### What happened? -**How to reproduce it** (as minimally and precisely as possible): +### What did you expect to happen? -**Logs (paste a small part showing an error (< 10 lines) or link a pastebin, gist, etc. containing more of the log file)**: +### How to reproduce it -**Config (you can paste only the changes you've made)**: + + +### Logs + + + +### `dump_consensus_state` output + + + +### Anything else we need to know + + -**Anything else we need to know**: diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md index bb1c2b8c0..e2b1f2307 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -1,7 +1,7 @@ --- name: Feature request about: Create a proposal to request a feature - +labels: enhancement, needs-triage --- -## Summary +## Feature Request + +### Summary -## Problem Definition +### Problem Definition - -## Proposal +### Proposal diff --git a/.github/ISSUE_TEMPLATE/proposal.md b/.github/ISSUE_TEMPLATE/proposal.md index 34a47b354..29f4ba65c 100644 --- a/.github/ISSUE_TEMPLATE/proposal.md +++ b/.github/ISSUE_TEMPLATE/proposal.md @@ -1,7 +1,7 @@ --- name: Protocol change proposal about: Create a proposal to request a change to the protocol - +labels: protocol-change, needs-triage --- -# Protocol Change Proposal +## Protocol Change Proposal -## Summary +### Summary -## Problem Definition +### Problem Definition - -## Proposal +### Proposal diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f20847973..ca20f213e 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -25,8 +25,8 @@ https://github.com/orgs/cometbft/projects/1 #### PR checklist -- [ ] Tests written/updated, or no tests needed -- [ ] `CHANGELOG_PENDING.md` updated, or no changelog entry needed -- [ ] Updated relevant documentation (`docs/`) and code comments, or no - documentation updates needed +- [ ] Tests written/updated +- [ ] Changelog entry added in `.changelog` (we use + [unclog](https://github.com/informalsystems/unclog) to manage our changelog) +- [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments diff --git a/.github/issue_template.md b/.github/issue_template.md index a0b5a0377..4514e4abf 100644 --- a/.github/issue_template.md +++ b/.github/issue_template.md @@ -1,3 +1,7 @@ +--- +labels: needs-triage +--- +