leonardowf / baroneza

baroneza is a release train to automate boring tasks
10 stars 0 forks source link

Current open release info #123

Closed leonardowf closed 1 year ago

leonardowf commented 2 years ago

It would be nice to get some data from the current open releases just by providing a repository name.

For example, GET /release?repo=repo-name&prefix=releases%2F2.5.4

Would return something like:

{
    "pullRequest": {
        "number": 123,
        "title": "The title of the pull request",
        "description": "The description of the pull request",
        "targetBranch": "master",
        "baseBranch": "release-2.5.4"
    },
    "jira": {
        "tickets": [
            { "id": "ABC-123", "status": "In Progress" }
        ]
    },
    "baroneza": {
        "branchPrefix": "release-",
        "semver": "2.5.4"
    }
}

In case of multiple releases found, the newest should be returned.