From 2c23615fd4006cc5670d22f92fef549016e7cf57 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 22 Nov 2024 16:40:07 -0500 Subject: [PATCH] Add pull request and issue templates --- .github/ISSUE_TEMPLATE/01_BUG_REPORT.md | 61 +++++++++++++++++++ .github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md | 24 ++++++++ .github/PULL_REQUEST_TEMPLATE.md | 40 ++++++++++++ .../.github/ISSUE_TEMPLATE/01_BUG_REPORT.md | 61 +++++++++++++++++++ .../ISSUE_TEMPLATE/01_FEATURE_REQUEST.md | 24 ++++++++ .../default/.github/PULL_REQUEST_TEMPLATE.md | 40 ++++++++++++ test/test_basics.jl | 11 +++- 7 files changed, 260 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/01_BUG_REPORT.md create mode 100644 .github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 templates/default/.github/ISSUE_TEMPLATE/01_BUG_REPORT.md create mode 100644 templates/default/.github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md create mode 100644 templates/default/.github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/01_BUG_REPORT.md b/.github/ISSUE_TEMPLATE/01_BUG_REPORT.md new file mode 100644 index 0000000..1f5bc9f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/01_BUG_REPORT.md @@ -0,0 +1,61 @@ +--- +name: ITensorPkgSkeleton.jl bug report +about: Create a bug report to help us improve ITensorPkgSkeleton.jl +title: "[ITensorPkgSkeleton] [BUG] YOUR SHORT DESCRIPTION OF THE BUG HERE" +labels: ["ITensorPkgSkeleton", "bug"] +assignees: '' + +--- + +**Description of bug** + +Please give a brief description of the bug or unexpected behavior here. + +**Minimal code demonstrating the bug or unexpected behavior** + +If applicable, provide a minimal code that can be run to demonstrate the bug or unexpected behavior. + +If you are unable to construct a minimal code that demonstrates the bug or unexpected behavior, provide detailed steps for how to reproduce the behavior you are seeing. + +
Minimal runnable code

+ +```julia +[YOUR MINIMAL RUNNABLE CODE HERE] +``` +

+ + +**Expected output or behavior** + +Describe what you expected to happen. + +If you provided a minimal code that can be run to demonstrate the bug or unexpected behavior, describe what you expected the output would be. + + +**Actual output or behavior** + +Describe what actually happened. + +If you provided a minimal code that demonstrates the bug or unexpected behavior, provide the output you get from that code. If the code leads to an error or warning, include the full error or warning below. + +
Output of minimal runnable code

+ +```julia +[OUTPUT OF YOUR MINIMAL RUNNABLE CODE HERE] +``` + +

+ + +**Version information** + + - Output from `versioninfo()`: +```julia +julia> versioninfo() +[YOUR OUTPUT HERE] +``` + - Output from `using Pkg; Pkg.status("ITensorPkgSkeleton")`: +```julia +julia> using Pkg; Pkg.status("ITensorPkgSkeleton") +[YOUR OUTPUT HERE] +``` diff --git a/.github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md new file mode 100644 index 0000000..6a0172b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md @@ -0,0 +1,24 @@ +--- +name: ITensorPkgSkeleton.jl feature request +about: Suggest an idea for ITensorPkgSkeleton.jl +title: "[ITensorPkgSkeleton] [ENHANCEMENT] YOUR SHORT DESCRIPTION OF THE FEATURE REQUEST HERE" +labels: ["ITensorPkgSkeleton", "enhancement"] +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** + +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** + +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** + +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** + +Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..6232af8 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,40 @@ +# Description + +Please include a summary of the change and which issue is fixed (if applicable). Please also include relevant motivation and context. List any dependencies that are required for this change. + +Fixes #(issue) + +If practical and applicable, please include a minimal demonstration of the previous behavior and new behavior below. + +
Minimal demonstration of previous behavior

+ +```julia +[YOUR MINIMAL DEMONSTRATION OF PREVIOUS BEHAVIOR] +``` +

+ +
Minimal demonstration of new behavior

+ +```julia +[YOUR MINIMAL DEMONSTRATION OF NEW BEHAVIOR] +``` +

+ +# How Has This Been Tested? + +Please add tests that verify your changes to a file in the `test` directory. + +Please give a summary of the tests that you added to verify your changes. + +- [ ] Test A +- [ ] Test B + +# Checklist: + +- [ ] My code follows the style guidelines of this project. Please run `using JuliaFormatter; format(".")` in the base directory of the repository (`~/.julia/dev/ITensorPkgSkeleton`) to format your code according to our style guidelines. +- [ ] I have performed a self-review of my own code. +- [ ] I have commented my code, particularly in hard-to-understand areas. +- [ ] I have added tests that verify the behavior of the changes I made. +- [ ] I have made corresponding changes to the documentation. +- [ ] My changes generate no new warnings. +- [ ] Any dependent changes have been merged and published in downstream modules. diff --git a/templates/default/.github/ISSUE_TEMPLATE/01_BUG_REPORT.md b/templates/default/.github/ISSUE_TEMPLATE/01_BUG_REPORT.md new file mode 100644 index 0000000..db6c330 --- /dev/null +++ b/templates/default/.github/ISSUE_TEMPLATE/01_BUG_REPORT.md @@ -0,0 +1,61 @@ +--- +name: {PKGNAME}.jl bug report +about: Create a bug report to help us improve {PKGNAME}.jl +title: "[{PKGNAME}] [BUG] YOUR SHORT DESCRIPTION OF THE BUG HERE" +labels: ["{PKGNAME}", "bug"] +assignees: '' + +--- + +**Description of bug** + +Please give a brief description of the bug or unexpected behavior here. + +**Minimal code demonstrating the bug or unexpected behavior** + +If applicable, provide a minimal code that can be run to demonstrate the bug or unexpected behavior. + +If you are unable to construct a minimal code that demonstrates the bug or unexpected behavior, provide detailed steps for how to reproduce the behavior you are seeing. + +
Minimal runnable code

+ +```julia +[YOUR MINIMAL RUNNABLE CODE HERE] +``` +

+ + +**Expected output or behavior** + +Describe what you expected to happen. + +If you provided a minimal code that can be run to demonstrate the bug or unexpected behavior, describe what you expected the output would be. + + +**Actual output or behavior** + +Describe what actually happened. + +If you provided a minimal code that demonstrates the bug or unexpected behavior, provide the output you get from that code. If the code leads to an error or warning, include the full error or warning below. + +
Output of minimal runnable code

+ +```julia +[OUTPUT OF YOUR MINIMAL RUNNABLE CODE HERE] +``` + +

+ + +**Version information** + + - Output from `versioninfo()`: +```julia +julia> versioninfo() +[YOUR OUTPUT HERE] +``` + - Output from `using Pkg; Pkg.status("{PKGNAME}")`: +```julia +julia> using Pkg; Pkg.status("{PKGNAME}") +[YOUR OUTPUT HERE] +``` diff --git a/templates/default/.github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md b/templates/default/.github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md new file mode 100644 index 0000000..e973c34 --- /dev/null +++ b/templates/default/.github/ISSUE_TEMPLATE/01_FEATURE_REQUEST.md @@ -0,0 +1,24 @@ +--- +name: {PKGNAME}.jl feature request +about: Suggest an idea for {PKGNAME}.jl +title: "[{PKGNAME}] [ENHANCEMENT] YOUR SHORT DESCRIPTION OF THE FEATURE REQUEST HERE" +labels: ["{PKGNAME}", "enhancement"] +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** + +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** + +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** + +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** + +Add any other context or screenshots about the feature request here. diff --git a/templates/default/.github/PULL_REQUEST_TEMPLATE.md b/templates/default/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..38f6ce6 --- /dev/null +++ b/templates/default/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,40 @@ +# Description + +Please include a summary of the change and which issue is fixed (if applicable). Please also include relevant motivation and context. List any dependencies that are required for this change. + +Fixes #(issue) + +If practical and applicable, please include a minimal demonstration of the previous behavior and new behavior below. + +
Minimal demonstration of previous behavior

+ +```julia +[YOUR MINIMAL DEMONSTRATION OF PREVIOUS BEHAVIOR] +``` +

+ +
Minimal demonstration of new behavior

+ +```julia +[YOUR MINIMAL DEMONSTRATION OF NEW BEHAVIOR] +``` +

+ +# How Has This Been Tested? + +Please add tests that verify your changes to a file in the `test` directory. + +Please give a summary of the tests that you added to verify your changes. + +- [ ] Test A +- [ ] Test B + +# Checklist: + +- [ ] My code follows the style guidelines of this project. Please run `using JuliaFormatter; format(".")` in the base directory of the repository (`~/.julia/dev/{PKGNAME}`) to format your code according to our style guidelines. +- [ ] I have performed a self-review of my own code. +- [ ] I have commented my code, particularly in hard-to-understand areas. +- [ ] I have added tests that verify the behavior of the changes I made. +- [ ] I have made corresponding changes to the documentation. +- [ ] My changes generate no new warnings. +- [ ] Any dependent changes have been merged and published in downstream modules. diff --git a/test/test_basics.jl b/test/test_basics.jl index 5b1c3d6..fea1226 100644 --- a/test/test_basics.jl +++ b/test/test_basics.jl @@ -3,7 +3,16 @@ using ITensorPkgSkeleton: ITensorPkgSkeleton using Test: @test, @testset @testset "ITensorPkgSkeleton" begin - pkgdirs = [".github", "benchmark", "docs", "src", "test"] + pkgdirs = [ + ".github", + ".github/ISSUE_TEMPLATE", + ".github/workflows", + "benchmark", + "docs", + "examples", + "src", + "test", + ] @testset "generate" begin path = mktempdir() ITensorPkgSkeleton.generate("NewPkg"; path)