Skip to content

Commit 9251b2a

Browse files
committed
Add helpers to produce the Platform info we would need
1 parent 7cbbb87 commit 9251b2a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/ISSUE_TEMPLATE/01-bug-report.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,34 @@ body:
100100
label: Environment
101101
description: |
102102
Some additional details about your environment for this issue (if relevant)
103+
104+
To get your platform info, you can run the following commands in your terminal
105+
106+
<details>
107+
108+
<summary>Helpers: click to expand</summary>
109+
110+
* Linux:
111+
112+
```bash
113+
echo "* Platform (Operating system, version, architecture): **$(lsb_release -is) $(lsb_release -rs) $(uname -m)**"
114+
```
115+
116+
* macOS:
117+
118+
```bash
119+
echo "* Platform (Operating system, version, architecture): **$(sw_vers -productName) $(sw_vers -productVersion) $(uname -m)**"
120+
```
121+
122+
* Windows (PowerShell):
123+
124+
```powershell
125+
$os = Get-CimInstance Win32_OperatingSystem
126+
$release = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").DisplayVersion
127+
Write-Output "* Platform (Operating system, version, architecture): **$($os.Caption) $($os.Version) $release $env:PROCESSOR_ARCHITECTURE**"
128+
```
129+
</details>
130+
103131
placeholder: |
104132
* Platform (Operating system, version, architecture): **Linux Ubuntu 24.04**
105133
or

0 commit comments

Comments
 (0)