codelicia / turbo-enigma Goto Github PK
View Code? Open in Web Editor NEW⚡️Gitlab notifier for Slack 🔋
⚡️Gitlab notifier for Slack 🔋
level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive."
For instance:
provider/slack.go:SendPullRequestEvent(URL, title, author string) error
The release version must be respected.
We can use helm test for it and my be a good idea to use k3d on test pipeline to run it.
We have to check the release process. The latest changes merged to master were not available on Docker Hub.
Is this a good moment to change those labels to something more structured, like this https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ ?
So these labels could become app.kubernetes.io/name: turbo-enigma or event app.kubernetes.io/name: {{ $.Chart.Name }}
Original message here #28 (comment)
We could have a feature to react to the notification message depending on the status of the merge request:
⛏️ draft merge request
⚙️ pipeline running
❌ pipeline failed
🟢 pipeline is ok
💬 has threads to be resolved
✅ merge request approved
🚀 merged
func (s *Slack) NotifyMergeRequestCreated(mergeRequest model.MergeRequestInfo) error
func (s *Slack) sendMessage(message []byte) error
The new PRs, like this one, are complaining about the introduction package.
Sometimes, turbo enigma will react to messages containing partial content. For example, if the posted message contains the MR URL, it will find and react to other messages containing the MR URL.
Can be usefull to have a deploy option using Ingress instead of node port.
It's a bit more expensive on Cloud providers but is the right an elegant solution. 😸
On handlers.go
, we have some hardcoded configurations that should be replaced by the equivalent env vars. The username and avatar strings should be replaced with the dynamic values.
var formating = fmt.Sprintf(
template,
os.Getenv("MESSAGE"),
html.EscapeString(mr.ObjectAttributes.URL),
html.EscapeString(mr.ObjectAttributes.Title),
html.EscapeString(mr.User.Name),
"https://avatars.githubusercontent.com/u/46966179?s=200&v=4",
"codelicia/turbo-enigma",
)
Looking at the Slack Token Types we are currently using some methods to search and react to merge request notifications available just for User Tokens.
As a side effect, the reaction is done by the Slack user who created the token, not by the integration. It can cause confusion among people not aware of the integration.
A possible solution is to review the Slack Provider to use just API methods available for bots.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
Dockerfile
docker/dockerfile 1.7
golang 1.22-alpine
.github/workflows/helm-chart-releaser.yml
actions/checkout v4
azure/setup-helm v4
helm/chart-releaser-action v1.6.0
.github/workflows/main.yml
actions/checkout v4
actions/setup-go v5
morphy/revive-action v2
codecov/codecov-action v4
.github/workflows/publish-container-image.yml
actions/checkout v4
docker/setup-buildx-action v3
docker/login-action v3
docker/metadata-action v5
docker/build-push-action v5
.github/workflows/release-on-milestone-closed.yml
actions/checkout v4
laminas/automatic-releases v1
laminas/automatic-releases v1
ubuntu 22.04
go.mod
go 1.19
github.com/stretchr/testify v1.9.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.