Recollect.Learner.Git (recollect v0.5.1)

Copy Markdown View Source

Learn from git history — commits, branches, tags.

Detects:

  • Bug fixes ("fix", "bug", "patch")
  • Features ("feat", "feature", "add")
  • Reverts ("revert", "undo")
  • Breaking changes ("BREAKING", "migrate")
  • Documentation changes ("docs", "readme")

Usage

{:ok, result} = Recollect.Learner.Git.fetch_since("7 days ago", scope_id)
{:ok, result} = Recollect.Learner.Git.run(scope_id: scope_id)

Summary

Functions

Classify a commit message into a type atom.

Run the full git learning pipeline for a scope.

Functions

detect_type(message)

Classify a commit message into a type atom.

run(opts \\ [])

Run the full git learning pipeline for a scope.