Error command can be run on failure, or success. Maybe create hooks. Ref: https://autorestic.vercel.app/location/hooks
Hooks should:
- Reference commands already defined
- Be optional
- Not make the whole command fail
- Not be recursive or nested in each other
```yaml
commandName:
hooks:
failure: failureCommand
failureCommand:
cmd: echo "commandName failed"
```
Refactor RunListConfig() and cmdListWorker() or results channel to make this work for lists.
Modify the results channel.
packagemainimport("fmt")typePersonstruct{NamestringAgeintAddressstring}funcmain(){ch:=make(chanPerson)gofunc(){p:=Person{"John",30,"123 Main St"}ch<-p}()p:=<-chfmt.Println(p.Name,p.Age,p.Address)}
Refactor `RunListConfig()` and `cmdListWorker()` or results channel to make this work for lists.
Modify the `results` channel.
```go
package main
import (
"fmt"
)
type Person struct {
Name string
Age int
Address string
}
func main() {
ch := make(chan Person)
go func() {
p := Person{"John", 30, "123 Main St"}
ch <- p
}()
p := <-ch
fmt.Println(p.Name, p.Age, p.Address)
}
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Error command can be run on failure, or success. Maybe create hooks. Ref: https://autorestic.vercel.app/location/hooks
Hooks should:
Refactor
RunListConfig()andcmdListWorker()or results channel to make this work for lists.Modify the
resultschannel.