Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reworked the device request template as form #243

Merged
merged 2 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/device-support-request.md

This file was deleted.

89 changes: 89 additions & 0 deletions .github/ISSUE_TEMPLATE/device-support-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Device support request
description: Request support for a new device
title: Add support for <DEVICE>
labels: ["device"]
body:
- type: markdown
attributes:
value: "Thank you for your interest in OpenAndroidInstaller!"
- type: markdown
attributes:
value: "To get your device supported, please take the time to fill out this form."
- type: markdown
attributes:
value: "---"
- type: checkboxes
attributes:
label: Is your device already requested?
description: Please search to see if an issue for your device already exists.
options:
- label: I have searched the existing issues
required: true
- type: markdown
attributes:
value: "---"
- type: markdown
attributes:
value: "**Please input your device's details below:**"
- type: input
attributes:
label: Brand
description: The brand / manufacturer of your device
placeholder: Google
validations:
required: true
- type: input
attributes:
label: Name
description: The name of your device
placeholder: Pixel 3a
validations:
required: true
- type: input
attributes:
label: Device code
description: The device code OAI gave you in the error message
placeholder: sargo
validations:
required: true
- type: input
attributes:
label: Model
description: The model name of your device (only required, if there are several models)
placeholder: G020F
validations:
required: false
- type: markdown
attributes:
value: "---"
- type: textarea
attributes:
label: Device images
description: "Please provide links to any available images for the device, such as official stock firmware, Custom ROMs and Recoveries you would like to install."
placeholder: |
- Custom ROM: https://wiki.lineageos.org/devices/sargo
- Recovery: https://twrp.me/google/googlepixel3a.html
#value: |
# - Custom ROM:
# - Recovery:
# - Stock firmware (if needed & existing):
render: Markdown
validations:
required: false
- type: markdown
attributes:
value: "---"
- type: checkboxes
attributes:
label: Do you own the device and would be willing to test the installer?
options:
- label: I own the device and am willing to test the installer on it.
required: true
- type: markdown
attributes:
value: "---"
- type: textarea
attributes:
label: Additional context
description: Please provide any additional context or information that might be helpful in adding support for this device.
render: Markdown
2 changes: 1 addition & 1 deletion openandroidinstaller/views/start_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def search_devices_clicked(self, e):
f"Device with code '{device_code}' is not supported yet."
)
# add request support for device button
request_url = f"https://github.com/openandroidinstaller-dev/openandroidinstaller/issues/new?assignees=&labels=device&projects=&template=device-support-request.md&title=Add support for {device_code}"
request_url = f"https://github.com/openandroidinstaller-dev/openandroidinstaller/issues/new?labels=device&template=device-support-request.yaml&title=Add support for {device_code}"
self.device_request_row.controls.append(
ElevatedButton(
"Request support for this device",
Expand Down