Skip to content

Commit 3e99ffc

Browse files
committed
feat: Mark maintainer reports in RSS feeds
1 parent 9389f6d commit 3e99ffc

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

docs/bone-manual.org

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,11 @@ Running =bb export all= generates, for each source:
692692
open/closed announcements carrying =.ics= or inline VCALENDAR
693693
content.
694694

695-
RSS feeds carry up to 50 items, most recent first. Export is
695+
RSS feeds carry up to 50 items, most recent first. Reports posted by
696+
a maintainer carry a =<category>maintainer</category>= element and a
697+
=role:maintainer= field in the item description, so feed readers can
698+
filter or highlight them (e.g. distinguishing a =[ANN]= sent by a
699+
maintainer from one sent by a contributor). Export is
696700
incremental: only sources modified since the last export are
697701
regenerated. Use =--force= to rebuild everything, or =bb export
698702
{json|rss|org|html|stats|text|events}= to rebuild a single format.

scripts/bone-export.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@
920920
replies (:replies m)
921921
desc (xml-escape
922922
(str "[" (:type m) "] flags:" flags " replies:" replies
923+
(when-let [r (:role m)] (str " role:" r))
923924
(when-let [v (:version m)] (str " version:" v))
924925
(when-let [t (:topic m)] (str " topic:" t))
925926
(when-let [d (:deadline m)] (str " deadline:" d))
@@ -935,6 +936,8 @@
935936
(str " <guid isPermaLink=\"false\">" (:value guid) "</guid>\n")))
936937
(when date
937938
(str " <pubDate>" date "</pubDate>\n"))
939+
(when-let [role (:role m)]
940+
(str " <category>" (xml-escape role) "</category>\n"))
938941
" <author>" author "</author>\n"
939942
" <description>" desc "</description>\n"
940943
" </item>")))

0 commit comments

Comments
 (0)