From d8ac0b54fac139f8823fc9679d921d6d95514d90 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Thu, 14 Sep 2023 14:06:09 +0200 Subject: [PATCH] Update BUG_REPORT.yml --- .github/ISSUE_TEMPLATE/BUG_REPORT.yml | 32 +++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml index d782266..a2028f2 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.yml +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.yml @@ -13,28 +13,52 @@ body: - type: textarea attributes: label: Reproduceable Code - description: Share a small reproduceable code snippet here (or the entire file if necessary). Most importantly, share how you use the `` component and what props you pass to it. This will be automatically formatted into code, so no need for backticks. + description: > + Share a small reproduceable code snippet here (or the entire file if necessary). + Most importantly, share how you use the `` component and what props you pass to it. + This will be automatically formatted into code, so no need for backticks. render: tsx + placeholder: > + const device = useCameraDevices() + + validations: required: true - type: textarea attributes: label: Relevant log output - description: Paste any relevant **native log output** (Xcode Logs/Android Studio Logcat) here. This will be automatically formatted into code, so no need for backticks. For iOS, run the project through Xcode and copy the logs from the log window. For Android, either open the project through Android Studio and paste the logs from the logcat window, or run `adb logcat` in terminal. + description: > + Paste any relevant **native log output** (Xcode Logs/Android Studio Logcat) here. + This will be automatically formatted into code, so no need for backticks. + * For iOS, run the project through Xcode and copy the logs from the log window. + * For Android, either open the project through Android Studio and paste the logs from the logcat window, or run `adb logcat` in terminal. render: shell validations: required: true - type: textarea attributes: label: Camera Device - description: Please paste the JSON Camera `device` that was used here. Make sure to leave out the `formats` prop as that is too long for the issue. (`device.formats = undefined` -> `console.log(JSON.stringify(device, null, 2))`) This will be automatically formatted into code, so no need for backticks. + description: > + Paste the JSON Camera `device` that was used here. + Make sure to leave out the `formats` prop as that is too long for the issue. + ``` + device.formats = undefined + console.log(JSON.stringify(device, null, 2)) + ``` + This will be automatically formatted into code, so no need for backticks. render: shell validations: required: true - type: input attributes: label: Device - description: Which device are you seeing this Problem on? Mention the full name of the phone, as well as the operating system and version. If you have tested this on multiple devices (ex. Android and iOS) then mention all of those devices (comma separated) + description: > + Which device are you seeing this Problem on? + Mention the full name of the phone, as well as the operating system and version. + If you have tested this on multiple devices (ex. Android and iOS) then mention all of those devices (comma separated) placeholder: ex. iPhone 11 Pro (iOS 14.3) validations: required: true