GitXplorerGitXplorer
t

redmine_slack_notify

public
0 stars
0 forks
2 issues

Commits

List of commits on branch master.
Unverified
feceea5b935881f520919e0156a454ac21fb8793

Add atom update

ttubone24 committed 5 years ago
Unverified
af45342c90b903d7888a093c863879925b96d277

Add atom update

ttubone24 committed 5 years ago
Unverified
d26c405b3aaf73ad958fc8b86f18c0f9a58e1612

WIP TESTS

ttubone24 committed 5 years ago
Unverified
dd2f407620dde271cd5b2c072b3adfed37f35f5c

:books: Add download issues.csv

ttubone24 committed 5 years ago
Unverified
c6554eddb99d8d1bb02e5573177caeec0eafe1c9

first release

ttubone24 committed 5 years ago
Unverified
7a98530e9167aa81b00e69e8fc945d10bccb9b6e

:tada: Firstcommit

ttubone24 committed 5 years ago

README

The README file for this repository.

redmine_slack_notify

logo

license standard-readme compliant PRs Welcome

The script that access the Redmine server in the private environment, detects ticket updates, and notifies Slack.

Table of Contents

Background

In the workplace where I work, I use Redmine built in a private environment for sharing information between stakeholders.

I wanted to share the update of Redmine Issue and its contents to Slack used by the development team,

Since Redmine server can only be accessed in a private environment, Slack's RSS Integration could not be used.

So, I thought about creating a Python script that runs on the PC (Raspberry PI) that was left behind in development, and notified Redmine of updates via the script.

Install

Precondition

  • Python3.6 or more

Install dependencies

pip install -r requirements.txt

Edit your environment

mv .env.sample .env
vi .env

Config(.env)

URL=https:/xxxxxxx/xxxxxx/issues.csv                             # Endpoint that download issues.csv on your redmine server(!Check filter and must sort by updated DESC)
WEB_HOOK_URL_DAILY=https://hooks.slack.com/services/xxxxxx       # Incoming WEBHOOK for Daily notify
WEB_HOOK_URL_EACH=https://hooks.slack.com/services/xxxx          # Incoming WEBHOOK notify when detecting updating 
LOOP_INTERVAL=1       # Loop interval for detecting redmines updating
DAILY_HOUR=9          # Daily notify hours
DAILY_MINUTES=10      # Daily notify minutes (this examples sets 9:10)

[Note] How to get the URL for getting issue.csv

  • First, Open Chrome developer tool(Push F12)
  • Second, Show your project and disabled all filter and also sort updated descending order

1

  • Click exporting other format CSV

2

  • Choose the berow and click export
    • selected columns
    • check description, latest note
    • Encoding UTF-8

3

  • Watch developer tool network tab and check downloading issues.csv

4

  • select Copy link address, this is your issues.csv download URL!

5

Usage

cd src 
python main.py

Contributing

See the contributing file!

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © tubone24.