~sircmpwn/sr.ht-discuss

4 3

Optionally pre-populate tickets.

Details
Message ID
<48251610-f2b8-6ef1-242f-a787b707b836@c9yh.net>
DKIM signature
missing
Download raw message
Hello all,

This is a feature suggestion that has bounced into my head. It could be 
beneficial for novices to patch-based development browsing ticket 
trackers to have a handy method for queuing and sending their 
contributions. The method I took is to provide a template for 
git-send-email commands in the tickets themselves. An example of such 
can be seen at [0]. The idea I have is for this to be optionally enabled 
in the TODO service, taking care to populate the commit messages with 
the snippet ID and title, as well as linking to the preferred 
development mailing list.

This idea may have no merit, but I wanted to make sure it was at least 
put out there.

Happy hacking,

Brett Gilio


[0]: https://todo.sr.ht/~brettgilio/snippet/1
Details
Message ID
<CLICSWTJD780.3S4KYS8GA8Q4W@nano>
In-Reply-To
<48251610-f2b8-6ef1-242f-a787b707b836@c9yh.net> (view parent)
DKIM signature
missing
Download raw message
hi

On Sun Jul 17, 2022 at 5:10 PM PDT, Brett Gilio wrote:
> The method I took is to provide a template for git-send-email commands
> in the tickets themselves. An example of such can be seen at [0]. The
> idea I have is for this to be optionally enabled in the TODO service,
> taking care to populate the commit messages with the snippet ID and
> title, as well as linking to the preferred development mailing list.
> ...snip...
> [0]: https://todo.sr.ht/~brettgilio/snippet/1

as an aside to provide more ways this can be expanded on, there are some
projects that request their contributors apply git trailers to their
commits with relevant information, one of which what issue / todo the
commit "fixes".

an example commit:

    some commit message
    
    Fixes: https://todo.sr.ht/~sourcehutuser/project/todo_number


and then, the linked todo will automatically be marked as fixed on the
tracker if the patch is merged upstream.
Details
Message ID
<fb9e4c4f-9729-5c40-2de5-63d3bd0c9af3@c9yh.net>
In-Reply-To
<CLICSWTJD780.3S4KYS8GA8Q4W@nano> (view parent)
DKIM signature
missing
Download raw message
Hello Akspecs

On 7/17/2022 7:26 PM, akspecs wrote:
> and then, the linked todo will automatically be marked as fixed on the
> tracker if the patch is merged upstream.


Is that functionality already implemented, or is that something which is 
being proposed? If it is already implemented, then it would be 
imperative that data be retained in trackers as pre-populated information.

Brett Gilio
Details
Message ID
<b36fe0d1-2d2f-70c8-628b-875295c247dd@autistici.org>
In-Reply-To
<fb9e4c4f-9729-5c40-2de5-63d3bd0c9af3@c9yh.net> (view parent)
DKIM signature
missing
Download raw message
> Is that functionality already implemented, or is that something which
> is being proposed?

Already implemented – see here:

    https://man.sr.ht/git.sr.ht/#referencing-tickets-in-git-commit-messages

-- 
/Liele Zerau (they/them)
PGP-key: 32AE B0C8 E86B 5971 509B 67B3 465A 9567 984C 81F3
Details
Message ID
<9b686262-d5de-4b26-aeac-7c9b5a85899c@c9yh.net>
In-Reply-To
<b36fe0d1-2d2f-70c8-628b-875295c247dd@autistici.org> (view parent)
DKIM signature
missing
Download raw message
Hello Liele

On 7/18/2022 8:57 AM, Liele Zerau wrote:
>> Is that functionality already implemented, or is that something which
>> is being proposed?
> Already implemented – see here:
>
>      https://man.sr.ht/git.sr.ht/#referencing-tickets-in-git-commit-messages

Thank you for that information. Good to know. Drew is not fond of the 
idea I proposed, but I learned a good bit.

Brett
Reply to thread Export thread (mbox)