github / github/platform-samples
Pre-receive hook output prefix
- Langage dominant
- Shell
- Étoiles
- 2.2k
- Forks
- 1.9k
- Merge moyen
- 7 j 19 h
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par examiner le contexte du pre-receive hook et l’exemple de piping command1.sh/command2.sh dans l’issue. Déterminez si un wrapper par hook peut répondre à la demande ou si cela nécessite une modification de la plateforme GitHub à l’échelle globale ; le travail est considéré comme terminé lorsqu’une approche de préfixage convenue est documentée et implémentée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- shell
- Domaine
- devops, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100