From: mackyle at gmail.com (Kyle J. McKay)
Subject: owner links? (was: author/committer/tagger links -- kernel.org?)
Date: Wed, 15 Jan 2014 19:28:20 -0800 [thread overview]
Message-ID: <44979A07-365E-461B-90C4-11B3A23B2683@gmail.com> (raw)
In-Reply-To: <CAHmME9p+qxyDw0fAgZb2EwfGJ+5WZ-c73DK9_nobJ+MHN5izLw@mail.gmail.com>
On Jan 15, 2014, at 17:22, Jason A. Donenfeld wrote:
> On Thu, Jan 9, 2014 at 4:21 PM, Konstantin Ryabitsev <mricon at kernel.org
> > wrote:
>> That's pretty nifty. That reminds me -- I'm working on a web-of-trust
>> site for kernel.org and something I wouldn't mind having is a way to
>> link from cgit to the web of trust for that person. E.g. an email
>> address for "torvalds at linux-foundation.org" on this page
>> (http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d6e0a2dd12f4067a5bcefb8bbd8ddbeff800afbc
>> )
>> would be wrapped in a link such as:
>>
>> <a href="https://blah.kernel.org/?user=torvalds%40linux-foundation.org
>> ">
>> torvalds at linux-foundation.org</a>
>>
>> which will bring up a page similar to:
>> https://www.kernel.org/doc/wot/torvalds.html
>
> Not sure if you've been following along, but we've got the
> email-filter patches merged along with the lua support, so this should
> allow for some pretty neat scripts to do exactly what you want --
> <http://git.zx2c4.com/cgit/tree/filters/email-gravatar.lua> as a
> sample. Is this API sufficient for you? If you don't want to have the
> web of trust links everywhere, you can use the "page" argument to
> filter_open as a distinguishing factor. Please let me know if you need
> anything else!
On repo.or.cz I've hooked up project owner to a link that shows a list
of all projects owned by the same person.
So, for example, the owner name is passed in and you end up getting
back links like [1] and [2]. (You can see where this shows up by
pulling up one of the project summary pages on repo.or.cz such as the
cgit mirror [3].)
Looking at the new docs for this [4] I don't see an option to filter
owners. I see that the owner is passed in as "CGIT_REPO_OWNER", but I
don't see an opportunity to produce the owner markup. Is it there and
I'm just not seeing it?
The repo.or.cz pages also try to make the email addresses more
difficult to scrape by generating peculiar markup (the
HTML::Email::Obfuscate package) so conceivably this could be handled
in the owner filter as well.
Kyle
[1] http://repo.or.cz/projlist.cgi?name=18813f71506ebad74179bf8c5a136696
[2] http://repo.or.cz/projlist.cgi?name=86f09ae391e201f5d0c4b89906b2010b
[3] http://repo.or.cz/w/cgit.git
[4] http://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n578
next prev parent reply other threads:[~2014-01-16 3:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 1:22 author/committer/tagger links -- kernel.org? Jason
2014-01-16 1:24 ` Jason
2014-01-16 3:28 ` mackyle [this message]
2014-01-16 11:18 ` owner links? (was: author/committer/tagger links -- kernel.org?) Jason
2014-01-16 13:46 ` mackyle
2014-01-16 22:02 ` Jason
2014-01-17 6:58 ` mackyle
2014-01-17 13:58 ` Jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44979A07-365E-461B-90C4-11B3A23B2683@gmail.com \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).