Revert "Merge pull request #260 from schott12521/schott12521/main"

This reverts commit b46ff98258, reversing
changes made to 751dd2f2ad.
This commit is contained in:
alstr 2025-01-31 10:31:50 +00:00
parent b46ff98258
commit 0672dc170b
3 changed files with 0 additions and 16 deletions

View File

@ -268,7 +268,6 @@ class GitHubClient(Client):
snippet = '```' + issue.markdown_language + '\n' + issue.hunk + '\n' + '```' snippet = '```' + issue.markdown_language + '\n' + issue.hunk + '\n' + '```'
issue_template = os.getenv('INPUT_ISSUE_TEMPLATE', None) issue_template = os.getenv('INPUT_ISSUE_TEMPLATE', None)
default_labels = os.getenv('INPUT_DEFAULT_LABELS', None)
if issue_template: if issue_template:
issue_contents = (issue_template.replace('{{ title }}', issue.title) issue_contents = (issue_template.replace('{{ title }}', issue.title)
.replace('{{ body }}', formatted_issue_body) .replace('{{ body }}', formatted_issue_body)
@ -287,14 +286,6 @@ class GitHubClient(Client):
title = issue.title title = issue.title
if default_labels:
# Ensure default_labels is treated as a list (in case it's a string from the environment variable)
if isinstance(default_labels, str):
default_labels = [label.strip() for label in default_labels.split(',') if label.strip()]
# Combine default labels with any existing labels, avoiding duplicates
issue.labels = list(set(issue.labels + default_labels))
if issue.ref: if issue.ref:
if issue.ref.startswith('@'): if issue.ref.startswith('@'):
# Ref = assignee. # Ref = assignee.

View File

@ -357,10 +357,6 @@ for improved accuracy.
Default: `False` Default: `False`
##### DEFAULT_LABELS
Custom labels that can be automatically appended to newly created issues, in a form of comma-delimited strings.
#### ESCAPE #### ESCAPE
Escape all special Markdown characters. Escape all special Markdown characters.

View File

@ -60,9 +60,6 @@ inputs:
ISSUE_TEMPLATE: ISSUE_TEMPLATE:
description: 'The template used to format new issues' description: 'The template used to format new issues'
required: false required: false
DEFAULT_LABELS:
description: 'Default labels to be used when adding new issues'
required: false
IDENTIFIERS: IDENTIFIERS:
description: 'Dictionary of custom identifiers' description: 'Dictionary of custom identifiers'
required: false required: false