-
Notifications
You must be signed in to change notification settings - Fork 14
ci: add auto-me-bot to validate conventional pr titles #120
base: main
Are you sure you want to change the base?
ci: add auto-me-bot to validate conventional pr titles #120
Conversation
9712987
to
22a86af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@dimabru unfortunately, that's how the project works. If you decide to keep away from any app installation we will have to find another tool. |
Of course we can. If any of the above is the direction you choose, feel free to ping me if any help is required. As for me, well... I've been avoiding apps and sticking to actions for a long time, a while back I've reached the conclusion that, for me, workflows require more maintenance then apps, and apps (if you write them yourself, which is what I did) can be much more dynamic then workflows. BTW, that's why I called it "auto-me-bot", because it was designed to replace me by doing stuff I used to do manually via workflows. 😉 EDIT: |
@TomerFi Can you please elaborate on how we can use github actions? |
@dolby360 You know what... hang-on let me verify. |
well... yes becauseI was able to run in with a simple two line ci step, you can take a look here.
module.exports = { extends: ['@commitlint/config-conventional'] };
---
name: Pull request build
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
npm i -g commitlint @commitlint/config-conventional
echo "${{ github.event.pull_request.title }}" | commitlint A failed run example can be found here. no becauseBased on what I know, without doing too much research on the topic, Maybe I'm wrong on this one though, it perhaps worth proper research. |
@TomerFi I don't think that any tool will rerun automatically if PR title is changed. |
That's a pro for using the app. |
@TomerFi Sure but without using any app I think this is a fine compromise |
Signed-off-by: dolby360 <[email protected]>
22a86af
to
a60002c
Compare
I think it will better placed if a separate workflow. |
@TomerFi Please take a look :)