Code Monkey home page Code Monkey logo

git-sumi-action's Introduction

git-sumi logo: a lantern held on a bamboo stick over the sea

GitHub version Documentation Clean commits

๐Ÿฎ Run git-sumi Action

This GitHub action runs git-sumi to validate a Pull Request title using the sumi.toml configuration set up in the root of your repository.

Usage

  1. Add a sumi.toml file to the root of your repository, enabling the rules you want to use (see the configuration and rules documentation).

  2. In your repository, create the workflow file .github/workflows/git-sumi.yaml with the following content:

name: Lint pull request title

on:
  pull_request:
    types:
      - opened
      - edited
      - synchronize
      - ready_for_review

permissions:
  pull-requests: read

jobs:
  main:
    name: Run git-sumi
    runs-on: ubuntu-latest
    steps:
      - uses: welpo/git-sumi-action@main
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This workflow will run on every pull request event, checking the title against the rules defined in sumi.toml.

  1. Commit and push the workflow file to your repository.

  2. That's it! The action will run automatically on every pull request event. If the title doesn't meet the rules, the action will fail and the pull request will be marked as "failing".

Questions?

Don't hesitate to reach out via the issue tracker, discussions, or email.

License

This project is licensed under the terms of both the MIT license and the Apache License (Version 2.0), at your option.

git-sumi-action's People

Contributors

welpo avatar

Watchers

 avatar  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.