Gitee Actions

Gitee Actions是一个可以通过Gitee Webhooks来触发Github Actions的工具。
Gitee Actions使用Nest构建,可以快速嵌入到现有的Nest应用或者新建一个Nest应用。
工作原理
利用 Gitee Webhooks 钩子调用当前服务器中的接口,推送代码到 Github 上触发 Push 类型状态的 Github Actions。
特性
- 📦 开箱即用,提供细粒化、更简单的
Webhooks API
- 📋
Pull Request 预合并,Pull Request触发后进行预合并,使用合并后的代码进行自动化流程
- 🏷 独立模块,一行代码即可嵌入到现有的
Nest应用中
- 📡
TypeScript,应用基于Typescript开发,类型更加安全
- 📒 命令行启动,使用
CLI命令,快速启动应用
安装
>$ npm install -g gitee-actions
>$ yarn global add gitee-actions
>$ pnpm add -g gitee-actions
模块引入
通过模块引入,可以直接嵌入到现有的Nest应用中。
import { Module } from '@nestjs/common';
import { GiteeActionsModule } from 'gitee-actions';
@Module({
imports: [GiteeActionsModule.register()],
})
export class AppModule {}
命令行
使用命令行启动,可以快速启动服务。
通过下列命令启动服务,如果不指定服务器端口,则默认端口为3000。
>$ gitee-actions
更多
更多信息及配置项,请查看文档
许可证
MIT