github.com/OpenFlowLabs/moby@v17.12.1-ce-rc2+incompatible/poule.yml (about)

     1  # Add a "status/0-triage" to every newly opened pull request.
     2  - triggers:
     3        pull_request: [ opened ]
     4    operations:
     5        - type:       label
     6          filters: {
     7              ~labels: [ "status/0-triage", "status/1-design-review", "status/2-code-review", "status/3-docs-review", "status/4-merge" ],
     8          }
     9          settings: {
    10              patterns: {
    11                  status/0-triage:     [ ".*" ],
    12              }
    13          }
    14  
    15  # For every newly created or modified issue, assign label based on matching regexp using the `label`
    16  # operation, as well as an Engine-specific version label using `version-label`.
    17  - triggers:
    18        issues:       [ edited, opened, reopened ]
    19    operations:
    20        - type:       label
    21          settings: {
    22              patterns: {
    23                  area/builder:        [ "dockerfile", "docker build" ],
    24                  area/distribution:   [ "docker login", "docker logout", "docker pull", "docker push", "docker search" ],
    25                  area/plugins:        [ "docker plugin" ],
    26                  area/networking:     [ "docker network", "ipvs", "vxlan" ],
    27                  area/runtime:        [ "oci runtime error" ],
    28                  area/security/trust: [ "docker_content_trust" ],
    29                  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" ],
    30                  platform/desktop:    [ "docker for mac", "docker for windows" ],
    31                  platform/freebsd:    [ "freebsd" ],
    32                  platform/windows:    [ "nanoserver", "windowsservercore", "windows server" ],
    33                  platform/arm:        [ "raspberry", "raspbian", "rpi", "beaglebone", "pine64" ],
    34              }
    35          }
    36        - type:       version-label
    37  
    38  # Labeling a PR with `rebuild/<configuration>` triggers a rebuild job for the associated
    39  # configuration. The label is automatically removed after the rebuild is initiated. There's no such
    40  # thing as "templating" in this configuration, so we need one operation for each type of
    41  # configuration that can be triggered.
    42  - triggers:
    43        pull_request: [ labeled ]
    44    operations:
    45        - type:       rebuild
    46          settings: {
    47              # When configurations are empty, the `rebuild` operation rebuilds all the currently
    48              # known statuses for that pull request.
    49              configurations: [],
    50              label:          "rebuild/*",
    51          }
    52        - type:       rebuild
    53          settings: {
    54              configurations: [ arm ],
    55              label:          "rebuild/arm",
    56          }
    57        - type:       rebuild
    58          settings: {
    59              configurations: [ experimental ],
    60              label:          "rebuild/experimental",
    61          }
    62        - type:       rebuild
    63          settings: {
    64              configurations: [ janky ],
    65              label:          "rebuild/janky",
    66          }
    67        - type:       rebuild
    68          settings: {
    69              configurations: [ powerpc ],
    70              label:          "rebuild/powerpc",
    71          }
    72        - type:       rebuild
    73          settings: {
    74              configurations: [ userns ],
    75              label:          "rebuild/userns",
    76          }
    77        - type:       rebuild
    78          settings: {
    79              configurations: [ vendor ],
    80              label:          "rebuild/vendor",
    81          }
    82        - type:       rebuild
    83          settings: {
    84              configurations: [ win2lin ],
    85              label:          "rebuild/win2lin",
    86          }
    87        - type:       rebuild
    88          settings: {
    89              configurations: [ windowsRS1 ],
    90              label:          "rebuild/windowsRS1",
    91          }
    92        - type:       rebuild
    93          settings: {
    94              configurations: [ z ],
    95              label:          "rebuild/z",
    96          }
    97  
    98  # Once a day, randomly assign pull requests older than 2 weeks.
    99  - schedule:         "@daily"
   100    operations:
   101        - type:       random-assign
   102          filters: {
   103              age:    "2w",
   104              is:     "pr",
   105          }
   106          settings: {
   107              users: [
   108                  "aaronlehmann",
   109                  "akihirosuda",
   110                  "aluzzardi",
   111                  "coolljt0725",
   112                  "cpuguy83",
   113                  "crosbymichael",
   114                  "dnephin",
   115                  "duglin",
   116                  "ehazlett",
   117                  "johnstep",
   118                  "justincormack",
   119                  "lk4d4",
   120                  "mhbauer",
   121                  "mlaventure",
   122                  "runcom",
   123                  "stevvooe",
   124                  "thajeztah",
   125                  "tiborvass",
   126                  "tonistiigi",
   127                  "vdemeester",
   128                  "vieux",
   129                  "yongtang",
   130              ]
   131          }