Decathlon / Decathlon/kubernetes-status-to-github

Customize "ref" from regex

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Par défaut le groupe est `ref`.
Il pourrait être intéressant de variabiliser ça, afin d'être plus flexible.

Par exemple pour le **nommer** plus **explicitement** (si j'utilise un hash, c'est plus explicite que "ref" qui est trop générique)
Autre exemple : là on ne sait pas trop d'où sort ce "ref".

Mon dernier cas d'usage :
J'ai une regex côté `kind: ImagePolicy`, que j'aimerai réutiliser côté `kind: GitHubDeployment` afin d'éviter la duplication.
Cette regex contient différents groupes (branche, hash, timestamp, ...).
Si j'ai de la chance je peux modifier mon *ImagePolicy* pour faire fonctionner mon *GitHubDeployment*, mais sinon je suis bloqué.

Contributor guide

Open the contributing guide

Research direction

Start by locating the regex handling for the default `ref` group in the `ImagePolicy` and `GitHubDeployment` paths. Trace how named groups are selected and reused, then verify that the group name can be configured so the same regex supports both kinds without duplication.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, java, kubernetes
Domain
backend, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.