Skip to content

m-masataka/rss-reader-redmine-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

RSS Reader Redmine Bot

This is a simple implementation of a RSS reader bot for Redmine written in golang. ( for redmine in private network)

How To Config

First, clone this project then build code.

# clone ....
# cd go-rss-reader-redmine-bot
# go get -d
# go build rss_reader_redmine_bot.go

Next edit redmine_rss.conf.

Example

# This tool logging the entry id that already sended.
# comp_file_path define the id logging file path.
comp_file_path = "./fn/"

# polling projects interval (seconds)
polling_interval = 60


# Setting projects that you want to poll changes and notify.
[[projects]]
# Setting the project id. No duplication.
id = "sample-project01_activity"
# rss(atom) url
url = "https://redmine.org/projects/sample-project-01/activity.atom?key=xxxxxx"
  [projects.slack]
  # bot_name
  bot_name = "bot_name"
  # webhook_url
  webhook_url = "https://hooks.slack.com/services/xxxxxxxx"
  # channel(post to) and bot's icon
  channel = "general"
  icon = "pig"

[[projects]]
.....

Dryrun At the first time, this script poll and send the all available entries. So please try dryrun to loggin current entry ( exec with --dryrun=true flag).

# ./rss_reader_redmine_bot --dryrun --config.file=./redmine_rss.conf

Setting cron to exec this script (without --dryrun flag)

Contributing

Please submit PRs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages