Skip to content
/ fbe Public

FactBase Extended (FBE) for the judges in judges-action and inside Baza

License

Notifications You must be signed in to change notification settings

zerocracy/fbe

Repository files navigation

FactBase Extended (FBE)

DevOps By Rultor.com

rake PDD status Gem Version Test Coverage Yard Docs Hits-of-Code License

It's a collection of tools for zerocracy/judges-action. You are not supposed to use it directly, but only in a combination with other tools of Zerocracy.

The following tools runs a block:

  • Fbe.regularly runs a block of code every X days.
  • Fbe.conclude runs a block on every fact from a query.
  • Fbe.iterate runs a block on each repository, until it's time to stop.
  • Fbe.repeatedly runs a block of code every X hours, leaving a fact-marker in the factbase.

These tools help manage facts:

  • Fbe.fb makes an entry point to the factbase.
  • Fbe.overwrite changes a property in a fact to another value by deleting the fact first, and then creating a new similar fact with all previous properties but one changed.

They help with formatting:

  • Fbe.who formats user name.
  • Fbe.issue formats issue number.
  • Fbe.award calculates award by the bylaw.
  • Fbe.sec formats seconds.

They help with external connections:

  • Fbe.octo connects to GitHub API.

They help with management:

  • Fbe.pmp takes a PMP-related property by the area.
  • Fbe.bylaws builds a hash with bylaws.

How to contribute

Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 3.2+ and Bundler installed. Then:

bundle update
bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.