remove int cast
This commit is contained in:
@@ -71,7 +71,7 @@ def main():
|
|||||||
|
|
||||||
# -- Check required --
|
# -- Check required --
|
||||||
if (not issue_required_tag == None) and (
|
if (not issue_required_tag == None) and (
|
||||||
not int(issue_required_tag) in issue_current_labels
|
not issue_required_tag in issue_current_labels
|
||||||
):
|
):
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f">> Skipping issue #{issue["number"]} because it does not have the required ('{issue_required_tag}') tag"
|
f">> Skipping issue #{issue["number"]} because it does not have the required ('{issue_required_tag}') tag"
|
||||||
@@ -80,7 +80,7 @@ def main():
|
|||||||
|
|
||||||
# -- Check exclude --
|
# -- Check exclude --
|
||||||
if (not issue_exclude_tag == None) and (
|
if (not issue_exclude_tag == None) and (
|
||||||
int(issue_exclude_tag) in issue_current_labels
|
issue_exclude_tag in issue_current_labels
|
||||||
):
|
):
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f">> Skipping issue #{issue["number"]} because it has the exclude ('{issue_exclude_tag}') tag"
|
f">> Skipping issue #{issue["number"]} because it has the exclude ('{issue_exclude_tag}') tag"
|
||||||
@@ -143,7 +143,7 @@ def main():
|
|||||||
|
|
||||||
# -- Check required --
|
# -- Check required --
|
||||||
if (not pull_request_required_tag == None) and (
|
if (not pull_request_required_tag == None) and (
|
||||||
not int(pull_request_required_tag) in pull_request_current_labels
|
not pull_request_required_tag in pull_request_current_labels
|
||||||
):
|
):
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f">> Skipping pull request #{pull_request["number"]} because it does not have the required ('{pull_request_required_tag}') tag"
|
f">> Skipping pull request #{pull_request["number"]} because it does not have the required ('{pull_request_required_tag}') tag"
|
||||||
@@ -152,7 +152,7 @@ def main():
|
|||||||
|
|
||||||
# -- Check exclude --
|
# -- Check exclude --
|
||||||
if (not pull_request_exclude_tag == None) and (
|
if (not pull_request_exclude_tag == None) and (
|
||||||
int(pull_request_exclude_tag) in pull_request_current_labels
|
pull_request_exclude_tag in pull_request_current_labels
|
||||||
):
|
):
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f">> Skipping pull request #{pull_request["number"]} because it has the exclude ('{pull_request_exclude_tag}') tag"
|
f">> Skipping pull request #{pull_request["number"]} because it has the exclude ('{pull_request_exclude_tag}') tag"
|
||||||
|
Reference in New Issue
Block a user