Docker-Hub-API icon indicating copy to clipboard operation
Docker-Hub-API copied to clipboard

Add constants for build status

Open strarsis opened this issue 9 years ago • 2 comments

Adding constants for the build status codes to docker-hub-api would make code more self-documentary:

[...]
if(build.status == dockerHubAPI.BUILD_STATUS_SUCCEEDED) {
[...]
if(build.status == dockerHubAPI.BUILD_STATUS_FAILED) {
[...]

strarsis avatar Feb 17 '16 22:02 strarsis

Yeah there are some changes I want to make for version 1.0.0 as I'm not entirely happy with the way things are at the moment with this package. While it works, it needs some work done and this is definitely a step towards a better library.

RyanTheAllmighty avatar Feb 22 '16 04:02 RyanTheAllmighty

There are 2 more status codes: 0 for queued 3 for building

strarsis avatar Mar 02 '16 00:03 strarsis