Skip to main content

Handle the IETF comments format

Project description

The IETF Comments Processor

Python version requirement Package version

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 similar to the semi-structured format that 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

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

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

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

Issues

Individual issues within a comment section can be identified with h3 headers, as they are above. Alternatively, if a comment section does not have h3 headers, the text in that section will be considered to be a single issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ietf_comments-0.0.6.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

ietf_comments-0.0.6-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file ietf_comments-0.0.6.tar.gz.

File metadata

  • Download URL: ietf_comments-0.0.6.tar.gz
  • Upload date:
  • Size: 10.0 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.10.2

File hashes

Hashes for ietf_comments-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1aa91fbbf47dc8b23f355d8039b4492cf94afa048b04647c492c72886249e03c
MD5 db42d9df640dabc840aab5dbbbae4605
BLAKE2b-256 110477ec4935e7bcf1f565c7db354e731ae2bedf93e52c0a452c51d662ef08b2

See more details on using hashes here.

Provenance

File details

Details for the file ietf_comments-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ietf_comments-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.10.2

File hashes

Hashes for ietf_comments-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7e54df770628fbd0145f03ac0df384a5adc838c8f21298e3b6b5a3039f7b4076
MD5 7b21169fa3c39e39cb77662b7b9e77ba
BLAKE2b-256 a09f7c61f329577863b911032b8d2bdb2a0427fbfa9f81846c64672c4bd6eba4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page