forked from forgejo/forgejo
[REFACTOR] add Icon to webhook.Interface
This commit is contained in:
parent
7f03fdf9f9
commit
84eeab59af
15 changed files with 54 additions and 2 deletions
|
@ -6,6 +6,7 @@ package webhook
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
|
@ -19,6 +20,7 @@ import (
|
|||
type packagistHandler struct{}
|
||||
|
||||
func (packagistHandler) Type() webhook_module.HookType { return webhook_module.PACKAGIST }
|
||||
func (packagistHandler) Icon(size int) template.HTML { return imgIcon("packagist.png", size) }
|
||||
|
||||
func (packagistHandler) FormFields(bind func(any)) FormFields {
|
||||
var form struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue