Configuration
I take my instructions in yaml. If I can't find my configuration file in the repo I'm working with, I'll look for it in your .github repo.
.github/auto-me-bot.yml
---
pr:
lifecycleLabels: # (8)
ignoreDrafts: false # (9)
labels: # (10)
reviewRequired: "waiting for a review"
changesRequested: "changes were requested"
moreReviewsRequired: "approved but waiting for more reviews"
reviewStarted: "a review was started"
approved: "approved and ready"
merged: "merged and done"
conventionalCommits: # (1)
rules: # (2)
conventionalTitle: # (11)
rules: # (12)
signedCommits: # (3)
ignore: # (4)
users: [] # (6)
emails: [] # (7)
tasksList: # (5)
autoApprove: # (13)
allBots: false
users: ["dependabot"]
- this means I'll enforce conventional commit messages in PRs.
- you can optionally configure some rules for me.
see commitlint options - this means I'll make sure all commits in PRs are signed with the 'Signed-off-by' trailer.
- you can optionally list users and/or emails for me to ignore.
- this means I'll verify the completion of the tasks list in PRs.
- list users you want my to ignore.
- list email addresses you want my to ignore.
- this means you I'll label PRs based on the their lifecycle.
- you can optionally instruct me to ignore drafts, my default value for this is false for including drafts.
- you don't have to specify all of the lifecycle's stages, just the ones you want.
and I don't create the labels yet, so you'll have to create them. - this means I'll enforce conventional titles for PRs.
- you can optionally configure some rules for me.
see commitlint options - you can tell about users or bots you trust, and I'll automatically approve their PRs.
Note
When using both the lifecycleLabels
and autoApprove
, it's advised to keep them separated and in order.
Otherwise, the GitHub's approve event might not make its way to the lifecycle handler, and we might miss a label.