Automating IETF comment handling
Project description
The IETF Comments Processor
Handling comments from the IESG, multiple directorate reviews, and in AUTH48 can be burdensome for document authors, because of the sheer number of comments, and because they come in an unstructured format that has to be manually processed.
This package installs two commands:
ietf-comments
processes comments from the IESG and directorates in a markdown-based format.rfced-comments
processes comments from the RFC Editor in RFC XML files.
Both can be used to create GitHub issues for the comments they find. When used properly, they can help automate formerly tiresome tasks.
For IESG and directorate comments, this tool uses the IETF Comment Markdown format, which is a semi-structured format that is similar to that which ADs and directorates use now. Ideally, they will create comments in that format for easy processing, but even when they don't, most comments can easily be transformed into it for processing.
Installation
To install ietf-comments, you'll need Python 3.10 or greater. Then, run:
pip3 install ietf-comments
Use
Processing AD and Directorate Comments
To validate a AD or Directorate review in the IETF Comment Markdown format and see the identified issues, run:
ietf-comments filename
To create a GitHub issue for each issue, set GITHUB_ACCESS_TOKEN
in your environment to a GitHub Personal Access Token and run:
ietf-comments -g owner/repo filename
... where owner/repo
is the repo owner and name, separated by a slash.
If you'd like these issues to have a specific label, run:
ietf-comments -g owner/repo filename -l labelname
If you'd like discuss
, comment
, and nit labels
added as appropriate, along with a review
label, pass -a
:
ietf-comments -g owner/repo filename -a
Processing RFC Editor Comments
To validate RFC Editor comments in a local RFC XML file and see the identified issues, run:
rfced-comments filename
Alternatively, if you're in AUTH48 and the RFC Editor has published a draft of your RFC-to-be, you can just run
rfced-comments NNNN
where NNNN
is the RFC number.
To create a GitHub issue for each issue, set GITHUB_ACCESS_TOKEN
in your environment to a GitHub Personal Access Token and run:
rfced-comments -g owner/repo NNNN_or_filename
... where owner/repo
is the repo owner and name, separated by a slash.
If you'd like these issues to have a specific label, run:
rfced-comments -g owner/repo NNNN_or_filename -l labelname
Special Features
The following features are currently supported (more soon!):
- When recognised, internal section references (e.g.,
Section 2.4
) are auto-linked in created issues. - Likewise, references to external RFCs (e.g.,
Section 5.3 of [RFC1234]
) will also be auto-linked in created issues when recognised. - Text in blockquotes (preceded by
>
) in comments will be checked for presence in the document; if they aren't found, a warning will be raised.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ietf_comments-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78774b2757003c8b06b726714e697fda01140efaaceb7a744dcf62c42089c8ed |
|
MD5 | 45e2879a006ba61418df5ae08bee515d |
|
BLAKE2b-256 | 90ef502545e2bc7e3565d22812a223527c30e8e33fa1b6023049e1797b797125 |