-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I've received this error on a PR and the issue #94 is valid.
Checking commit message for 343cbb4.
Error: issue #94 has invalid status of CLOSED - CURRENTRELEASE. Status must be one of NEW, ASSIGNED, POST, MODIFIED.
Error: Process completed with exit code 1.
The problem is that the commit-validation script is outdated and points to a no longer used service:
pulp-openapi-generator/.ci/scripts/validate_commit_message.py
Lines 25 to 34 in b9e9751
| def __check_status(issue): | |
| response = requests.get(f"{REDMINE_URL}/issues/{issue}.json") | |
| response.raise_for_status() | |
| bug_json = response.json() | |
| status = bug_json["issue"]["status"]["name"] | |
| if status not in STATUSES: | |
| sys.exit( | |
| "Error: issue #{issue} has invalid status of {status}. Status must be one of " | |
| "{statuses}.".format(issue=issue, status=status, statuses=", ".join(STATUSES)) | |
| ) |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working