You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ All inputs are **optional**. If not set, sensible defaults will be used.
60
60
| `author` | The author name and email address in the format `Display Name <email@address.com>`. Defaults to the user who triggered the workflow run. | `${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>` |
61
61
| `signoff` | Add [`Signed-off-by`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) line by the committer at the end of the commit log message. | `false` |
| `delete-branch` | Delete the `branch` when closing pull requests, and when undeleted after merging. | `false` |
63
+
| `delete-branch` | Delete the `branch` when closing pull requests, and when undeleted after merging. See [`delete-branch`](#delete-branch---on-next-run-after-delete) | `false` |
64
64
| `branch-suffix` | The branch suffix type when using the alternative branching strategy. Valid values are `random`, `timestamp` and `short-commit-hash`. See [Alternative strategy](#alternative-strategy---always-create-a-new-pull-request-branch) for details. | |
65
65
| `base` | Sets the pull request base branch. | Defaults to the branch checked out in the workflow. |
66
66
| `push-to-fork` | A fork of the checked-out parent repository to which the pull request branch will be pushed. e.g. `owner/repo-fork`. The pull request will be created to merge the fork's branch into the parent's base. See [push pull request branches to a fork](docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork) for details. | |
@@ -116,7 +116,7 @@ How the action behaves:
116
116
- If there are changes (i.e. a diff exists with the checked-out base branch), the changes will be pushed to a new `branch` and a pull request created.
117
117
- If there are no changes (i.e. no diff exists with the checked-out base branch), no pull request will be created and the action exits silently.
118
118
- If a pull request already exists it will be updated if necessary. Local changes in the Actions workspace, or changes on the base branch, can cause an update. If no update is required the action exits silently.
119
-
- If a pull request exists and new changes on the base branch make the pull request unnecessary (i.e. there is no longer a diff between the pull request branch and the base), the pull request is automatically closed. Additionally, if `delete-branch` is set to `true` the `branch` will be deleted.
119
+
- If a pull request exists and new changes on the base branch make the pull request unnecessary (i.e. there is no longer a diff between the pull request branch and the base), the pull request is automatically closed. Additionally, if `delete-branch` is set to `true` the `branch` will be deleted. See [`delete-branch`](#delete-branch---on-next-run-after-delete)
120
120
121
121
For further details about how the action works and usage guidelines, see [Concepts, guidelines and advanced usage](docs/concepts-guidelines.md).
122
122
@@ -133,6 +133,16 @@ To use this strategy, set input `branch-suffix` with one of the following option
133
133
134
134
- `short-commit-hash`- Commits will be made to a branch suffixed with the short SHA1 commit hash. e.g. `create-pull-request/patch-fcdfb59`, `create-pull-request/patch-394710b`
135
135
136
+
#### delete-branch - On next run after delete
137
+
138
+
The delete-branch feature doesn't delete branches immediately on merge.
139
+
140
+
(It can't do that because it would require the merge to somehow trigger the action.)
141
+
142
+
The intention of the feature is that when the action next runs it will delete branches that don't have an active pull request associated with it.
143
+
144
+
If you want branches to be deleted immediately on merge then you should use GitHub's Automatically delete head branches feature in your repository settings.
145
+
136
146
### Controlling committed files
137
147
138
148
The action defaults to adding all new and modified files.
0 commit comments