feat: Add support for creating autolink references
This commit is contained in:
parent
d6dba93586
commit
6cf2e9ee3e
11 changed files with 616 additions and 29 deletions
14
pkg/cmd/repo/autolink/domain/autolink.go
Normal file
14
pkg/cmd/repo/autolink/domain/autolink.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package domain
|
||||
|
||||
import "github.com/cli/cli/v2/pkg/cmdutil"
|
||||
|
||||
type Autolink struct {
|
||||
ID int `json:"id"`
|
||||
IsAlphanumeric bool `json:"is_alphanumeric"`
|
||||
KeyPrefix string `json:"key_prefix"`
|
||||
URLTemplate string `json:"url_template"`
|
||||
}
|
||||
|
||||
func (a *Autolink) ExportData(fields []string) map[string]interface{} {
|
||||
return cmdutil.StructExportData(a, fields)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue