如何从 Trac 生成变更日志

发布于 2024-08-06 11:47:15 字数 198 浏览 3 评论 0原文

我需要从 Trac 生成特定版本的 XML 变更日志,然后使用自定义 XSL 对其进行处理。似乎默认报告之一就是这种情况(按里程碑列出的所有票证(包括已关闭的票证))。但是,如果我将其作为 XML 请求(通过将 format=rss 添加到 url),则输出 XML 不包含状态、分辨率、里程碑字段。我如何配置它以包含所有字段?如何从 Trac 生成变更日志并将其包含在发行说明中?

I need to generate changelog from Trac for a specific version as XML and then process it with a custom XSL. It seems one of the default reports is the case (All Tickets By Milestone (Including closed)). However, if i request it as XML (by adding format=rss to the url) the output XML does not contain Status, Resolution, Milestone fields. How do i configure it to contain all the fields? How do you generate your changelogs from Trac to include it in release notes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋意浓 2024-08-13 11:47:15

1) 请提供查询的副本(单击页面底部的 SQL 查询链接)

我觉得奇怪的是,通常您在 CSV/RSS-XML 报告中获得的列比 HTML 版本中的列多(请参阅 Wiki 页面) TracReports 和下面的摘录)

2) 就我个人而言,我直接将我的变更日志从 Trac 生成为 pdf。我尽可能地个性化SQL语句以获得我想要的。我更喜欢快速、经济地得到结果,而不是花费大量时间来得到我想要的东西。

===== TracReports 提取 =====

列 -- 隐藏数据。在列名称前面添加下划线 ('') 指示 Trac 在 HTML 输出中隐藏内容。这对于仅以其他格式(如 CSV 或 RSS/XML)下载的信息可见非常有用。

1) Please provide a copy of the Query (Click on SQL Query link at the bottom of the page)

What I find strange is that normally you get more columns in the CSV/RSS-XML reports than in the HTML version (see Wiki page TracReports and the extract below)

2) Personally I generate my changelogs directly from Trac into pdf. I personalised the SQL statement as much as possible to get what I want. I prefer to get a result quickly and economically rather than spand a lot of time to get exactly what I want.

===== TracReports extract =====

column -- Hide data. Prepending an underscore ('') to a column name instructs Trac to hide the contents from the HTML output. This is useful for information to be visible only if downloaded in other formats (like CSV or RSS/XML).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文