Giter Club home page Giter Club logo

turbo-enigma's People

Contributors

agustingomes avatar batusa avatar dependabot-preview[bot] avatar dependabot[bot] avatar eher avatar eher-werkspot avatar fernandoporazzi avatar ferrastas avatar malukenho avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

turbo-enigma's Issues

Replace golint by revive

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."

Remove deprecated methods

For instance:
provider/slack.go:SendPullRequestEvent(URL, title, author string) error

The release version must be respected.

Test helm chart

We can use helm test for it and my be a good idea to use k3d on test pipeline to run it.

React on slack notification with merge request status

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

Search for exactly match

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.

Replace hardcoded avatar and username

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",
)

Using Slack API methods available for User and not for Bot

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.

Dependency Dashboard

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.

Detected dependencies

dockerfile
Dockerfile
  • docker/dockerfile 1.7
  • golang 1.22-alpine
github-actions
.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
gomod
go.mod
  • go 1.19
  • github.com/stretchr/testify v1.9.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.