Have you even been creating github issues while coding and adding them as //TODO:
into your source files? Now you won't need to leave xcode while doing that!
This extension adds github issues support to xcode editor.
Capabilities:
- Create new github issue
- Modify existing github issue
- Remove all
TODO:
blocks that are linked to github issues if issues are already closed
Commands:
- Create new issue template
- Create modify issue template
- Synchronize Issues (commits issue template to github)
- Remove closed issues
Owner and repository name are automatically inferred from the source file header. Project name is treated as a repository, while the name of the the copyright holder is treated as repository owner.
assignee
parameter is optional.
Description
and Title
can be multiline.
Empty comment line //
or parameter line will end the tile,
while in description, empty comment line will be treated as newlines.
If shouldOverrideDescription is not specified, the new description will be appended to existing one.
title
, assignee
, status
, shouldOverrideDescription
are optional.
The code in between // <code>
and // </code>
will be present as part of the issue description. Code language (for syntax highlighting) will be derived from source file extension present in xcode generated source file header. Multiple code blocks are allowed within the same issue. The example demonstrated above will look on github in the following way:
Will be available later after we play enough with this initial release
- Clone the repo and open
GithubIssuesExtension.xcodeproj
- Enable signing for both the Application and the Xcode Editor Extension
- Run Product -> Archive
- Open Window -> Organizer -> Right click on generated archive -> Show in Finder
- Right click on archive -> Show Package Contents
- Open
Products/Applications
- Drag
GithubIssuesExtension.app
to your Applications folder. - Navigate to your Github Settings (in browser).
- Go to
Personal access token
(which should be last in the list on the left) - Click on
Generate new token
(if you don't have one already) - (Optionally add repo scope if you intend to use this plugin with private repos.)
- Generate token and copy it.
- Open
GithubIssuesExtension.app
. Paste the token intoGithubIssueExtension
app and hit return. - Close the app.
- Open System Preferences -> Extensions -> Xcode Source Editor and enable this extension.
- You should now be able to access the extension under Editor -> Github Issues
- I recommend you adding the following shortcut to this plugin commands. (Xcode -> Preferences -> Key Bindings -> search Github Issues)
- Create New Issue Template (control + option + command + N)
- Create Modify Issue Template (control + option + command + M)
- Synchronize Issues (control + option + command + P)
- Remove closed issues (control + option + command + R)