1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
<!DOCTYPE html>
<html>
<head>
<title>GCLI Tutorial | Creating an issue</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link rel="prev" href="04-Account-Setup.html" />
<link rel="next" href="{{NEXTURL}}" />
<!-- Shamelessly stolen from: http://bettermotherfuckingwebsite.com/ -->
<style>
body {
margin:5% auto;
background: #f2f2f2;
color: #444444;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.8;
text-shadow: 0 1px 0 #ffffff; max-width: 73%;
}
pre {
line-height: 1.0;
}
a {
border-bottom: 1px solid #444444;
color: #444444;
text-decoration: none;
}
a:hover {
border-bottom: 0;
}
</style>
</head>
<body>
<nav style=text-align:right>
<a href="04-Account-Setup.html" title="Setting up an account">⇐ Previous</a>
<a href="index.html">Table of contents</a>
<a href="06-Commenting.html" title="Interacting and commenting">Next ⇒</a>
</nav>
<hr />
<h1>Creating an issue</h1>
<p><strong>Note</strong>: This assumes you have <a href="./04-Account-Setup.html">configured gcli with an account</a> for Github already.</p>
<h2>Preparation</h2>
<p>For this case I have a playground repository that you may as well use
for testing with gcli. It is available at
<code>herrhotzenplotz/ghcli-playground</code>.</p>
<p>To see a list of issues, we can run:</p>
<pre><code>$ gcli -t github issues -o herrhotzenplotz -r ghcli-playground -a
NUMBER NOTES STATE TITLE
13 0 open yet another issue
12 0 closed wat
11 0 closed blaaaaaaaaaaaaaaaaaaaah
10 0 closed "this is the quoted" issue title? anyone?"
9 0 closed test
8 0 closed foobar
7 0 closed foobar
5 0 closed test2
4 0 closed test
$
</code></pre>
<h2>Invoke gcli</h2>
<p>Let's create a bug report where we complain about things not working:</p>
<pre><code>$ gcli -t github issues create -o herrhotzenplotz -r ghcli-playground \
"Bug: Doesn't work on my machine"
</code></pre>
<p>The message "Bug: doesn't work on my machine" is the title of the
issue.</p>
<h2>Original Post</h2>
<p>You will see the default editor come up and instruct you to type in a
message. This message is the "original post" or the body of the issue
ticket that you're about to submit. You can use Markdown Syntax:</p>
<pre><code> I tried building this code on my machine but unfortunately it errors
out with the following message:
```console
$ make love
make: don't know how to make love. Stop
make: stopped in /tmp/wat
$
```
What am I doing wrong?
! ISSUE TITLE : Bug: Doesn't work on my machine
! Enter issue description above.
! All lines starting with '!' will be discarded.
</code></pre>
<h2>Submit the issue</h2>
<p>After you save and exit the editor gcli gives you a chance to check
back and finally submit the issue. Type 'y' and hit enter.</p>
<p>You can check back if the issue was created and also view details
about it as you learned earlier.</p>
<br />
<hr />
<nav style=text-align:right>
<a href="04-Account-Setup.html" title="Setting up an account">⇐ Previous</a>
<a href="index.html">Table of contents</a>
<a href="06-Commenting.html" title="Interacting and commenting">Next ⇒</a>
</nav>
</body>
</html>
|