Skip to content

Commit f3bcb34

Browse files
Reason: The goal to reach with this input is no more valid. (#95)
Release notes: - Remove no used action input.
1 parent 398c595 commit f3bcb34

File tree

5 files changed

+0
-35
lines changed

5 files changed

+0
-35
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ Generate Release Notes action is dedicated to enhance the quality and organizati
104104
- **Required**: No
105105
- **Default**: true (Empty chapters are printed.)
106106

107-
### `chapters-to-pr-without-issue`
108-
- **Description**: Set it to false to avoid the application of custom chapters for PRs without linked issues.
109-
- **Required**: No
110-
- **Default**: true (Custom chapters are applied to PRs without linked issues.)
111-
112-
113107
## Outputs
114108
The output of the action is a markdown string containing the release notes for the specified tag. This string can be used in subsequent steps to publish the release notes to a file, create a GitHub release, or send notifications.
115109

@@ -165,7 +159,6 @@ Add the following step to your GitHub workflow (in example are used non-default
165159

166160
warnings: false
167161
print-empty-chapters: false
168-
chapters-to-pr-without-issue: false
169162
```
170163
171164
## Features
@@ -382,7 +375,6 @@ export INPUT_WARNINGS="true"
382375
export INPUT_PUBLISHED_AT="true"
383376
export INPUT_SKIP_RELEASE_NOTES_LABEL="ignore-in-release"
384377
export INPUT_PRINT_EMPTY_CHAPTERS="true"
385-
export INPUT_CHAPTERS_TO_PR_WITHOUT_ISSUE="true"
386378
export INPUT_VERBOSE="true"
387379

388380
# CI in-build variables

action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ inputs:
4747
description: 'Print chapters even if they are empty.'
4848
required: false
4949
default: 'true'
50-
chapters-to-pr-without-issue:
51-
description: 'Apply custom chapters for PRs without linked issues.'
52-
required: false
53-
default: 'true'
5450
verbose:
5551
description: 'Print verbose logs.'
5652
required: false
@@ -121,7 +117,6 @@ runs:
121117
INPUT_PUBLISHED_AT: ${{ inputs.published-at }}
122118
INPUT_SKIP_RELEASE_NOTES_LABEL: ${{ inputs.skip-release-notes-label }}
123119
INPUT_PRINT_EMPTY_CHAPTERS: ${{ inputs.print-empty-chapters }}
124-
INPUT_CHAPTERS_TO_PR_WITHOUT_ISSUE: ${{ inputs.chapters-to-pr-without-issue }}
125120
INPUT_VERBOSE: ${{ inputs.verbose }}
126121
INPUT_GITHUB_REPOSITORY: ${{ github.repository }}
127122
INPUT_ROW_FORMAT_ISSUE: ${{ inputs.row-format-issue }}

release_notes_generator/action_inputs.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
WARNINGS,
3535
RUNNER_DEBUG,
3636
PRINT_EMPTY_CHAPTERS,
37-
CHAPTERS_TO_PR_WITHOUT_ISSUE,
3837
DUPLICITY_SCOPE,
3938
DUPLICITY_ICON,
4039
ROW_FORMAT_LINK_PR,
@@ -138,13 +137,6 @@ def get_print_empty_chapters() -> bool:
138137
"""
139138
return get_action_input(PRINT_EMPTY_CHAPTERS, "true").lower() == "true"
140139

141-
@staticmethod
142-
def get_chapters_to_pr_without_issue() -> bool:
143-
"""
144-
Get the chapters to PR without issue parameter value from the action inputs.
145-
"""
146-
return get_action_input(CHAPTERS_TO_PR_WITHOUT_ISSUE, "true").lower() == "true"
147-
148140
@staticmethod
149141
def validate_input(input_value, expected_type: type, error_message: str, error_buffer: list) -> bool:
150142
"""
@@ -246,11 +238,6 @@ def validate_inputs():
246238
print_empty_chapters = ActionInputs.get_print_empty_chapters()
247239
ActionInputs.validate_input(print_empty_chapters, bool, "Print empty chapters must be a boolean.", errors)
248240

249-
chapters_to_pr_without_issue = ActionInputs.get_chapters_to_pr_without_issue()
250-
ActionInputs.validate_input(
251-
chapters_to_pr_without_issue, bool, "Chapters to PR without issue must be a boolean.", errors
252-
)
253-
254241
# Log errors if any
255242
if errors:
256243
for error in errors:
@@ -265,4 +252,3 @@ def validate_inputs():
265252
logger.debug("Verbose logging: %s", verbose)
266253
logger.debug("Warnings: %s", warnings)
267254
logger.debug("Print empty chapters: %s", print_empty_chapters)
268-
logger.debug("Chapters to PR without issue: %s", chapters_to_pr_without_issue)

release_notes_generator/utils/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
# Features
3838
WARNINGS = "warnings"
3939
PRINT_EMPTY_CHAPTERS = "print-empty-chapters"
40-
CHAPTERS_TO_PR_WITHOUT_ISSUE = "chapters-to-pr-without-issue"
4140

4241
# Pull Request states
4342
PR_STATE_CLOSED = "closed"

tests/test_action_inputs.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"get_published_at": False,
3030
"get_skip_release_notes_label": "skip",
3131
"get_print_empty_chapters": True,
32-
"get_chapters_to_pr_without_issue": False,
3332
"get_verbose": True,
3433
}
3534

@@ -42,7 +41,6 @@
4241
("get_published_at", "not_bool", "Published at must be a boolean."),
4342
("get_skip_release_notes_label", "", "Skip release notes label must be a non-empty string."),
4443
("get_print_empty_chapters", "not_bool", "Print empty chapters must be a boolean."),
45-
("get_chapters_to_pr_without_issue", "not_bool", "Chapters to PR without issue must be a boolean."),
4644
("get_verbose", "not_bool", "Verbose logging must be a boolean."),
4745
("get_duplicity_icon", "", "Duplicity icon must be a non-empty string and have a length of 1."),
4846
("get_duplicity_icon", "Oj", "Duplicity icon must be a non-empty string and have a length of 1."),
@@ -129,11 +127,6 @@ def test_get_print_empty_chapters(mocker):
129127
assert ActionInputs.get_print_empty_chapters() is True
130128

131129

132-
def test_get_chapters_to_pr_without_issue(mocker):
133-
mocker.patch("release_notes_generator.action_inputs.get_action_input", return_value="false")
134-
assert ActionInputs.get_chapters_to_pr_without_issue() is False
135-
136-
137130
def test_get_verbose_verbose_by_action_input(mocker):
138131
mocker.patch("release_notes_generator.action_inputs.get_action_input", return_value="true")
139132
mocker.patch("os.getenv", return_value=0)

0 commit comments

Comments
 (0)