Skip to content

Commit

Permalink
[skip ci]update the github issue template of bug-report (#239)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangyu Wang <[email protected]>
  • Loading branch information
wxyucs authored Dec 23, 2024
1 parent 0416ad4 commit bdb4716
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ Codes to reproduce the behavior:
```

**Environment**
- OS(e.g. `Ubuntu 22.04`):
- vsag version(e.g. `v0.11.0` or `7f94a27`):
- compiler version(e.g. `GCC 11.4.0`):
- interface(`cpp` or `python`):
Please run `bash scripts/check_environment.sh` and paste the output here:
- OS: e.g. `Ubuntu 22.04`
- vsag version: e.g. `v0.11.0` or `7f94a27`
- compiler version: e.g. `GCC 11.4.0`
- interface: `cpp` or `python`

**Expected behavior**
A clear and concise description of what you expected to happen.
Expand All @@ -31,4 +32,3 @@ If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

21 changes: 21 additions & 0 deletions scripts/check_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

function get_os() {
os_name=$(cat /etc/*-release | grep '^NAME=' | awk -F= '{print $2}' | tr -d '"')
os_version=$(cat /etc/*-release | grep '^VERSION_ID=' | awk -F= '{print $2}' | tr -d '"')
echo "- OS: $os_name $os_version"
}

function get_vsag() {
vsag_version=$(git describe --tags --always --dirty --match "v*")
echo "- vsag version: $vsag_version"
}

function get_compiler() {
compiler_version=$(c++ --version | head -n 1)
echo "- compiler version: $compiler_version"
}

get_os
get_vsag
get_compiler

0 comments on commit bdb4716

Please sign in to comment.