mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-21 17:36:59 -05:00
parent
0f7b177592
commit
d10536ebbc
1 changed files with 22 additions and 0 deletions
|
@ -556,6 +556,28 @@ on:
|
|||
|
||||
> **NOTE:** combining `tags` with `paths` or `branches` is unspecified.
|
||||
|
||||
### `on.issues`
|
||||
|
||||
Trigger the workflow when an event happens on an issue or a pull request, as
|
||||
specified with the `types` event parameter. It defaults to `[opened, edited]` if not specified.
|
||||
|
||||
- `opened` the issue or pull request was created.
|
||||
- `reopened` the closed issue or pull request was reopened.
|
||||
- `closed` the issue or pull request was closed or merged.
|
||||
- `labeled` a label was added.
|
||||
- `unlabeled` a label was removed.
|
||||
- `assigned` an assignee was added.
|
||||
- `unassigned` an assignee was removed.
|
||||
- `edited` the body, title or comments of the issue or pull request were modified.
|
||||
|
||||
```yaml
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited]
|
||||
```
|
||||
|
||||
[Check out the example](https://code.forgejo.org/forgejo/end-to-end/src/branch/main/actions/example-issue/.forgejo/workflows/test.yml).
|
||||
|
||||
### `on.pull_request`
|
||||
|
||||
Trigger the workflow when an event happens on a pull request, as
|
||||
|
|
Loading…
Reference in a new issue