From d6a5093309e6acc0baac412e391584eb21d93d47 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 17 Sep 2019 13:13:27 -0400 Subject: [PATCH] Merge pull request #9252 from pllim/rm-issue2pr DOC: Remove issue2pr section --- .../workflow/additional_git_topics.rst | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/docs/development/workflow/additional_git_topics.rst b/docs/development/workflow/additional_git_topics.rst index 021f6529a8a..a58cb6de7d9 100644 --- a/docs/development/workflow/additional_git_topics.rst +++ b/docs/development/workflow/additional_git_topics.rst @@ -279,44 +279,6 @@ and the history looks now like this:: If it went wrong, recovery is again possible as explained :ref:`above `. -Converting a GitHub issue to a pull request -=========================================== - -Sometimes you have a branch in your own GitHub repository designed to -fix one particular issue. If that issue is listed on GitHub, a natural -way to address it is to convert the issue to a pull request by -attaching code containing the fix for the issue. This can currently only be -done using the GitHub API (there's no button or anything on the web -site that does it, at least as of 2/6/2012). There are two options to do this, -both of which only work if you own the repository or have the ability to commit -directly to it (for Astropy, that means being an Astropy maintainer): - -* You can use the script at https://gist.github.com/1750715, which will - do this for you automatically |emdash| just download the script and run it as - a python command-line script, using the ``python issue2pr.py --help`` - option to determine the precise usage. - -* You can use the ``hub`` command-line utility provided `here - `_ by GitHub. Once installed, you can - attach a branch to a pull request by doing:: - - hub pull-request -i -b astropy:master -h : - - where ```` is the ID of the issue, ```` is the username, and - ```` is the name of the branch you want to attach to the - issue. For example:: - - hub pull-request -i 42 -b astropy:master -h galahad:feature - - will attach the ``feature`` branch from ``galahad``'s Astropy - repository to issue 42. - - The ``hub`` command can do a lot more to interact with GitHub, so be - sure to read their documentation. For example, you can fetch all - branches of a repository for a given user by doing:: - - hub fetch - .. _merge-commits-and-cherry-picks: Merge commits and cherry picks