Skip to content

Commit 71d6575

Browse files
committed
Add and update examples
1 parent 21e33f7 commit 71d6575

File tree

2 files changed

+47
-11
lines changed

2 files changed

+47
-11
lines changed

doc/check-completeness.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
#
3+
# Check which commands are missing from the script
4+
#
5+
6+
# Get all available sub-commands
7+
git issue help |
8+
# Convert to complete command
9+
sed -n 's/^ \([^ ]*\).*/git issue \1/p' |
10+
while read cmd ; do
11+
if ! grep -q "^\\$ $cmd" youtube-script.sh ; then
12+
echo $cmd needs example
13+
fi
14+
done

doc/youtube-script.sh

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,23 @@ $ git issue init
153153
Initialized empty issues repository in /home/dds/github-project/.issues
154154

155155
$ git issue import github dspinellis git-issue-test-issues # Import GitHub issues
156-
Imported/updated issue #3 as 0a27c66
157-
Imported/updated issue #2 as feb2a2c
158-
Imported/updated issue #2 comment 416631296 as f7de92c
159-
Imported/updated issue #2 comment 416631349 as 03acf84
160-
Imported/updated issue #2 comment 417048301 as 0cd48ed
161-
Imported/updated issue #2 comment 417049466 as 325a581
162-
Imported/updated issue #1 as bbe144d
156+
Imported/updated issue #3 as 4a0b58a
157+
Imported/updated issue #2 as 1e87224
158+
Imported/updated issue #2 comment 416631296 as 11bf4e3
159+
Imported/updated issue #2 comment 416631349 as 002e327
160+
Imported/updated issue #2 comment 417048301 as 20aeee8
161+
Imported/updated issue #2 comment 417049466 as a8a12ac
162+
Imported/updated issue #1 as 3ea0e3e
163163

164164
$ git issue list
165-
feb2a2c An open issue on GitHub with a description and comments
166-
0a27c66 An open issue on GitHub with assignees and tags
165+
1e87224 An open issue on GitHub with a description and comments
166+
4a0b58a An open issue on GitHub with assignees and tags
167167

168-
$ git issue show 0a27c66
169-
issue 0a27c6633f492e42bb2a24e6ae458482a4690a55
168+
$ git issue show 4a0b58a
169+
issue 4a0b58a4b7eb7e4e0a3e451746ccd687d9f45048
170170
Author: dspinellis <dspinellis@users.noreply.github.com>
171171
Date: Thu, 30 Aug 2018 20:59:59 +0000
172+
GitHub issue: #3 at dspinellis/git-issue-test-issues
172173
Tags: bug
173174
duplicate
174175
enhancement
@@ -184,4 +185,25 @@ Assigned-to: dspinellis
184185
Edit History:
185186
* Thu, 30 Aug 2018 20:59:59 +0000 by dspinellis
186187
* <dspinellis@users.noreply.github.com>
188+
189+
$ git issue milestone 4a0b58a R-3.5 # Add milestone
190+
Added milestone R-3.5
191+
192+
$ git issue duedate 4a0b58a 2038-01-18 # Set a nice due date
193+
Added duedate 2038-01-18T00:00:00+02:00
194+
195+
$ git issue close 1e87224 # Close another issue
196+
Added tag closed
197+
Removed tag open
198+
199+
$ git issue export github dspinellis git-issue-test-issues # Export modified issues
200+
Issue 3ea0e3ef91619eedfdfd25f93135a9dd99e3435b not modified, skipping...
201+
Exporting issue 1e872249eebe4f984d188700115484d75ab28cd8 as #2
202+
Comment 11bf4e3c5a950142eff5579c23f805ee67c19a93 not modified, skipping...
203+
Comment 002e327f35f76111ce2693969de3cfff2f35d6c7 not modified, skipping...
204+
Comment 20aeee8898c28bc6793fb6114baf2e41397c0d8e not modified, skipping...
205+
Comment a8a12aca79e8a14c09f91e5faaa8ce79a1b9f180 not modified, skipping...
206+
Exporting issue 4a0b58a4b7eb7e4e0a3e451746ccd687d9f45048 as #3
207+
Creating new Milestone R-3.5...
208+
187209
$ 

0 commit comments

Comments
 (0)