Skip to content

Commit 54891e7

Browse files
authored
Merge pull request #14 from jhoblitt/feature/readme
add complete usage example
2 parents f945ff4 + 62e7236 commit 54891e7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,40 @@ cd ~/bin
3838
$ GITHUB_TOKEN=<token> arborist
3939
```
4040

41+
### Complete Example
42+
43+
```bash
44+
~/tmp/arborist-test $ cat .arborist.yaml
45+
---
46+
noop: false
47+
repos:
48+
- repo: jhoblitt/arborist-test1
49+
noop: false
50+
- repo: jhoblitt/arborist-test2
51+
noop: true
52+
exclude_patterns:
53+
- main
54+
~/tmp/arborist-test $ export GITHUB_TOKEN=<...>
55+
~/tmp/arborist-test $ arborist
56+
jhoblitt/arborist-test1 default branch is: main
57+
jhoblitt/arborist-test2 default branch is: main
58+
jhoblitt/arborist-test1:bar -- ahead: 0, behind: 0
59+
jhoblitt/arborist-test1:baz -- ahead: 0, behind: 0
60+
jhoblitt/arborist-test1:foo -- ahead: 1, behind: 2
61+
ignoring branch: foo because it is ahead
62+
jhoblitt/arborist-test2:bar -- ahead: 0, behind: 0
63+
jhoblitt/arborist-test2:baz -- ahead: 0, behind: 0
64+
jhoblitt/arborist-test2:foo -- ahead: 0, behind: 0
65+
ignoring branch: foo because it is known to be ahead in jhoblitt/arborist-test1
66+
ignoring jhoblitt/arborist-test2:bar as the repo has noop=true
67+
ignoring jhoblitt/arborist-test2:baz as the repo has noop=true
68+
Branches to be pruned: 2
69+
jhoblitt/arborist-test1:bar -- ahead: 0, behind: 0
70+
deleting jhoblitt/arborist-test1:bar
71+
jhoblitt/arborist-test1:baz -- ahead: 0, behind: 0
72+
deleting jhoblitt/arborist-test1:baz
73+
```
74+
4175
### GitHub API Token
4276

4377
`arborist` uses GitHub's API and requires an API token to function. This may be

0 commit comments

Comments
 (0)