Skip to content

Commit validation is outdated and fails on CI #96

@pedro-psb

Description

@pedro-psb

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:

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions