This is automatically added in some scenarios of github workflow - for
example when you make a 'suggestion' and that suggestion is then
"committed", the "Co-authored-by" is added automatically.

I think it also works (but I am not 100% sure) when you simply push your
commit on top of someone's branch (if you are a committer, by default you
can do it for people's forks unless they opt-out when forking).

And the co-authored-by is a standard. It is part of the commit message so
various squash/fixups etc. might remove that (fixup by default removes the
squashed commit's message). So you might lose it when you further
rebase/squash it.

But adding the tag to your commit is easy and can even be done
automatically (https://github.com/findmypast-oss/git-mob)

J.


On Wed, Apr 7, 2021 at 8:53 AM antonio <anto...@vieiro.net> wrote:

> Hi Jarek,
>
> This is exactly what we need!
>
> Question is, are you adding the "Co-authored-by:" line by hand or is it
> automatically generated whenever a Pull Request is created in Github? It
> would be great if we could have this populated automatically for an
> easier review.
>
> Maybe there're some settings you your repo's ".github" folder that we're
> missing. I'll try to investigate this.
>
> Thanks,
> ANtonio
>
>
> El 7/4/21 a las 0:37, Jarek Potiuk escribió:
> > Not sure how your workflow is, but In Apache Airflow we use squash &
> merge
> > exclusively and `co-autorship` is pretty common.
> > For example, when I try to squash and merge this PR:
> > https://github.com/apache/airflow/pull/15100, I get this:
> > https://pasteboard.co/JW8pJnQ.png  - after we merge it, this commit will
> > have 3 authors.
> >
> > For reference I show the auto-generated text commit message at the end of
> > the email.  `Co-authored-by:` is the way how attribution works. You can
> > also manually modify such a squashed commit message before you merge it.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
> For additional commands, e-mail: dev-h...@community.apache.org
>
>

-- 
+48 660 796 129

Reply via email to