提供 gieea webhooks (#2)
chore: debug log 仅输出app的log fix(commons): fix sanitize not return value. feat(webhooks): add gitea webhooks api. Co-authored-by: Ivan Li <ivanli@live.cn> Co-authored-by: Ivan <ivanli@live.cn> Reviewed-on: #2 Co-Authored-By: Ivan Li <ivan@noreply.%(DOMAIN)s> Co-Committed-By: Ivan Li <ivan@noreply.%(DOMAIN)s>
This commit is contained in:
8
src/webhooks/dtos/gitea-hook-payload.dto.ts
Normal file
8
src/webhooks/dtos/gitea-hook-payload.dto.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { IsString } from 'class-validator';
|
||||
|
||||
export class GiteaHookPayloadDto {
|
||||
@IsString()
|
||||
ref: string;
|
||||
@IsString()
|
||||
after: string;
|
||||
}
|
Reference in New Issue
Block a user