Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gitee-actions

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitee-actions

使用Gitee Webhooks 触发 Github Actions

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
13
550%
Maintainers
1
Weekly downloads
 
Created
Source

Gitee Actions

Build & Test Docs Deploy codecov

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
>$ npm install -g gitee-actions

#yarn
>$ yarn global add gitee-actions

#pnpm
>$ pnpm add -g gitee-actions

模块引入

通过模块引入,可以直接嵌入到现有的Nest应用中。

import { Module } from '@nestjs/common';
import { GiteeActionsModule } from 'gitee-actions';

@Module({
    imports: [GiteeActionsModule.register(/* Global Config */)],
})
export class AppModule {}

命令行

使用命令行启动,可以快速启动服务。

通过下列命令启动服务,如果不指定服务器端口,则默认端口为3000

>$ gitee-actions

更多

更多信息及配置项,请查看文档

许可证

MIT

Keywords

github actions

FAQs

Package last updated on 06 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts