Skip to content
This repository was archived by the owner on May 13, 2020. It is now read-only.

CatchRelease/stenographer

Repository files navigation

Stenographer

Stenographer is a simplistic way to manage your changes and show them to the users. When using an input like Github that has a unique id shared across branches, it will also manage grouping changes by environment.

Usage

To create a new item:

Stenographer::Change.create(message: 'My Change', change_type: 'new/improved/fixed', visible: true, environments: 'production', tracker_ids: '#12345', source: '{}')

It's advised to store the source so you can parse it again later if needed.

To View:

Open a browser to http://host:port/stenographer or whatever you've set your mount point to.

Automatic Changelogs

  1. First, setup your input type in your config/stenographer.rb. As of right now, Stenographer only supports Stenographer::Inputs::GithubInput which users github webhooks.
  2. Then, setup your GitHub webhook setup to use "just the push event" to point at https://#{YOUR_DOMAIN}/#{STENOGRAPHER_MOUNT_POINT}/changes
  3. Finally, add [changelog My change message] to your commits.

Installation

Add this line to your application's Gemfile:

gem 'stenographer-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stenographer-rails

Add the configuration and migrations:

$ rails g stenographer:install

Configuration

All configuration is available in the config/initializers/stenographer.rb

Developing

Running the App

Set up the database

$ rake app:db:setup

Start the Rails server

$ rails s

View the site http://locahost:3000/stenographer

Testing

Set up the database

$ RAILS_ENV=test rake app:db:setup

Run the tests

$ rake spec

Contributing

  1. Fork the repo and create your branch.
  2. If you've added code that should be tested, add tests.
  3. Ensure the test suite passes using $ rake spec.
  4. Make sure your code lints using $ rubocop.
  5. Issue that pull request!

License

The gem is available as open source under the terms of the MIT License.

About

Better Changelog Management

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •