Add link to release in RSS.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Previously releases had no own page. Now they have.
This commit is contained in:
parent
0bcad56590
commit
089534e07d
|
@ -2,7 +2,7 @@
|
|||
:doctype: manpage
|
||||
:Author: tastytea
|
||||
:Email: tastytea@tastytea.de
|
||||
:Date: 2020-10-24
|
||||
:Date: 2020-10-27
|
||||
:Revision: 0.0.0
|
||||
:man source: gitea2rss
|
||||
:man version: {revision}
|
||||
|
@ -33,9 +33,7 @@ _https://rss.example.com/?repo=alice/cooltool&type=tags_.
|
|||
|
||||
The generated RSS feed contains the *channel* elements _title_, _link_,
|
||||
_description_, _generator_ and _lastBuildDate_ and the *item* elements _title_,
|
||||
_link_, _guid_, _pubDate_ and _description_. Since Gitea has no individual pages
|
||||
for each release, _link_ elements in *item* are set to the overview page for
|
||||
releases.
|
||||
_link_, _guid_, _pubDate_ and _description_.
|
||||
|
||||
== GITEA INTEGRATION
|
||||
|
||||
|
|
|
@ -58,7 +58,9 @@ uint8_t write_releases(const string &url)
|
|||
cout << " <item>\n";
|
||||
write_line(6, "title",
|
||||
get_project(url) + ": " + release["name"].asString());
|
||||
write_line(6, "link", (baseurl + "/" += repo) += "/releases");
|
||||
write_line(6, "link",
|
||||
((baseurl + "/" += repo) += "/releases/tag/") +=
|
||||
release["tag_name"].asString());
|
||||
write_line(6, "guid isPermaLink=\"false\"",
|
||||
get_domain(url) + " release " + release["id"].asString());
|
||||
write_line(6, "pubDate", strtime(release["published_at"].asString()));
|
||||
|
|
Loading…
Reference in New Issue
Block a user