Skip to content

Commit 54782a8

Browse files
committed
docs: add missing inputs to README table, optimize Docker build
- Add pr_draft, pr_reviewers, pr_assignees, debug, timeout, retry_count to the README Inputs table - Optimize Dockerfile with CGO_ENABLED=0 and -ldflags="-s -w" for smaller binary size
1 parent c653a64 commit 54782a8

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM golang:1.26-alpine AS builder
44
WORKDIR /app
55
COPY . .
66

7-
RUN go build -o /go-git-commit-action ./cmd/main.go
7+
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /go-git-commit-action ./cmd/main.go
88

99
# Final stage
1010
FROM alpine:3.23

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ A GitHub Action that automates git commit, push, tag, and pull request operation
101101
| `pr_body` | No | Custom body message for pull request | - |
102102
| `skip_if_empty` | No | Skip the action if there are no changes | false |
103103
| `pr_closed` | No | Whether to close the pull request after creation | false |
104+
| `pr_draft` | No | Create pull request as draft | false |
105+
| `pr_reviewers` | No | Reviewers for PR (comma-separated usernames) | - |
106+
| `pr_assignees` | No | Assignees for PR (comma-separated usernames) | - |
104107
| `pr_dry_run` | No | Simulate PR creation without actually creating one | false |
108+
| `debug` | No | Enable debug logging | false |
109+
| `timeout` | No | Operation timeout in seconds | 30 |
110+
| `retry_count` | No | Number of retries for failed operations | 3 |
105111

106112
**See [Configuration](docs/CONFIGURATION.md) for detailed descriptions and validation rules.**
107113

0 commit comments

Comments
 (0)