Skip to content

Commit 9674549

Browse files
Add "Scripts" section to the README
1 parent fe3f012 commit 9674549

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ $ make uninstall
4949

5050
Run `gh help` or read the manpage [right here](./docs/text_man).
5151

52+
## Scripts
53+
54+
You can use gh to create cool scripts, like this one:
55+
```bash
56+
bugpr() {
57+
current_branch=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
58+
59+
gh newpr \
60+
--dest-src=main...$current_branch \
61+
--template=bug.md \
62+
--assignees=gustavothecoder \
63+
--labels=bug,patch \
64+
--title="$1"
65+
}
66+
67+
bugpr "This PR fix a critical bug"
68+
69+
```
70+
5271
## Contributing
5372

5473
Bug reports and pull requests are welcome :)

0 commit comments

Comments
 (0)