.github: issues and pr templates and labeler workflow (#2414)

Closes #2405
This commit is contained in:
Nathan Levett 2022-10-27 19:24:28 +11:00 committed by GitHub
parent 52c8353169
commit 0c38ca3760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 138 additions and 0 deletions

60
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View File

@ -0,0 +1,60 @@
name: Bug Report
description: Report a bug you've found.
labels: bug
body:
- type: textarea
id: version_of_this
attributes:
label: Ebitengine Version
validations:
required: true
- type: dropdown
id: os
attributes:
label: Operating System
description: Which Operating System was the bug on?
options:
- Windows
- macOS
- Linux
- FreeBSD
- OpenBSD
- Android
- iOS
- Nintendo Switch
- Xbox
- Web Browsers
validations:
required: true
- type: textarea
id: version_of_lang
attributes:
label: Go Version
validations:
required: true
- type: textarea
id: repro_steps
attributes:
label: What were you doing (steps to reproduce the bug)?
validations:
required: true
- type: textarea
id: actual_result
attributes:
label: What actually happened as a result?
validations:
required: true
- type: textarea
id: expected_result
attributes:
label: What did you expect to happen?
validations:
required: true
- type: textarea
id: stacktrace
attributes:
label: If you have a stack trace, please add it here.
- type: textarea
id: additional
attributes:
label: Anything else you feel useful to add?

View File

@ -0,0 +1,16 @@
name: Feature Request
description: Provide details about a feature you'd like to see.
labels: feature
body:
- type: textarea
id: what
attributes:
label: What feature would you like to be added?
validations:
required: true
- type: textarea
id: why
attributes:
label: Why is this needed?
validations:
required: true

View File

@ -0,0 +1,14 @@
name: Security Vulnerability
description: Provide details about a security vulnerability.
labels: security
body:
- type: textarea
id: what
attributes:
label: What vulnerability have you discovered? Include any relevant details like a CVE.
validations:
required: true
- type: textarea
id: why
attributes:
label: What remediation steps are known, if any.

13
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,13 @@
<!--
Thanks for sending a pull request!
If this is your first time, please read the contributor guidelines:
https://github.com/hajimehoshi/ebiten/blob/main/CONTRIBUTING.md
Also please adhere to our Code of Conduct:
https://github.com/hajimehoshi/ebiten/blob/main/CODE_OF_CONDUCT.md
-->
# What issue is this addressing?
<!-- Closes #<issue number> -->
## What _type_ of issue is this addressing?
<!-- bug | feature | security -->
## What this PR does | solves
<!-- Please be as descriptive as possible -->

15
.github/workflows/issue-labeler.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: "Issue Labeler"
on:
issues:
types: [opened, edited]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@6ca237433dbbb8e475241b7f38f4600d9e296c57 # v2.5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/workflows/issue-labeler/config.yml
not-before: "2022-10-27T17:00:00+11:00"
enable-versioned-regex: 0

View File

@ -0,0 +1,20 @@
os:windows:
- '\n### Operating System\n\nWindows\n'
os:macos:
- '\n### Operating System\n\nmacOS\n'
os:linux:
- '\n### Operating System\n\nLinux\n'
os:freebsd:
- '\n### Operating System\n\nFreeBSD\n'
os:openbsd:
- '\n### Operating System\n\nOpenBSD\n'
os:android:
- '\n### Operating System\n\nAndroid\n'
os:ios:
- '\n### Operating System\n\niOS\n'
os:nintendoswitch:
- '\n### Operating System\n\nNintendo Switch\n'
os:xbox:
- '\n### Operating System\n\nXbox\n'
os:js:
- '\n### Operating System\n\nWeb Browsers\n'