Skip to content

Commit 97069c2

Browse files
authored
fix: Add inputs for PR title and commit message (#22)
* fix: add inputs for PR title and commit message * chore: docs
1 parent 9b31e61 commit 97069c2

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

golang/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ jobs:
2828
2929
## :gear: Inputs
3030
31-
| Input | Description | Required | Default |
32-
| --------------- | -------------------------------- | ------------------ | --------------------- |
33-
| `base-branch` | Base branch for the pull request | :white_check_mark: | `main` |
34-
| `token` | GitHub token for authentication | :x: | `${{ github.token }}` |
35-
| `branch-prefix` | Prefix for the update branch | :x: | `update-dependencies` |
31+
| Input | Description | Required | Default |
32+
| ---------------- | -------------------------------- | ------------------ | ---------------------------- |
33+
| `base-branch` | Base branch for the pull request | :white_check_mark: | `main` |
34+
| `token` | GitHub token for authentication | :x: | `${{ github.token }}` |
35+
| `branch-prefix` | Prefix for the update branch | :x: | `update-dependencies` |
36+
| `pr-title` | Title for the pull request | :x: | `Update Golang Dependencies` |
37+
| `commit-message` | Commit message for the update | :x: | `Update Golang dependencies` |
3638

3739
## :warning: Prerequisites
3840

golang/action.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ inputs:
1818
description: 'Branch prefix'
1919
default: 'update-dependencies'
2020

21+
pr-title:
22+
required: false
23+
description: 'Title for the pull request'
24+
default: 'Update Golang Dependencies'
25+
26+
commit-message:
27+
required: false
28+
description: 'The commit message for the update'
29+
default: 'Update Golang dependencies'
30+
2131
runs:
2232
using: 'composite'
2333
steps:
@@ -53,8 +63,8 @@ runs:
5363
base-branch: ${{ inputs.base-branch }}
5464
branch-prefix: ${{ inputs.branch-prefix }}
5565
files: 'go.mod go.sum'
56-
commit-message: 'Update Go dependencies'
57-
pr-title: 'Update Go dependencies'
66+
commit-message: ${{ inputs.commit-message }}
67+
pr-title: ${{ inputs.pr-title }}
5868
pr-body: |
5969
# :arrows_counterclockwise: Go Module Dependencies Update
6070

0 commit comments

Comments
 (0)