Added to Committer how-to: Closing GitHub PR requests without merging
diff --git a/src/main/docgen/book.xml b/src/main/docgen/book.xml
index 56f89cd..52e513f 100644
--- a/src/main/docgen/book.xml
+++ b/src/main/docgen/book.xml
@@ -1342,14 +1342,14 @@
<itemizedlist>
<listitem>
<para><literal> <replaceable><PROJECT></replaceable>
- </literal> is usually
+ </literal>is usually
<literal>incubator-freemarker</literal></para>
</listitem>
<listitem>
<para><literal> <replaceable><PR_NUMBER></replaceable>
- </literal> is the pull request number that GitHub shows
- prominently after a <quote>#</quote></para>
+ </literal>is the pull request number that GitHub shows prominently
+ after a <quote>#</quote></para>
</listitem>
</itemizedlist>
@@ -1365,6 +1365,35 @@
close the pull request on Github.</para>
</section>
+ <section xml:id="close-pull-request-without-merging">
+ <title>Closing GitHub pull requests without merging</title>
+
+ <programlisting language="unknown">git commit --allow-empty -m "closes apache/<PROJECT>#<PR_NUMBER>: <WHY>"</programlisting>
+
+ <para>Where:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal> <replaceable><PROJECT></replaceable>
+ </literal>is usually
+ <literal>incubator-freemarker</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal> <replaceable><PR_NUMBER></replaceable>
+ </literal>is the pull request number that GitHub shows prominently
+ after a <quote>#</quote></para>
+ </listitem>
+
+ <listitem>
+ <para><literal> <replaceable><WHY></replaceable>
+ </literal>is the reason of the closing. For clarity, you may want
+ to end it with <quote>Closed PR without merging.</quote> or
+ something similar.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
<section xml:id="making-releases">
<title>Making releases</title>