Introducing Go Git Commit Action

Go Git Commit Action

Introducing Go Git Commit Action

Hello DEV Community! 👋

I’m excited to share a GitHub Action I’ve developed that might make your CI/CD workflows a bit smoother: Go Git Commit Action.

What is it?…


This content originally appeared on DEV Community and was authored by 이동형

Go Git Commit Action

GitHub Marketplace

Introducing Go Git Commit Action

Hello DEV Community! 👋

I'm excited to share a GitHub Action I've developed that might make your CI/CD workflows a bit smoother: Go Git Commit Action.

What is it?

Go Git Commit Action is a GitHub Action written in Go that automates git operations in your workflows. It handles commits, pushes, tags, and even pull request creation - all in one action.

Why I built it

While there are several git automation actions available, I wanted something:

  • Written in Go for better performance
  • Combining multiple git operations in one action
  • Providing flexible options for different workflows
  • Handling edge cases like empty commits and reference tags

Key Features

  • Automated Git Operations: Commit, push, and tag in one step
  • Pull Request Management: Create PRs with custom titles, labels, and auto-branch generation
  • Tag Management: Create, delete, and reference tags
  • Performance: Written in Go for efficiency
  • Flexibility: Configurable for various workflows

Example Usage

Basic Commit

- uses: somaz94/go-git-commit-action@v1
  with:
    user_email: actions@github.com
    user_name: GitHub Actions
    commit_message: Auto commit by GitHub Actions
    branch: main

Creating a Tag

- uses: somaz94/go-git-commit-action@v1
  with:
    user_email: actions@github.com
    user_name: GitHub Actions
    tag_name: v1.0.0
    tag_message: Release version 1.0.0

Creating a Pull Request

- uses: somaz94/go-git-commit-action@v1
  with:
    user_email: actions@github.com
    user_name: GitHub Actions
    create_pr: true
    pr_branch: feature/my-branch
    pr_base: main
    pr_title: "feat: my custom PR title"
    pr_labels: "enhancement,automated"
    github_token: ${{ secrets.GITHUB_TOKEN }}

Why You Might Like It

  • Simplify Workflows: Combine multiple git steps into one
  • Reduce Boilerplate: Less YAML in your workflow files
  • Flexible Options: Configure only what you need
  • Reliable Execution: Written in Go for consistent performance

Get Started

You can find the action in the GitHub Marketplace or check out the repository for more examples and documentation.

I'd love to hear your feedback or feature requests! Feel free to open issues or contribute to the project.

Happy automating! 🚀


This content originally appeared on DEV Community and was authored by 이동형


Print Share Comment Cite Upload Translate Updates
APA

이동형 | Sciencx (2025-02-26T02:25:31+00:00) Introducing Go Git Commit Action. Retrieved from https://www.scien.cx/2025/02/26/introducing-go-git-commit-action/

MLA
" » Introducing Go Git Commit Action." 이동형 | Sciencx - Wednesday February 26, 2025, https://www.scien.cx/2025/02/26/introducing-go-git-commit-action/
HARVARD
이동형 | Sciencx Wednesday February 26, 2025 » Introducing Go Git Commit Action., viewed ,<https://www.scien.cx/2025/02/26/introducing-go-git-commit-action/>
VANCOUVER
이동형 | Sciencx - » Introducing Go Git Commit Action. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/02/26/introducing-go-git-commit-action/
CHICAGO
" » Introducing Go Git Commit Action." 이동형 | Sciencx - Accessed . https://www.scien.cx/2025/02/26/introducing-go-git-commit-action/
IEEE
" » Introducing Go Git Commit Action." 이동형 | Sciencx [Online]. Available: https://www.scien.cx/2025/02/26/introducing-go-git-commit-action/. [Accessed: ]
rf:citation
» Introducing Go Git Commit Action | 이동형 | Sciencx | https://www.scien.cx/2025/02/26/introducing-go-git-commit-action/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.