From b77a0667b236cf52d71bf6f0b98b1cfa5ebe3ab6 Mon Sep 17 00:00:00 2001 From: Antonin RAFFIN Date: Thu, 13 Oct 2022 18:47:01 +0200 Subject: [PATCH] Add textarea for logs in issue templates (#1115) * Add textarea for trackbacks in issue templates * Use shell render for traceback --- .github/ISSUE_TEMPLATE/bug_report.yml | 10 +++++++--- .github/ISSUE_TEMPLATE/custom_env.yml | 12 ++++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d6f0a07..8defe9a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -30,10 +30,14 @@ body: ``` - ```bash - Traceback (most recent call last): File ... + - type: textarea + id: traceback + attributes: + label: Relevant log output / Error message + description: Please copy and paste any relevant log output / error message. This will be automatically formatted into code, so no need for backticks. + placeholder: "Traceback (most recent call last): File ..." + render: shell - ``` - type: textarea id: system-info attributes: diff --git a/.github/ISSUE_TEMPLATE/custom_env.yml b/.github/ISSUE_TEMPLATE/custom_env.yml index d36e0ce..7887ef6 100644 --- a/.github/ISSUE_TEMPLATE/custom_env.yml +++ b/.github/ISSUE_TEMPLATE/custom_env.yml @@ -44,7 +44,7 @@ body: class CustomEnv(gym.Env): def __init__(self): - super(CustomEnv, self).__init__() + super().__init__() self.observation_space = gym.spaces.Box(low=-np.inf, high=np.inf, shape=(14,)) self.action_space = gym.spaces.Box(low=-1, high=1, shape=(6,)) @@ -64,10 +64,14 @@ body: model = A2C("MlpPolicy", env, verbose=1).learn(1000) ``` - ```bash - Traceback (most recent call last): File ... + - type: textarea + id: traceback + attributes: + label: Relevant log output / Error message + description: Please copy and paste any relevant log output / error message. This will be automatically formatted into code, so no need for backticks. + placeholder: "Traceback (most recent call last): File ..." + render: shell - ``` - type: textarea id: system-info attributes: