Commit Graph

7 Commits

Author SHA1 Message Date
bf44c4a648 wip(parser): partly finished Message parser 2021-08-26 02:03:15 +01:00
5174ed35ca feat(parser): add Comment method to check if a line is a comment 2021-08-26 01:43:34 +01:00
758deef7e9 refactor(parser): rework RawMessage into Buffer
The old RawMessage implementation effectively brute forced the initial
processing of a comment message by breaking it down into lines, and
grouping them into paragraphs.

This is useful, but, we actually only need the first paragraph, the last
paragraph, and then everything between. So there's no need to break down
the message into each paragraph.

In theory, the Buffer implementation is more performant than RawMessage
was, but most importantly I think it will be easier to work with it.
2021-08-15 19:57:13 +01:00
e8ca009440 Merge pull request #1 from romdo/add-rawmessage
feat(parser): implement RawMessage
2021-08-09 21:06:35 +01:00
ce4b06f67c feat(parser): implement RawMessage
The NewRawMessage function returns a RawMessage struct, which has broken
the given commit message down into separate lines, and also grouped the
lines into paragraphs.

This should make it easier to implement proper conventional commit
parser, linter, and formatter.
2021-08-09 21:03:22 +01:00
99a28a0346 ci(github): setup GitHub Actions 2021-08-08 20:31:59 +01:00
8b330a6c40 chore(misc): add license and basic readme 2021-08-08 19:23:00 +01:00