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
**GitHub Action that will create a pull request from the currently selected branch.**
4
4
5
5
**Useful in combination with my other action [devops-infra/action-commit-push](https://github.com/devops-infra/action-commit-push).**
6
6
7
+
8
+
## 📦 Available on
7
9
Dockerized as [devopsinfra/action-pull-request](https://hub.docker.com/repository/docker/devopsinfra/action-pull-request).
8
-
Built from [devops-infra/action-pull-request](https://github.com/devops-infra/action-pull-request).
10
+
Built from [ghcr.io/devops-infra//action-pull-request](https://github.com/devops-infra/pkgs/container/template-action).
11
+
12
+
13
+
## ✨ Features
14
+
* Creates pull request if triggered from a current branch or any specified by `source_branch` to a `target_branch`
15
+
* Title and body of a pull request can be specified with `title` and `body`
16
+
* Can assign `assignee`, `reviewer`, one or more `label`, a `milestone` or mark it as a `draft`
17
+
* Can replace any `old_string` inside a pull request template with a `new_string`. Or put commits' subjects in place of `old_string`
18
+
* When `get_diff` is `true` will add list of commits in place of `<!-- Diff commits -->` and list of modified files in place of `<!-- Diff files -->` in a pull request template
19
+
* When `allow_no_diff` is set to true will continue execution and create pull request even if both branches have no differences, e.g. having only a merge commit
20
+
* Supports both `amd64` and `arm64` architectures
21
+
9
22
10
23
## Badge swag
11
24
[
@@ -22,31 +35,33 @@ Built from [devops-infra/action-pull-request](https://github.com/devops-infra/ac
@@ -67,24 +82,16 @@ Built from [devops-infra/action-pull-request](https://github.com/devops-infra/ac
67
82
| ignore_users | No | `"dependabot"` | List of users to ignore, comma separated |
68
83
| allow_no_diff | No | `false` | Allows to continue on merge commits with no diffs |
69
84
70
-
## Outputs
85
+
86
+
### 🔧 Input Parameters
71
87
72
88
| Output | Description |
73
89
|-----------|-------------------------------|
74
90
| url | Pull request URL |
75
91
| pr_number | Number of GitHub pull request |
76
92
77
-
## Features
78
93
79
-
* Creates pull request if triggered from a current branch or any specified by `source_branch` to a `target_branch`
80
-
* Title and body of a pull request can be specified with `title` and `body`
81
-
* Can assign `assignee`, `reviewer`, one or more `label`, a `milestone` or mark it as a `draft`
82
-
* Can replace any `old_string` inside a pull request template with a `new_string`. Or put commits' subjects in place of `old_string`
83
-
* When `get_diff` is `true` will add list of commits in place of `<!-- Diff commits -->` and list of modified files in place of `<!-- Diff files -->` in a pull request template
84
-
* When `allow_no_diff` is set to true will continue execution and create pull request even if both branches have no differences, e.g. having only a merge commit
85
-
* Supports both `amd64` and `arm64` architectures
86
-
87
-
### How get_diff works
94
+
### ➿ How get_diff works
88
95
89
96
In previous versions occurrences of following strings in a template result with replacing them with list of commits and list of modified files (`<!-- Diff commits -->` and `<!-- Diff files -->`).
90
97
@@ -98,14 +105,16 @@ If your template uses old comment strings it will try to adjust them in the pull
98
105
99
106
**CAUTION**: Remember to not use default `fetch-depth` for [actions/checkout](https://github.com/actions/checkout) action. Rather set it to `0` - see example below.
100
107
101
-
## Examples
108
+
109
+
## 💻 Usage Examples
102
110
103
111
Red areas show fields that can be dynamically expanded based on commits to the current branch.
104
112
Blue areas show fields that can be set in action configuration.
This action supports three tag levels for flexible versioning:
175
+
176
+
- **`vX`**: Always points to the latest patch of a major version (e.g., `v1` → `v1.2.3`).
177
+
_Benefit: Get all latest fixes for a major version automatically._
178
+
179
+
- **`vX.Y`**: Always points to the latest patch of a minor version (e.g., `v1.2` → `v1.2.3`).
180
+
_Benefit: Stay on a minor version, always up-to-date with bugfixes._
181
+
182
+
- **`vX.Y.Z`**: Fixed to a specific release (e.g., `v1.2.3`).
183
+
_Benefit: Full reproducibility—never changes._
184
+
185
+
**Use the tag depth that matches your stability needs.**
186
+
187
+
188
+
## 🤝 Contributing
189
+
190
+
Contributions are welcome! Please feel free to submit a Pull Request. Refer to the [CONTRIBUTING](https://github.com/devops-infra/.github/blob/master/CONTRIBUTING.md) for guidelines.
167
191
168
-
Following platforms for those images are supported:
169
192
170
-
| OS | Architecture |
171
-
|-------|--------------|
172
-
| Linux | `amd64` |
173
-
| Linux | `arm64` |
193
+
## 📄 License
174
194
175
-
## Other DevOps-Infra actions
195
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
176
196
177
-
Check [devops-infra](https://github.com/devops-infra) for other GitHub Actions.
178
197
179
-
## License
198
+
## 💬 Support
180
199
181
-
[MIT License](LICENSE)
200
+
If you have any questions or need help, please:
201
+
- 📝 Create an [issue](https://github.com/devops-infra/template-action/issues)
0 commit comments