Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add commitType to configuration docs #757

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danieltott
Copy link

@danieltott danieltott commented Oct 31, 2023

What:

  • I noticed a commitType field added to .all-contributorsrc, and all I could find about it was this issue

Why:
Having all possible configuration options listed on the configuration docs seems like a good call.

How:
I looked through the source to see how commitType was being used, then wrote some descriptions for it.

Checklist:

  • Documentation
  • Ready to be merged
  • Added myself to contributors table.
    Bot Usage

Add the commitType key and description to the configuration table

✅ Closes: all-contributors#710
@danieltott
Copy link
Author

@all-contributors please add @danieltott for doc

Copy link
Contributor

@danieltott

I've put up a pull request to add @danieltott! 🎉

Copy link
Member

@tenshiAMD tenshiAMD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danieltott Thanks for contributing. Please check the requested changes.

@danieltott
Copy link
Author

@tenshiAMD broken links commit pulled out and added to #759 👍🏼

@tenshiAMD tenshiAMD changed the title Add commitType to configuration docs docs: add commitType to configuration docs Oct 31, 2023
Copy link
Member

@tenshiAMD tenshiAMD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danieltott LGTM. Thanks!

@@ -22,6 +22,7 @@ These are the keys you can specify:
| `imageSize` | Size (in px) of the user's avatar. | Default: `100` |
| `commit` | Auto-commit badge when adding contributors. | Default: `false` |
| `commitConvention` | Commit convention ([`angular`](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines), [`atom`](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#git-commit-messages), [`ember`](https://guides.emberjs.com/v1.10.0/contributing/#toc_commits), [`eslint`](https://eslint.org/docs/1.0.0/developer-guide/contributing#step-2-make-your-changes), [`jshint`](https://jshint.com/contribute/), [`gitmoji`](https://gitmoji.carloscuesta.me/), or `none`). | Default: `angular` |
| `commitType` | Set the `tag` for the commit in your chosen `commitConvention` (read more at [`commit-conv`](https://github.com/Berkmann18/commit-conv#parameters)) | Default: `docs` |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this link right? It doesn't look like the right repo, and includes little/no helpful information about which options can be used for the commitType option.

Would https://www.conventionalcommits.org be better?

Can anyone add information about whether the it is supported to add a scope to commitType as well?

e.g. will "commitType": "chore(contributors)" work?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tenshiAMD perhaps you know ☝🏻

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, that's the library that the all contributors bot uses, presumably. In that case, makes sense, though it's unclear how opinionated that library is about the commitType or if any string value would be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing documentation for commitType configuration
3 participants