Skip to content

Commit

Permalink
Merge pull request #1 from omendrapandey/omendrapandey-patch-1
Browse files Browse the repository at this point in the history
fix: PR with TA, TC, TF, or DS ID always fails
  • Loading branch information
omendrapandey authored Oct 6, 2021
2 parents fbf7f94 + f9a419e commit 75b9ca9
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 75b9ca9

Please sign in to comment.