Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #330 from omendrapandey/branch-issue#235-issuw-wit…
Browse files Browse the repository at this point in the history
…h-task-validation

fix: PR with TA, TC, TF, or DS ID always fails
  • Loading branch information
Jared Murrell authored Oct 7, 2021
2 parents fbf7f94 + 68e3294 commit 13bc2ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/RallyValidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
})
Expand All @@ -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)
Expand Down

0 comments on commit 13bc2ff

Please sign in to comment.