Skip to content

Commit 40d437f

Browse files
authored
Merge pull request #387 from matei-radu-adrian/fix/add_incomplete_status
fix(pipeline): add incomplete as finished state for pipeline steps. Fixes #384
2 parents 120f514 + df80ba0 commit 40d437f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"tsd-jsdoc": "2.5.0"
7676
},
7777
"engines": {
78-
"node": ">=12"
78+
"node": ">=16"
7979
},
8080
"release": {
8181
"branches": [

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ governing permissions and limitations under the License.
1818
* @returns {PipelineExecutionStepState} the step state or a falsy object if all steps are finished
1919
*/
2020
function getCurrentStep (execution) {
21-
return (execution && execution._embedded && execution._embedded.stepStates && execution._embedded.stepStates.filter(ss => ss.status !== 'FINISHED')[0]) || undefined
21+
return (execution && execution._embedded && execution._embedded.stepStates && execution._embedded.stepStates.filter(ss => ss.status !== 'FINISHED' && ss.status !== 'INCOMPLETE')[0]) || undefined
2222
}
2323

2424
/**

0 commit comments

Comments
 (0)