Closed Bug 1796587 Opened 3 years ago Closed 3 years ago

Consolidate commands to reduce redundancy

Categories

(Conduit :: mots, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zeid, Assigned: zeid)

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
Details | Review

Currently, the following commands need to be run after updating mots.yaml:

$ mots clean
$ mots export
$ mots clean

The first clean validates and cleans the updated fields, as well as synchronizes data with Bugzilla. The export exports to the rst file defined in mots.yaml. The second clean generates hashes for the exported file. Hashes are used to validate that users ran the proper commands, e.g. via this command:

$ mots check-hashes

This command can be used by external services (e.g., Lando) to ensure that no changes were made to the generated rst file without them being aligned with the yaml file, and vice versa.

These commands can be consolidated into one command, e.g. mots clean-and-export, to make it easier for people to update the files.

Attached file GitHub Pull Request
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: