AmrDeveloper / GQL

Git Query language is a SQL like language to perform queries on .git files with supports of most of SQL features such as grouping, ordering and aggregations functions
https://amrdeveloper.github.io/GQL/
MIT License
3.3k stars 90 forks source link

Any idea to add Conventional Commits support #109

Closed linux-china closed 5 months ago

linux-china commented 5 months ago

Most developers adopt Conventional Commits for commit, such as

feat: allow provided config object to extend other configs
feat(lang): add Polish language
docs: correct spelling of CHANGELOG

It's ok to add type column for commits table? If not Conventional Commits style, and type is null.

With type column introduce, and it's easy to filter conventional commits.

gitql -q 'select * from commits where type = "feat"'
AmrDeveloper commented 5 months ago

Hello @linux-china,

I like the idea but i am thinking to provide the features as a function to and not add new table for each style in the schema for example

'SELECT * FROM commits WHERE commit_conventional(message) = "feat"'

This function can be implemented only on gitql and not in the gitql sdk

AmrDeveloper commented 5 months ago

@linux-china Done, will be available on next release

commit_conventional

Thank you, Amr Hesham

linux-china commented 5 months ago

Fixed by 0.24. Thanks :)