Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,26 @@ on:
types: [checks_requested]
```

You can use the `branches` and `branches-ignore` filters with `merge_group` to only run a workflow when the merge group targets specific branches. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#onpull_requestpull_request_targetbranchesbranches-ignore).

For example, you can run a workflow only when the merge group targets the `main` branch.

```yaml
on:
merge_group:
branches: [ "main" ]
types: [checks_requested]
```

You can also use `branches-ignore` to skip a specific branch.

```yaml
on:
merge_group:
branches-ignore: [ "main" ]
types: [checks_requested]
```

## `milestone`

| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
Expand Down Expand Up @@ -1278,5 +1298,3 @@ jobs:
body: 'Thank you for the PR!'
});
```


Loading