From 189229506a13fe87ff14c841ff453f68bbdd2b18 Mon Sep 17 00:00:00 2001 From: Mateus Devino Date: Thu, 25 Jul 2024 17:19:39 -0300 Subject: [PATCH 1/2] Add rust version and commit hash to bug report Signed-off-by: Mateus Devino --- .github/ISSUE_TEMPLATE/bug_report.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 7eeb5562..5b525a06 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -14,8 +14,8 @@ A clear and concise description of what the bug is. Please provide details about the environment you are using, including the following: -- Interpreter version: -- Library version: +- Rust version (`rustc --version`): +- Commit hash from main branch (`git log -1 --pretty=format:"%h"`): ## Sample Code From e67a457224486927e25e7c9729db760d4d21c8ee Mon Sep 17 00:00:00 2001 From: Mateus Devino Date: Thu, 25 Jul 2024 17:32:38 -0300 Subject: [PATCH 2/2] Add script to collect environment details for bug reports --- .github/ISSUE_TEMPLATE/bug_report.md | 13 ++++++++++--- scripts/collect_env.sh | 4 ++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100755 scripts/collect_env.sh diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 5b525a06..0bd870e5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -12,10 +12,17 @@ A clear and concise description of what the bug is. ## Platform -Please provide details about the environment you are using, including the following: +Please provide details about the environment you are using (run `scripts/collect_env.sh`). + +Hint: In case you cannot run script due to permissions, try `chmod u+x scripts/collect_env.sh`, then run again. + + -- Rust version (`rustc --version`): -- Commit hash from main branch (`git log -1 --pretty=format:"%h"`): ## Sample Code diff --git a/scripts/collect_env.sh b/scripts/collect_env.sh new file mode 100755 index 00000000..a521784c --- /dev/null +++ b/scripts/collect_env.sh @@ -0,0 +1,4 @@ +#/usr/bin/env sh + +rustc --version +echo "Commit hash: $(git log -1 --pretty=format:'%h')" \ No newline at end of file