Handle the IETF comments format
Project description
The IETF Comments Processor
Handling comments from the IESG and multiple directorate reviews 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 script defines a markdown-based format for IETF comments, and can create GitHub issues for the comments it finds. When used properly, it can help automate a formerly tiresome task.
Area directors and directorate reviewers can use it to ease the burden for authors. Even when they don't, authors can reduce their work by editing submitted issues to fit the markdown format.
Installation
To install ietf-comments, you'll need Python 3. Then, run:
pip3 install ietf-comments
Use
To validate a comments file and see the issues it contains, run:
ietf-comments filename
To create a GitHub issue for each issue in the comments, 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
The IETF Comments Format
The IETF Comment Format is a set of restrictions on the markdown format that facilitates identifying the issues raised in the comments and their types, so that tooling can more easily digest it.
See the examples directory for examples of the format in use.
Document Identity
The document should start with a header indicating the title of the review; for example:
# Security AD comments for draft-ietf-whatever-document-08
Note that it must:
- Be a
h1
header (i.e., one octothorp) - Identifies the reviewer, either by name or position
- Identifies the subject of the review with the full draft name with revision number
- Be the only
h1
header in the document
Comment Sections
Then, the document can contain discuss
, comment
, and nit
positions, each in their own subsection. For example:
## Comments
### Wrong references
The references in section 2.1 are not correct.
### Does it work that way?
The widget in s 5.4.3 doesn't seem well-specified; are you sure?
Note that:
- The type of comment is identified with
h2
headers (i.e., two octothorps) - The type can be 'discuss', 'comment', or 'nit' with any capitalisation
- Each type header can occur exactly once in the document
Individual issues can be identified with h3
headers, as they are above. Alternatively, if a section does not have h3
headers, the text in that section will be considered to be a single issue.
Within text, section links are automatically added. It is assumed that the bare words 'section' and 's' are followed by a section number to be referenced in the document (as in the example above).
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
File details
Details for the file ietf_comments-0.0.4.tar.gz
.
File metadata
- Download URL: ietf_comments-0.0.4.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1650d3dd45698ea220d5b0bf0b23c72c65faf625153a5aa3909606a13858137 |
|
MD5 | cc3d4b81a692454c56e9b5b6f46fc963 |
|
BLAKE2b-256 | c334f0bfd78e805819304dcc25e40022ab10638843b8ac4788b32809ab98148e |
Provenance
File details
Details for the file ietf_comments-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: ietf_comments-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0faff55df964ad2915af79263f5bbab20071ee6bc3a90901b680c33f6613674c |
|
MD5 | 6fb816e7765b009917e71208544bd39e |
|
BLAKE2b-256 | 86391099c62f48087ea17416d314d45df10c96c650f2a82f10704e5810825794 |