Skip to content

Commit

Permalink
feat(release-notes): add support for status and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EdricChan03 committed Jan 6, 2020
1 parent 1c0b345 commit 02ad1cb
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ export interface Release {
releaseAuthor?: string;
/** The Git commit SHA of the version. */
releaseCommitSha?: string;
/** The release type. (Currently not supported) */
releaseType?: ReleaseType;
/** The release's status. */
releaseStatus?: ReleaseStatus[] | string;
/** Comments about the release, if any. */
releaseComments?: string[] | string;
}

/**
Expand All @@ -31,7 +33,7 @@ export type ReleaseNotes = {
details?: string[] | string;
} | string[] | string;

export type ReleaseType = 'stable' | 'beta' | 'nightly';
export type ReleaseStatus = 'draft' | 'wip' | 'deprecated' | 'released' | 'unreleased' | 'other';

export interface Releases {
[key: string]: Release;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,37 @@
"minLength": 7,
"maxLength": 40
},
"releaseType": {
"$comment": "This isn't really supported at the moment",
"description": "The release's type.",
"type": "string",
"enum": [
"stable",
"beta",
"nightly"
"releaseStatus": {
"description": "The status of the release.",
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/releaseStatusTypes"
}
},
{
"$ref": "#/definitions/releaseStatusTypes",
"default": "draft"
}
]
},
"releaseComments": {
"description": "Internal comments about the release. (Can be a URL)",
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"format": "uri"
},
{
"type": "string"
}
]
}
},
Expand Down Expand Up @@ -179,6 +202,17 @@
"type": "string"
}
]
},
"releaseStatusTypes": {
"type": "string",
"enum": [
"draft",
"wip",
"deprecated",
"released",
"unreleased",
"other"
]
}
}
}

0 comments on commit 02ad1cb

Please sign in to comment.