зеркало из https://github.com/github/rally.git
Merge pull request #330 from omendrapandey/branch-issue#235-issuw-with-task-validation
fix: PR with TA, TC, TF, or DS ID always fails
This commit is contained in:
Коммит
13bc2ff56c
|
@ -883,7 +883,7 @@ class RallyValidate {
|
|||
scope: {
|
||||
workspace: '/workspace/' + config.rally.workspace
|
||||
},
|
||||
fetch: ['FormattedID', 'Name', 'Description', 'ScheduleState', 'Project', 'Connections'],
|
||||
fetch: ['FormattedID', 'Name', 'Description', 'ScheduleState', 'State', 'Project', 'Connections'],
|
||||
query: queryUtils.where('FormattedID', '=', githubArtifact.number),
|
||||
requestOptions: {}
|
||||
})
|
||||
|
@ -901,7 +901,7 @@ class RallyValidate {
|
|||
statusIcon = ':heavy_exclamation_mark:'
|
||||
} else {
|
||||
const artifact = queryResponse.Results[0]
|
||||
status = artifact.ScheduleState
|
||||
status = artifact.ScheduleState ? artifact.ScheduleState : artifact.State
|
||||
projectName = artifact.Project._refObjectName
|
||||
validProject = (config.rally.projects.includes('Any') || config.rally.projects.includes(projectName))
|
||||
isValid = (config.rally.states.includes(status) && validProject)
|
||||
|
|
Загрузка…
Ссылка в новой задаче