Git Product home page Git Product logo

arnavk-09 / convert_pull_req_title_into_conventional_commit_scheme Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 358 KB

πŸ₯“ By utilizing this action, users can automatically convert new pull request titles into the conventional commits format

Home Page: https://github.com/marketplace/actions/convert-pull-req-title-into-conventional-commit-scheme

License: MIT License

JavaScript 100.00%
action gemini-api gh github-actions javascript marketplace

convert_pull_req_title_into_conventional_commit_scheme's Introduction

✨ Convert Pull Req Title Into Conventional Commit Scheme!

Note

The convert_pull_req_title_into_conventional_commit_scheme project is a public GitHub Action available in the GitHub Marketplace. By utilizing this action, users can automatically convert new pull request titles into the conventional commits format as defined by conventionalcommits.org.

This project is powered by the Google Gemini Pro API, which enables seamless integration and efficient conversion of pull request titles into conventional format messages.


πŸ“ Setup Guide

To set up the convert_pull_req_title_into_conventional_commit_scheme action, follow these steps:

1. πŸ”†Action Setup

  • Visit the GitHub Marketplace page for the action.
  • Click on the "Set up a workflow" button.
  • Choose the repository where you want to use the action.
  • Add GEMINI_API_KEY secret in your repository secrets from settings
  • Create a new workflow file (e.g., .github/workflows/convert-pull-request-title.yml).
  • Add the following code to the workflow file:
name: Convert Pull Req Title Into Conventional Commit Scheme!

on:
  pull_request:
    types: ['opened']

jobs:
  convert:
    runs-on: ubuntu-latest
    permissions: 
      pull-requests: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Convert Pull Request Title into Conventional Commit Scheme
        uses: ArnavK-09/convert_pull_req_title_into_conventional_commit_scheme@main
        with:
          gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
          token: ${{ secrets.GITHUB_TOKEN }}

2. πŸ”… Action Inputs

Input Name Description
gemini_api_key The API key for accessing the Google Gemini LLM API.
token The GitHub token for authentication and authorization. Use ${{ secrets.GITHUB_TOKEN }} to access it securely.
include_emoji Set this to true if you want to include emojis in starting of converted commit prTitle title.

Tip

πŸ₯“ Example Usage #12

To use this action, create a new pull request with a fuzzy title and good description. The action will automatically convert the pull request title into a conventional commit message and patch it to the pull request.


πŸŽ‹ Links

🌟 Star this repo :)

convert_pull_req_title_into_conventional_commit_scheme's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.