From 0672dc170bf8f5f0ea4a4521646675ec7e719ff1 Mon Sep 17 00:00:00 2001 From: alstr Date: Fri, 31 Jan 2025 10:31:50 +0000 Subject: [PATCH] Revert "Merge pull request #260 from schott12521/schott12521/main" This reverts commit b46ff9825888729641f66c326f5ede680da467fa, reversing changes made to 751dd2f2ad048f10a79dd471ec41e4afc5da5972. --- GitHubClient.py | 9 --------- README.md | 4 ---- action.yml | 3 --- 3 files changed, 16 deletions(-) diff --git a/GitHubClient.py b/GitHubClient.py index a0cd075..7800660 100644 --- a/GitHubClient.py +++ b/GitHubClient.py @@ -268,7 +268,6 @@ class GitHubClient(Client): snippet = '```' + issue.markdown_language + '\n' + issue.hunk + '\n' + '```' issue_template = os.getenv('INPUT_ISSUE_TEMPLATE', None) - default_labels = os.getenv('INPUT_DEFAULT_LABELS', None) if issue_template: issue_contents = (issue_template.replace('{{ title }}', issue.title) .replace('{{ body }}', formatted_issue_body) @@ -287,14 +286,6 @@ class GitHubClient(Client): 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.startswith('@'): # Ref = assignee. diff --git a/README.md b/README.md index c599e02..a54bcde 100644 --- a/README.md +++ b/README.md @@ -357,10 +357,6 @@ for improved accuracy. Default: `False` -##### DEFAULT_LABELS - -Custom labels that can be automatically appended to newly created issues, in a form of comma-delimited strings. - #### ESCAPE Escape all special Markdown characters. diff --git a/action.yml b/action.yml index 7776215..50ac2de 100644 --- a/action.yml +++ b/action.yml @@ -60,9 +60,6 @@ inputs: ISSUE_TEMPLATE: description: 'The template used to format new issues' required: false - DEFAULT_LABELS: - description: 'Default labels to be used when adding new issues' - required: false IDENTIFIERS: description: 'Dictionary of custom identifiers' required: false