somaz94/Go Git Commit Action
Automate git commit, push, tag, and pull request operations in your CI/CD workflow, written in Go
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| user_email | Git user email | yes | — |
| user_name | Git user name | yes | — |
| commit_message | Commit message | no | Auto commit by Go Git Commit Action |
| branch | Branch to push to | no | main |
| repository_path | Path to the repository | no | . |
| file_pattern | File pattern to add | no | . |
| tag_name | Tag name to create or delete | no | "" |
| tag_message | Tag message (for annotated tags) | no | "" |
| delete_tag | Whether to delete the tag (true/false) | no | false |
| tag_reference | Git reference for the tag (can be commit SHA, tag name, or branch name) | no | "" |
| create_pr | Whether to create a pull request | no | false |
| auto_branch | Whether to create automatic branch name | no | false |
| pr_title | Pull request title | no | "" |
| pr_base | Base branch for pull request | no | main |
| delete_source_branch | Whether to delete source branch after PR creation | no | false |
| pr_branch | Branch to create pull request from | no | "" |
| github_token | GitHub token | no | — |
| pr_labels | Labels to add to the pull request (comma-separated) | no | "" |
| pr_body | Custom body message for pull request | no | "" |
| skip_if_empty | Skip the action if there are no changes | no | false |
| pr_closed | Whether to close the pull request after creation | no | false |
| pr_draft | Create pull request as draft | no | false |
| pr_reviewers | Reviewers to request for the pull request (comma-separated usernames) | no | "" |
| pr_assignees | Assignees for the pull request (comma-separated usernames) | no | "" |
| pr_dry_run | Simulate PR creation without actually creating one (for testing) | no | false |
| debug | Enable debug logging | no | false |
| timeout | Operation timeout in seconds | no | 30 |
| retry_count | Number of retries for failed operations | no | 3 |
Outputs
| name | description |
|---|---|
| commit_sha | The SHA of the created commit |
| pr_number | The number of the created pull request |
| pr_url | The URL of the created pull request |
| tag_name | The name of the created tag |
| skipped | Whether the action was skipped due to no changes (true/false) |
| changed_files | The number of changed files detected |