about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwCoderepo.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-28 11:02:50 +0000
committerEric Wong <e@80x24.org>2023-01-28 18:52:31 +0000
commitd3c6f8e57b15e8d3de0431c8419bdd0497ec3d32 (patch)
tree86b82828b036c7e795415942b6c073f1c4ddd4ce /lib/PublicInbox/WwwCoderepo.pm
parenta74c0a16c07e4c8a3ae03af13854f190ddb3bd8a (diff)
downloadpublic-inbox-d3c6f8e57b15e8d3de0431c8419bdd0497ec3d32.tar.gz
Providing an Atom feed for tags can be a nice way for users
to subscribe to new releases without excessive noise.
Diffstat (limited to 'lib/PublicInbox/WwwCoderepo.pm')
-rw-r--r--lib/PublicInbox/WwwCoderepo.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm
index 8dcd9772..e3d45c56 100644
--- a/lib/PublicInbox/WwwCoderepo.pm
+++ b/lib/PublicInbox/WwwCoderepo.pm
@@ -240,6 +240,9 @@ sub srv { # endpoint called by PublicInbox::WWW
         } elsif ($path_info =~ m!\A/(.+?)/atom/(.*)\z! and
                         ($ctx->{git} = $cr->{$1})) {
                 PublicInbox::RepoAtom::srv_atom($ctx, $2) // r(404);
+        } elsif ($path_info =~ m!\A/(.+?)/tags\.atom\z! and
+                        ($ctx->{git} = $cr->{$1})) {
+                PublicInbox::RepoAtom::srv_tags_atom($ctx);
         } elsif ($path_info =~ m!\A/(.+?)\z! and ($git = $cr->{$1})) {
                 my $qs = $ctx->{env}->{QUERY_STRING};
                 my $url = $git->base_url($ctx->{env});