Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/roko
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
Add this line to your application's Gemfile:
gem 'roko'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install roko
Service | environment variable | description |
---|---|---|
Github | NETRC_FILE_PATH |
Path for netrc file. |
Google Calendar | GOOGLE_API_CREDENTIALS_PATH |
Path for google api credentials file. |
Slack | SLACK_API_TOKEN |
Slack API token. |
Confluence | CONFLUENCE_USER CONFLUENCE_PASSWORD CONFLUENCE_URL |
User and password for confluence. |
Write netrc file like below.
machine api.github.com
login your_username
password password_or_your_api_token
Set the netrc file's path imn environment variable NETRC_FILE_PATH
.
Or use ~/.netrc
by default.
Create your service account and download a credential file.
see: https://cloud.google.com/docs/authentication/getting-started?hl=en
Set the credential file's path in environment variable GOOGLE_API_CREDENTIALS_PATH
.
Or use ~/credentials.json
by default.
Set your slack API access token as environment variable SLACK_API_TOKEN
.
Set your user name and password as environment variable CONFLUENCE_USER
, CONFLUENCE_PASSWORD
.
This gem access CONFLUENCE_URL
as confluence host.
source | time | type | title | url | sub_type | sub_title | sub_url |
---|---|---|---|---|---|---|---|
Github |
date time of this pr is opened | PR |
PR title | PR url | open |
||
Github |
date time of this review is posted | PR |
PR title | PR url | review |
comment body | comment url |
Github |
date time of this pr is closed | PR |
PR title | PR url | close |
||
Google Calendar |
date time of this meeting is started | MTG |
MTG title | start |
|||
Slack |
date time of posted | channel |
channel name | post |
post body | ||
Confluence |
date time of this document is edited | confluence |
document title | edit |
|||
JIRA |
date time of this task is edited | task |
ticket title | edit |
You can change report template to set ROKO_ONELINE_TEMPLATE
.
The template is looks like %{Y}/%{m}/%{d} %{H}:%{M} %{main_type} [%{main_title}](%{main_url})
.
key | description |
---|---|
source |
source of this event |
Y |
year |
m |
month |
d |
day |
H |
hour of the day |
M |
minute |
main_type |
type of this event |
main_title |
title of this event |
main_url |
url of main content of this event |
sub_type |
sub type of this event |
sub_title |
sub title of this event |
sub_url |
url of sub content of this event |
See Event section to know what main/sub keys has.
$ bundle exec ruby exec/roko help
After checking out the repo, run bin/setup
to install dependencies. Then, run bundle exec rspec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/hmiyado/roko.