Skip to content

UranusLin/GitReleaseNotiSlackBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Git Release Slack Notification

How to Run

python3 -m venv noti-env
source noti-env/bin/activate
pip3 install -r requirements.txt

direct run

python main.py

or run on shell

chmod 700 run.sh
./run.sh

How to configure

setting.py

slack channel name

slack_channel = "XXXXXXX"

key word setting

flag_list = ['hardfork', 'fork']

git release template just for support GitHub and GitLab

"ETH": {
            "code": "ETH",
            "repo": "https://github.com/ethereum/go-ethereum/releases",
            "release": "https://api.github.com/repos/ethereum/go-ethereum/releases",
            "git": "github"
        }

slack_token is slack bot token

slack_token = "xoxb-abacabcabcbacbacbacbac"

slack_template

copy template from Block Kit Builder

slack_template = {
        "header": {
            "type": "header",
            "text": {
                "type": "plain_text",
                "text": "Coin Release Update"
            }
        },
        "divider": {
            "type": "divider"
        },
        "section": {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": ""
            }
        },
        "context": {
            "type": "context",
            "elements": [
                {
                    "type": "mrkdwn",
                    "text": ""
                }
            ]
        }
    }

About

a simple notification bot for GitHub GitLab repos release update and send message to slack channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published