mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Created gopherbot (markdown)
parent
812affa426
commit
e808d22373
35
gopherbot.md
Normal file
35
gopherbot.md
Normal file
@ -0,0 +1,35 @@
|
||||
# gopherbot
|
||||
|
||||
This page outlines all interactive gopherbot functionality. Most of the tasks gopherbot performs do not require human intervention, however it is starting to learn new tricks.
|
||||
|
||||
## Adding/Removing Labels
|
||||
|
||||
You may add or remove labels by telling gopherbot what you'd like to do.
|
||||
|
||||
`@gopherbot, please add labels NeedsFix,help wanted and remove label needsinvestigation`
|
||||
|
||||
The comma after @gopherbot and the `please`, `and`, `add`, and `label[s]` keywords are optional. Adding a label is the default, so you can have the command be much more terse if you wish.
|
||||
|
||||
`@gopherbot needsfix, help wanted remove needsinvestigation`
|
||||
|
||||
The above command will achieve the same results as the first command.
|
||||
|
||||
If you don't wish to remove anything, you can omit the `remove` keyword.
|
||||
|
||||
`@gopherbot needsfix, help wanted`
|
||||
|
||||
The above command will add the `NeedsFix` and `help wanted` labels. Notice how labels must be separated by a comma (or semicolon). This is to account for those with spaces in them like `help wanted`. You cannot quote the labels.
|
||||
|
||||
`@gopherbot needsfix "help wanted"` **← Does not work**
|
||||
|
||||
Casing also doesn't matter. `needsfix` is equivalent to `NeedsFix`. gopherbot will figure out the right label for you.
|
||||
|
||||
There are some labels that are not allowed to be added or removed. Those can be seen in the `labelChangeBlacklisted` function in the [source](https://github.com/golang/build/blob/master/cmd/gopherbot/gopherbot.go).
|
||||
|
||||
For more in-depth examples, take a look at the [tests](https://github.com/golang/build/blob/master/cmd/gopherbot/gopherbot_test.go).
|
||||
|
||||
As always, patches are welcome!
|
||||
|
||||
## Backporting issues
|
||||
|
||||
TODO(filippo)
|
Loading…
x
Reference in New Issue
Block a user