github / github/platform-samples
Pre-receive hook output prefix
- Linguagem predominante
- Shell
- Estrelas
- 2.2k
- Forks
- 1.9k
- Merge médio
- 7d 19h
- PRs com merge (30d)
- 1
Descrição
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.
Guia de contribuição
Direção de pesquisa
Comece revisando o contexto do pre-receive hook e o exemplo de piping command1.sh/command2.sh na issue. Determine se um wrapper por hook pode atender à solicitação ou se isso exige uma alteração na plataforma do GitHub em âmbito global; considera-se concluído quando uma abordagem de prefixação acordada for documentada e implementada.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- shell
- Domínio
- devops, tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100