Skip to content

Recipe to update job triggers #90

@yeikel

Description

@yeikel

Create a recipe to update the types for which a job can be triggered

Examples :

Input :

name: "My job"

on:
  pull_request:
    types:
      - opened
      - edited
      - synchronize

Remove entry

on:
  pull_request:
    types:
      - opened
      - edited
-      - synchronize

Add entry:

on:
  pull_request:
    types:
      - opened
      - edited
      - synchronize
+    - closed

Add new type:

on:
+  pull_request_review:
+    types: [edited, dismissed]
  pull_request:
    types:
      - opened
      - edited
      - synchronize

As there are many possible options here, we should probably have a generic recipe that accepts a yml expression and replaces the on block with it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Recipes Wanted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions