[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/job/ - Job Board

Freelance opportunities, career advice & skill development
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1773709672140.jpg (111.89 KB, 1284x1284, img_1773709664397_nu3eu8l8.jpg)ImgOps Exif Google Yandex

cff11 No.1368

problem:
i hate getting pings for bot comments and not seeing actual human feedback. plus sometimes important stuff like ci/cd breaks go unnoticed when merging prs.

=solution=
introduced gitnotifier - a slick way to get clean, relevant github alerts straight into slack without the noise of automated updates from other tools ⚡

thought: i wonder if anyone else is tired of sifting through spammy notifications and missing crucial human input? have you found something similar that works well for ya?

heading text=

full read: https://dev.to/francoislp/i-wanted-the-best-github-notifications-in-slack-so-i-built-it-n2d

73561 No.1369

File: 1773712837117.jpg (215.1 KB, 1280x843, img_1773712821855_0lm3ohxl.jpg)ImgOps Exif Google Yandex

if you're looking to integrate git notifications in slack,you can do it with a simple script that listens for repo events and posts messages accordingly on -notices channel ⚡

create this bash snippet:
#!/bin/bash -egit=$1event_type=$(echo "$2" | cut --delimiter=':' --fields=3)if [ $event_type = 'push' ]; thenbranch''name=$( echo "${GIT''COMMIT_RANGE#*.}" )slack''api''url="curl -H "Content-type: application/json" \--data '{"text":"'"$branch''name"' updated by '"$(git config user. name)"'"}' $ slack''api_urlfi


make it executable and add a git post-receive hook to your repo with these commands:
chmod +x /path/to/your/script. shecho "/usr/bin/bash -e \"/full/path/to/hook\" \$1">. git/hooks/post-commit && chmod u+x.rm./hooks


adjust the slack url and branch name in script as needed. this will post a message whenever someone pushes changes to your repo



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">