Skip to content

Commit 7db79e2

Browse files
committed
Add script to collect environment details for bug reports
Signed-off-by: Mateus Devino <mdevino@ibm.com>
1 parent a1099da commit 7db79e2

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ A clear and concise description of what the bug is.
1212

1313
## Platform
1414

15-
Please provide details about the environment you are using, including the following:
15+
Please provide details about the environment you are using (run `scripts/collect_env.sh`).
16+
17+
Hint: In case you cannot run script due to permissions, try `chmod u+x scripts/collect_env.sh`, then run again.
18+
19+
<!--
20+
Example output:
21+
22+
rustc 1.78.0 (9b00956e5 2024-04-29)
23+
Commit hash: 1892295
24+
-->
1625

17-
- Rust version (`rustc --version`):
18-
- Commit hash from main branch (`git log -1 --pretty=format:"%h"`):
1926

2027
## Sample Code
2128

scripts/collect_env.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#/usr/bin/env sh
2+
3+
rustc --version
4+
echo "Commit hash: $(git log -1 --pretty=format:'%h')"

0 commit comments

Comments
 (0)