@ckeditor/ckeditor5-dev-ci 44.0.0-alpha.5 → 44.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -118,10 +118,10 @@ async function getOtherJobsData() {
118
118
  }
119
119
 
120
120
  /**
121
- * @param {Array.<String>} args
122
- * @returns {Object} result
123
- * @returns {String} result.task
124
- * @returns {Array<String>} result.ignore
121
+ * @param {Array.<string>} args
122
+ * @returns {object} result
123
+ * @returns {string} result.task
124
+ * @returns {Array.<string>} result.ignore
125
125
  */
126
126
  function parseArguments( args ) {
127
127
  const config = {
@@ -5,11 +5,11 @@
5
5
 
6
6
  /**
7
7
  * @param options
8
- * @param {String} options.circleToken
9
- * @param {String} options.githubOrganization
10
- * @param {String} options.githubRepository
11
- * @param {Boolean} options.newValue
12
- * @return {Promise.<Boolean>}
8
+ * @param {string} options.circleToken
9
+ * @param {string} options.githubOrganization
10
+ * @param {string} options.githubRepository
11
+ * @param {boolean} options.newValue
12
+ * @returns {Promise.<boolean>}
13
13
  */
14
14
  export default async function circleUpdateAutoCancelBuilds( options ) {
15
15
  const {
@@ -10,20 +10,20 @@ import { bots, members } from './data/index.js';
10
10
  const REPOSITORY_REGEXP = /github\.com\/([^/]+)\/([^/]+)/;
11
11
 
12
12
  /**
13
- * @param {Object} options
14
- * @param {String} options.slackMessageUsername
15
- * @param {String} options.iconUrl
16
- * @param {String} options.repositoryOwner
17
- * @param {String} options.repositoryName
18
- * @param {String} options.branch
19
- * @param {String} options.buildTitle
20
- * @param {String} options.buildUrl
21
- * @param {String} options.buildId
22
- * @param {String} options.githubToken
23
- * @param {String} options.triggeringCommitUrl
24
- * @param {Number} options.startTime
25
- * @param {Number} options.endTime
26
- * @param {Boolean} options.shouldHideAuthor
13
+ * @param {object} options
14
+ * @param {string} options.slackMessageUsername
15
+ * @param {string} options.iconUrl
16
+ * @param {string} options.repositoryOwner
17
+ * @param {string} options.repositoryName
18
+ * @param {string} options.branch
19
+ * @param {string} options.buildTitle
20
+ * @param {string} options.buildUrl
21
+ * @param {string} options.buildId
22
+ * @param {string} options.githubToken
23
+ * @param {string} options.triggeringCommitUrl
24
+ * @param {number} options.startTime
25
+ * @param {number} options.endTime
26
+ * @param {boolean} options.shouldHideAuthor
27
27
  */
28
28
  export default async function formatMessage( options ) {
29
29
  const commitDetails = await getCommitDetails( options.triggeringCommitUrl, options.githubToken );
@@ -64,11 +64,11 @@ export default async function formatMessage( options ) {
64
64
  /**
65
65
  * Returns the additional message that will be added to the notifier post.
66
66
  *
67
- * @param {Object} options
68
- * @param {Boolean} options.shouldHideAuthor
69
- * @param {String|null} options.githubAccount
70
- * @param {String} options.commitAuthor
71
- * @returns {String}
67
+ * @param {object} options
68
+ * @param {boolean} options.shouldHideAuthor
69
+ * @param {string|null} options.githubAccount
70
+ * @param {string} options.commitAuthor
71
+ * @returns {string}
72
72
  */
73
73
  function getNotifierMessage( options ) {
74
74
  if ( options.shouldHideAuthor ) {
@@ -95,8 +95,8 @@ function getNotifierMessage( options ) {
95
95
  }
96
96
 
97
97
  /**
98
- * @param {String|null} githubAccount
99
- * @returns {String|null}
98
+ * @param {string|null} githubAccount
99
+ * @returns {string|null}
100
100
  */
101
101
  function findSlackAccount( githubAccount ) {
102
102
  if ( !githubAccount ) {
@@ -116,9 +116,9 @@ function findSlackAccount( githubAccount ) {
116
116
  * Returns string representing amount of time passed between two timestamps.
117
117
  * Timestamps should be in seconds instead of milliseconds.
118
118
  *
119
- * @param {Number} startTime
120
- * @param {Number} endTime
121
- * @returns {String}
119
+ * @param {number} startTime
120
+ * @param {number} endTime
121
+ * @returns {string}
122
122
  */
123
123
  function getExecutionTime( startTime, endTime ) {
124
124
  if ( !startTime || !endTime ) {
@@ -155,8 +155,8 @@ function getExecutionTime( startTime, endTime ) {
155
155
  /**
156
156
  * Replaces `#Id` and `Repo/Owner#Id` with URls to Github Issues.
157
157
  *
158
- * @param {String} commitMessage
159
- * @param {String} triggeringCommitUrl
158
+ * @param {string} commitMessage
159
+ * @param {string} triggeringCommitUrl
160
160
  * @returns {string}
161
161
  */
162
162
  function getFormattedMessage( commitMessage, triggeringCommitUrl ) {
@@ -178,9 +178,9 @@ function getFormattedMessage( commitMessage, triggeringCommitUrl ) {
178
178
  /**
179
179
  * Returns a promise that resolves the commit details (author and message) based on the specified GitHub URL.
180
180
  *
181
- * @param {String} triggeringCommitUrl The URL to the commit on GitHub.
182
- * @param {String} githubToken Github token used for authorization a request,
183
- * @returns {Promise.<Object>}
181
+ * @param {string} triggeringCommitUrl The URL to the commit on GitHub.
182
+ * @param {string} githubToken Github token used for authorization a request,
183
+ * @returns {Promise.<object>}
184
184
  */
185
185
  function getCommitDetails( triggeringCommitUrl, githubToken ) {
186
186
  const apiGithubUrlCommit = getGithubApiUrl( triggeringCommitUrl );
@@ -205,8 +205,8 @@ function getCommitDetails( triggeringCommitUrl, githubToken ) {
205
205
  /**
206
206
  * Returns a URL to GitHub API which returns details of the commit that caused the CI to fail its job.
207
207
  *
208
- * @param {String} triggeringCommitUrl The URL to the commit on GitHub.
209
- * @returns {String}
208
+ * @param {string} triggeringCommitUrl The URL to the commit on GitHub.
209
+ * @returns {string}
210
210
  */
211
211
  function getGithubApiUrl( triggeringCommitUrl ) {
212
212
  return triggeringCommitUrl.replace( 'github.com/', 'api.github.com/repos/' ).replace( '/commit/', '/commits/' );
@@ -8,13 +8,13 @@ import getJobApprover from './utils/get-job-approver.js';
8
8
 
9
9
  /**
10
10
  * @param options
11
- * @param {String} options.circleToken
12
- * @param {String} options.circleWorkflowId
13
- * @param {String} options.circleApprovalJobName
14
- * @param {String} options.githubOrganization
15
- * @param {String} options.githubTeamSlug
16
- * @param {String} options.githubToken
17
- * @return {Promise.<Boolean>}
11
+ * @param {string} options.circleToken
12
+ * @param {string} options.circleWorkflowId
13
+ * @param {string} options.circleApprovalJobName
14
+ * @param {string} options.githubOrganization
15
+ * @param {string} options.githubTeamSlug
16
+ * @param {string} options.githubToken
17
+ * @returns {Promise.<boolean>}
18
18
  */
19
19
  export default async function isJobTriggeredByMember( options ) {
20
20
  const {
@@ -57,7 +57,7 @@ export default function processJobStatuses( jobs ) {
57
57
 
58
58
  /**
59
59
  * @param {WorkflowJob} job
60
- * @returns {Boolean}
60
+ * @returns {boolean}
61
61
  */
62
62
  function isJobFailed( job ) {
63
63
  if ( job.status === 'failed' ) {
@@ -81,11 +81,11 @@ function clone( obj ) {
81
81
  }
82
82
 
83
83
  /**
84
- * @typedef {Object} WorkflowJob
84
+ * @typedef {object} WorkflowJob
85
85
  *
86
- * @property {String} id
86
+ * @property {string} id
87
87
  *
88
88
  * @property {'blocked'|'running'|'failed'|'failed_parent'|'success'} status
89
89
  *
90
- * @property {Array.<String>} dependencies
90
+ * @property {Array.<string>} dependencies
91
91
  */
@@ -7,13 +7,13 @@
7
7
 
8
8
  /**
9
9
  * @param options
10
- * @param {String} options.circleToken
11
- * @param {String} options.commit
12
- * @param {String} options.branch
13
- * @param {String} options.repositorySlug A repository slug (org/name) where a new build will be started.
14
- * @param {String|null} [options.releaseBranch=null] Define a branch that leads the release process.
15
- * @param {String|null} [options.triggerRepositorySlug=null] A repository slug (org/name) that triggers a new build.
16
- * @return {Promise}
10
+ * @param {string} options.circleToken
11
+ * @param {string} options.commit
12
+ * @param {string} options.branch
13
+ * @param {string} options.repositorySlug A repository slug (org/name) where a new build will be started.
14
+ * @param {string|null} [options.releaseBranch=null] Define a branch that leads the release process.
15
+ * @param {string|null} [options.triggerRepositorySlug=null] A repository slug (org/name) that triggers a new build.
16
+ * @returns {Promise}
17
17
  */
18
18
  export default async function triggerCircleBuild( options ) {
19
19
  const {
@@ -6,10 +6,10 @@
6
6
  /**
7
7
  * Returns a promise that resolves to GitHub name of a developer who approved the `jobName` job.
8
8
  *
9
- * @param {String} circleCiToken
10
- * @param {String} workflowId
11
- * @param {String} jobName
12
- * @returns {Promise.<String>}
9
+ * @param {string} circleCiToken
10
+ * @param {string} workflowId
11
+ * @param {string} jobName
12
+ * @returns {Promise.<string>}
13
13
  */
14
14
  export default async function getJobApprover( circleCiToken, workflowId, jobName ) {
15
15
  const circleRequestOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-dev-ci",
3
- "version": "44.0.0-alpha.5",
3
+ "version": "44.0.0",
4
4
  "description": "Utils used on various Continuous Integration services.",
5
5
  "keywords": [],
6
6
  "author": "CKSource (http://cksource.com/)",