Add Documentation for force-draft plugin. Change-Id: Iac81dd7fba916d2a960b22553aa5949940dafb9c
diff --git a/src/main/resources/Documentation/about.md b/src/main/resources/Documentation/about.md new file mode 100644 index 0000000..55aa534 --- /dev/null +++ b/src/main/resources/Documentation/about.md
@@ -0,0 +1,2 @@ +This plugin provides an ssh-command that changes the status of +a patchset to draft to enable patchset deletion by owner.
diff --git a/src/main/resources/Documentation/cmd-force-draft.md b/src/main/resources/Documentation/cmd-force-draft.md new file mode 100644 index 0000000..2bc4f49 --- /dev/null +++ b/src/main/resources/Documentation/cmd-force-draft.md
@@ -0,0 +1,33 @@ +@PLUGIN@ force-draft +============== + +NAME +---- +force-draft force-draft - Force patchset to draft. + +SYNOPSIS +-------- +``` +ssh -p @SSH_PORT@ @SSH_HOST@ force-draft force-draft <Change, Patchset> +``` + +DESCRIPTION +----------- +Forces specified patchset to 'draft' state in order to help +administrators enable users to remove unwanted patchsets themselves. +If all patchsets of a change are set to 'draft', the change is also set +to 'draft'. +Since this command only sets the patchset, or patchset and change, to +'draft' state, the actual deletion is performed by the user leaving the +administrators free from responsibility. + +ACCESS +------ +Caller must be a member of the privileged 'Administrators' group. + +EXAMPLES +-------- +Change status of patchset 3 of change 1234 to 'draft': +``` +ssh -p @SSH_PORT@ @SSH_HOST@ force-draft force-draft 1234,3 +```
diff --git a/src/main/resources/documentation/about.md b/src/main/resources/documentation/about.md deleted file mode 100644 index ec07db1..0000000 --- a/src/main/resources/documentation/about.md +++ /dev/null
@@ -1,11 +0,0 @@ -This plugin enables admin-user to easily change PatchSet to draft. - -Sometimes Git-administrators are forced to remove PatchSets for legal, -or other reason. Today this is done by setting the PatchSet as Draft in db. -This procedure is troublesome and error-prone due to the human -factor. -This plugin enables administrators to perform the procedure with a simple -ssh-command. - -If all PatchSets of parent change are drafts, parent Change is -also set to draft.