2016-11-07 20:05:48 -05:00
# Add a "status/0-triage" to every newly opened pull request.
- triggers :
pull_request : [ opened ]
operations :
- type : label
2016-12-02 17:42:39 -05:00
filters : {
2017-02-08 10:58:46 -05:00
~labels : [ "status/0-triage" , "status/1-design-review" , "status/2-code-review" , "status/3-docs-review" , "status/4-merge" ] ,
2016-12-02 17:42:39 -05:00
}
2016-11-07 20:05:48 -05:00
settings : {
patterns : {
status/0-triage : [ ".*" ] ,
}
}
# For every newly created or modified issue, assign label based on matching regexp using the `label`
# operation, as well as an Engine-specific version label using `version-label`.
- triggers :
issues : [ edited, opened, reopened ]
operations :
- type : label
settings : {
patterns : {
area/builder : [ "dockerfile" , "docker build" ] ,
area/distribution : [ "docker login" , "docker logout" , "docker pull" , "docker push" , "docker search" ] ,
area/plugins : [ "docker plugin" ] ,
area/networking : [ "docker network" , "ipvs" , "vxlan" ] ,
area/runtime : [ "oci runtime error" ] ,
area/security/trust : [ "docker_content_trust" ] ,
2016-12-15 13:41:51 -05:00
area/swarm : [ "docker node" , "docker swarm" , "docker service create" , "docker service inspect" , "docker service logs" , "docker service ls" , "docker service ps" , "docker service rm" , "docker service scale" , "docker service update" ] ,
2016-11-07 20:05:48 -05:00
platform/desktop : [ "docker for mac" , "docker for windows" ] ,
platform/freebsd : [ "freebsd" ] ,
platform/windows : [ "nanoserver" , "windowsservercore" , "windows server" ] ,
2016-12-22 05:35:10 -05:00
platform/arm : [ "raspberry" , "raspbian" , "rpi" , "beaglebone" , "pine64" ] ,
2016-11-07 20:05:48 -05:00
}
}
- type : version-label
# Labeling a PR with `rebuild/<configuration>` triggers a rebuild job for the associated
# configuration. The label is automatically removed after the rebuild is initiated. There's no such
# thing as "templating" in this configuration, so we need one operation for each type of
# configuration that can be triggered.
- triggers :
pull_request : [ labeled ]
operations :
2016-11-08 12:42:09 -05:00
- type : rebuild
settings : {
# When configurations are empty, the `rebuild` operation rebuilds all the currently
# known statuses for that pull request.
configurations : [ ] ,
label : "rebuild/*" ,
}
2016-11-07 20:05:48 -05:00
- type : rebuild
settings : {
configurations : [ arm ],
label : "rebuild/arm" ,
}
- type : rebuild
settings : {
configurations : [ experimental ],
label : "rebuild/experimental" ,
}
- type : rebuild
settings : {
configurations : [ janky ],
label : "rebuild/janky" ,
}
2017-01-30 17:54:17 -05:00
- type : rebuild
settings : {
configurations : [ powerpc ],
label : "rebuild/powerpc" ,
}
2016-11-07 20:05:48 -05:00
- type : rebuild
settings : {
configurations : [ userns ],
label : "rebuild/userns" ,
}
- type : rebuild
settings : {
configurations : [ vendor ],
label : "rebuild/vendor" ,
}
- type : rebuild
settings : {
configurations : [ win2lin ],
label : "rebuild/win2lin" ,
}
- type : rebuild
settings : {
configurations : [ windowsRS1 ],
label : "rebuild/windowsRS1" ,
}
2017-01-30 17:54:17 -05:00
- type : rebuild
settings : {
configurations : [ z ],
label : "rebuild/z" ,
2017-02-09 04:37:53 -05:00
}
2017-02-08 10:54:47 -05:00
# Once a day, randomly assign pull requests older than 2 weeks.
- schedule : "@daily"
operations :
- type : random-assign
filters : {
age : "2w" ,
is : "pr" ,
}
settings : {
users : [
2017-02-28 07:29:04 -05:00
"aaronlehmann" ,
"akihirosuda" ,
"aluzzardi" ,
"coolljt0725" ,
2017-02-08 10:54:47 -05:00
"cpuguy83" ,
"crosbymichael" ,
"dnephin" ,
2017-02-28 07:29:04 -05:00
"duglin" ,
2017-03-31 20:10:56 -04:00
"ehazlett" ,
"johnstep" ,
2017-02-08 10:54:47 -05:00
"justincormack" ,
"lk4d4" ,
2017-02-28 07:29:04 -05:00
"mhbauer" ,
2017-02-08 10:54:47 -05:00
"mlaventure" ,
2017-02-28 07:29:04 -05:00
"runcom" ,
"stevvooe" ,
2017-02-08 10:54:47 -05:00
"thajeztah" ,
"tiborvass" ,
"tonistiigi" ,
"vdemeester" ,
"vieux" ,
2017-03-02 05:15:40 -05:00
"yongtang" ,
2017-02-08 10:54:47 -05:00
]
2017-01-30 17:54:17 -05:00
}