1
0

feat(webhooks): add hmac signing

This commit is contained in:
kolaente
2023-10-13 18:10:37 +02:00
parent a3a323cbf1
commit a0d8b28813
3 changed files with 42 additions and 17 deletions

View File

@ -27,6 +27,7 @@ type webhooks20230913202615 struct {
TargetURL string `xorm:"not null" valid:"minstringlength(1)" minLength:"1" json:"target_url"`
Events []string `xorm:"JSON not null" valid:"minstringlength(1)" minLength:"1" json:"event"`
ProjectID int64 `xorm:"bigint not null index" json:"project_id" param:"project"`
Secret string `xorm:"null" json:"secret"`
CreatedByID int64 `xorm:"bigint not null" json:"-"`
Created time.Time `xorm:"created not null" json:"created"`
Updated time.Time `xorm:"updated not null" json:"updated"`