hugolib: Add gitpurism module
authorNikita Shubin <nikita.shubin@maquefel.me>
Fri, 29 Mar 2024 10:02:04 +0000 (13:02 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Fri, 29 Mar 2024 10:02:04 +0000 (13:02 +0300)
commit8bbf187b6967bdbf66dc297968a1f4fc71d596fa
tree41a2d6154a2700e6a37ca8abde4b70e0fdbb062c
parent9c80f18328d4a168b0ee4fa55f930c322c67b966
hugolib: Add gitpurism module

Add gitpurism module to extract tags and categories directly from git
notes.

Curently it scans notes/categories and notes/tags branches.

Example:
Notes (categories):
    categories: [git]

Notes (tags):
    tags: [git,git-notes]

Data is expected in YAML format.

TODO: specify note branches to scan

Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
hugolib/gitpurism.go [new file with mode: 0644]