Skip to content

Commit 8dcb139

Browse files
authored
Merge pull request #909 from deforum-art/less-draconian-issue-bot
Allow users to open issues without the webui log if they promise they have a really good reason for doing so.
2 parents 43158f9 + 6ad1617 commit 8dcb139

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ body:
9494
id: logs
9595
attributes:
9696
label: Console logs
97-
description: Now, it is the most important part which most users fail for the first time! Please provide the **full** cmd/terminal logs from the moment you started the webui (i.e. clicked the launch file or started it from cmd) to the part when your bug happened.
97+
description: Now, it is the most important part which most users fail for the first time! Please provide the **full** cmd/terminal logs from the moment you started the webui (i.e. clicked the launch file or started it from cmd) to the part when your bug happened. If you have an **excellent reason** for not being able to include the log, include the string 'I have a good reason for not including the log' and explain why. Try to include at least the webui commit hash, deforum extension commit hash, pyton version and model you are working with.
9898
render: Shell
9999
validations:
100100
required: true

.github/scripts/issue_checker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@
3939

4040
# Define the keywords to search for in the issue
4141
keywords = ['Python', 'Commit hash', 'Launching Web UI with arguments', 'Model loaded', 'deforum']
42+
excuse = 'I have a good reason for not including the log'
4243

4344
# Check if ALL of the keywords are present in the issue
4445
def check_keywords(issue_body, keywords):
4546
for keyword in keywords:
4647
if not re.search(r'\b' + re.escape(keyword) + r'\b', issue_body, re.IGNORECASE):
47-
return False
48+
if not re.search(re.escape(excuse), issue_body, re.IGNORECASE):
49+
return False
4850
return True
4951

5052
# Check if the issue title has at least a specified number of words

0 commit comments

Comments
 (0)