Skip to content

Commit 2af8e34

Browse files
authored
Reworked the device request template as form (#243)
2 parents 017d3ec + 60515ce commit 2af8e34

File tree

3 files changed

+90
-24
lines changed

3 files changed

+90
-24
lines changed

.github/ISSUE_TEMPLATE/device-support-request.md

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Device support request
2+
description: Request support for a new device
3+
title: Add support for <DEVICE>
4+
labels: ["device"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "Thank you for your interest in OpenAndroidInstaller!"
9+
- type: markdown
10+
attributes:
11+
value: "To get your device supported, please take the time to fill out this form."
12+
- type: markdown
13+
attributes:
14+
value: "---"
15+
- type: checkboxes
16+
attributes:
17+
label: Is your device already requested?
18+
description: Please search to see if an issue for your device already exists.
19+
options:
20+
- label: I have searched the existing issues
21+
required: true
22+
- type: markdown
23+
attributes:
24+
value: "---"
25+
- type: markdown
26+
attributes:
27+
value: "**Please input your device's details below:**"
28+
- type: input
29+
attributes:
30+
label: Brand
31+
description: The brand / manufacturer of your device
32+
placeholder: Google
33+
validations:
34+
required: true
35+
- type: input
36+
attributes:
37+
label: Name
38+
description: The name of your device
39+
placeholder: Pixel 3a
40+
validations:
41+
required: true
42+
- type: input
43+
attributes:
44+
label: Device code
45+
description: The device code OAI gave you in the error message
46+
placeholder: sargo
47+
validations:
48+
required: true
49+
- type: input
50+
attributes:
51+
label: Model
52+
description: The model name of your device (only required, if there are several models)
53+
placeholder: G020F
54+
validations:
55+
required: false
56+
- type: markdown
57+
attributes:
58+
value: "---"
59+
- type: textarea
60+
attributes:
61+
label: Device images
62+
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."
63+
placeholder: |
64+
- Custom ROM: https://wiki.lineageos.org/devices/sargo
65+
- Recovery: https://twrp.me/google/googlepixel3a.html
66+
#value: |
67+
# - Custom ROM:
68+
# - Recovery:
69+
# - Stock firmware (if needed & existing):
70+
render: Markdown
71+
validations:
72+
required: false
73+
- type: markdown
74+
attributes:
75+
value: "---"
76+
- type: checkboxes
77+
attributes:
78+
label: Do you own the device and would be willing to test the installer?
79+
options:
80+
- label: I own the device and am willing to test the installer on it.
81+
required: true
82+
- type: markdown
83+
attributes:
84+
value: "---"
85+
- type: textarea
86+
attributes:
87+
label: Additional context
88+
description: Please provide any additional context or information that might be helpful in adding support for this device.
89+
render: Markdown

openandroidinstaller/views/start_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def search_devices_clicked(self, e):
300300
f"Device with code '{device_code}' is not supported yet."
301301
)
302302
# add request support for device button
303-
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}"
303+
request_url = f"https://github.com/openandroidinstaller-dev/openandroidinstaller/issues/new?labels=device&template=device-support-request.yaml&title=Add support for {device_code}"
304304
self.device_request_row.controls.append(
305305
ElevatedButton(
306306
"Request support for this device",

0 commit comments

Comments
 (0)