github / github/platform-samples

Pre-receive hook output prefix

Abierto
#272 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
2.2k
Forks
1.9k
Merge medio
7 d 19 h
PR fusionados (30 d)
1

Descripción

Hi, in an organisation with many pre-receive hooks running, it would be great if the hook was executed with each stdout line being pre-fixed with the hook that caused the line output.

Like what is shown here: https://superuser.com/a/623119/860394

```bash
command1.sh | sed "s/^/[command1] /"
command2.sh | sed "s/^/[command2] /"
```

For hook maintainers, it is time consuming to constantly address questions about issues related to other hooks created by other teams within an organisation.

Edit:

per-hook solutions are welcome, though a GitHub-wide solution would be ideal.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by reviewing the pre-receive hook context and the command1.sh/command2.sh piping example in the issue. Determine whether a per-hook wrapper can meet the request or whether it requires a GitHub-wide platform change; done means documenting and implementing an agreed prefixing approach.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
devops, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.