Skip to content

justjavac/node-auto-green

Repository files navigation

node-auto-green

Build Status

自动保持 GitHub 提交状态常绿。

a commit a day keeps your girlfriend away.

node-auto-green 是 auto-green 的 Node.js 版本。源自一个 issue Actions 被禁用,请问是否有腾讯云函数的版本,于是我用 Node.js 开发了一个版本。

安装

$ npm install auto-green

或者使用 yarn:

$ yarn add auto-green

使用

const autoGreen = require('auto-green')

const owner = 'justjavac'
const repo = 'tencent-clound-auto-green-test'
const auth = '此处填写 person token'

autoGreen({
  owner,
  repo,
  auth,
  debug: true, // 开启调试模式
})

认证

参数 auth 用于认证。

进入 GitHub 的 Personal access tokens 页面,点击 “Generate new token” 按钮。此步骤会提示你输入密码,然后进入新建页面。

勾选 repo/public_repo,点击下面的 “Generate token” 按钮。

注意:token 生成后只会显示一次,因此你必须复制 token 后再刷新页面。如果你忘了复制 token,你可以重写生成新的 token。

License

node-auto-green is released under the MIT License. See the bundled LICENSE file for details.

About

自动保持 GitHub 提交状态常绿 a commit every day, keep your girlfriend far away.

Resources

License

Stars

Watchers

Forks

Releases

No releases published