hit-on-0.0.0: Haskell Git Helper Tool

Safe HaskellNone
LanguageHaskell2010

Hit.Issue

Contents

Synopsis

Documentation

runIssue :: Maybe Int -> Maybe Text -> IO () Source #

Run the issue command.

Internal helpers

mkIssueId :: Int -> Id Issue Source #

getIssueTitle :: Id Issue -> IO Text Source #

getOwnerRepo :: IO (Maybe (Name Owner, Name Repo)) Source #

Get the owner and the repository name.

parseOwnerRepo :: Text -> Maybe (Name Owner, Name Repo) Source #

Note: this works with GitHub projects!

This function supports four kinds of the URLs:

SSH one:

git@github.com:kowainik/hit-on.git

or

git@github.com:kowainik/hit-on

And HTTPS one:

https://github.com/kowainik/hit-on.git

or

https://github.com/kowainik/hit-on