Skip to content

tokifujp/gitlab_webhooks_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab webhooks proxy

what

It receives the post requests from GitLab and replaces some string and posts to Slack :)   スクリーンショット 2021-08-24 15 56 29

How it works

diagram

where

in Google Drive so it runs for free :)
Search for Google Apps Script for further studies.

deploy

use clasp :)

install clasp

$ npm i @google/clasp -g

initialize clasp

$ clasp login

clone/pull/push from/to remote GAS

clone

$ clasp clone 1n8****************************VZ1

pull

$ clasp pull 1n8****************************VZ1

push

$ clasp push 1n8****************************VZ1

config

see .env.js and create your team members' table and define Slack Incoming Webhooks URI.

GitLab

publish your GAS app after deploy and get web app URL and go to your repository settings:

  1. Settings -> Integrations -> Slack Notifications
    スクリーンショット 2021-08-24 16 14 30
    スクリーンショット 2021-08-24 16 14 49
  2. choose Use custrom settings from Default Settings are inherited from the instance level.1
  3. paste your web app URI to Webhook
    スクリーンショット 2021-08-24 16 15 14

and you should be getting direct mention from GitLab! Conrats!! Have a nice day 🍺

Footnotes

  1. You won't require this if you're not using the GitLab CE:beer:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published