• This repository has been archived on 01/Apr/2020
  • Stars
    star
    151
  • Rank 246,057 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[NOT MAINTAINED] use https://github.com/apps/semantic-pull-requests

commitlint [bot]

Travis npm

commitlint logo

Built with probot framework

A GitHub App that runs commitlint against all commits of new or edited pull requests and sets an appropriate status check.

Usage

  1. Browse to GitHub Apps - commitlint
  2. Accept the permissions
  3. Allow access to repositories

On the next pull request, a status check from commitlint will appear:

status-check-screenshot

Problem details will be reported as a comment like this:

status-comment-screenshot

For best results, enable branch protection (in the repository's settings) and require the commitlint status check to pass before merging:

branch-protection-screenshot

What is missing?

We don't currently support custom configuration (i.e. .commitlint.yml or .commitlint.json), but we will

Development

  1. Setup the repo:
git clone https://github.com/z0al/commitlint-bot.git
cd commitlint-bot
npm install
  1. Create your own GitHub app
  2. Store the private key as private-key.pem somewhere safe, and point to its location in .env
  3. Start the app with APP_ID=1234 npm start where 1234 is your GitHub app's ID
  4. Update your GitHub app's Webhook URL to your localtunnel.me URL

Deployment

See docs/deploy.md for more info.

Credits

Robot designed by Freepik.

Inspired by the awesome work of Tom Vincent in their validate-commit-msg-bot package.

Like it?

Give it a star(⭐) πŸ‘†

License

MIT Β© Ahmed T. Ali

More Repositories

1

dependent-issues

πŸ“¦ A GitHub Action for marking issues as dependent on another
TypeScript
145
star
2

react-native-styled.macro

βš›οΈ A Utility-First Styling Library for React Native
TypeScript
91
star
3

dep

[DEPRECATED] Use https://github.com/z0al/dependent-issues instead
TypeScript
71
star
4

git-todos

A Git based Todos App for Developers ⚑
Go
59
star
5

poimandres-alacritty

Unofficial Poimandres theme for Alacritty
17
star
6

probot-review-me

Decide when a pull request is ready for review based on its statuses
JavaScript
16
star
7

dotfiles

My NixOS ❄ & macOS 🍏 configuration
Nix
11
star
8

oktane

βš›οΈ A light-weight and customizable library for data fetching in React
TypeScript
8
star
9

stash

A tiny state container for JavaScript apps
TypeScript
6
star
10

handy-gi

Generate a .gitignore string that matches your needs magically βœ¨πŸ’―
JavaScript
5
star
11

unread

A package for parsing RSS and Atom feeds
TypeScript
5
star
12

settings-toggle

Effortlessly Toggle Settings in Visual Studio Code
TypeScript
4
star
13

probot-issue-commands

A Probot extension to make it easier to build commands with syntax similar to GitHub issue closing pattern
TypeScript
3
star
14

gfmc

JavaScript pure implementation of GitHub Flavored Markdown (GFM) specification :octocat:
TypeScript
2
star
15

commitlint-visualize

Easier to read https://npm.im/commitlint reports
JavaScript
2
star
16

submitter

A Prettier UI for Submitting GitHub Issues πŸš€
JavaScript
2
star
17

naming-is-hard

1
star
18

minipack

An interactive webpack-based playground for the modern web ツ
TypeScript
1
star
19

ignr

Automagically generate a .gitignore file that fits your needs
JavaScript
1
star
20

handy-gi-cli

The CLI version of https://github.com/z0al/handy-gi
JavaScript
1
star