Clarify "Co-authored-by" usage in PRs
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 52/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- github
- Domínio
- documentation
Direção de pesquisa
Leia o quarto parágrafo da seção "Handling Others' Code" do devguide e revise o tópico vinculado no Discourse para obter contexto. Esclareça quando a linha Co-authored-by: do GitHub deve ser usada para contribuições significativas de revisão ou de alterações sugeridas, incluindo como ela se relaciona com squash, automerge e alterações sugeridas diretamente.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
As brought up in a Discourse committers topic, the devguide could be more clear about Pull Request attribution on GitHub.
Specifically, in the fourth paragraph of "Handling Others' Code", the Co-authored-by: feature of GitHub is mentioned, but the use case of it is not defined.
Since GitHub will automatically attribute the primary author of the PR when using "squash and merge" or the "automerge", the Co-authored-by: is useful to add just prior to merging for anyone that significantly contributed to the PR, either via review or direct suggested changes. When using the GitHub UI to directly commit a suggested change to the PR, a Co-authored-by: line is automatically added to the commit message. Otherwise though, it has to be done manually for people other than the author to be attributed for contributing to the PR.
With this being a rather substantial part of the workflow for GitHub PRs, it seems to be worthwhile to mention when Co-authored-by: should be used rather than mentioning the feature without elaborating further.
- Linguagem predominante
- Python
- Estrelas
- 2.1k
- Forks
- 1k
- Merge médio
- 2d 12h
- PRs com merge (30d)
- 12
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python/devguide
-
type-feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
type-feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
topic-building python type-feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
needs: decision topic-test type-bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
topic-dev process type-feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Todas as issues de python/devguide
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
zostera/django-bootstrap4#894 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
use-agent-os/agent-os#3276 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
NousResearch/hermes-agent#117848 ·