@artsy/update-repo (英语)
用拉动请求更新 github repos .
安装
yarn add @artsy/update-repo
使用量
除了节点,你需要两件事 在你的执行环境 使这个工作:
- A 类
GH_TOKEN环境变量 它有权限为您想要更新的 repo 创建 PR . - 装有
user.email财务报告和审定财务报表user.name配置 或等同的环境变量
import { updateRepo } from "@artsy/update-repo"
await updateRepo({
repo: { owner: "artsy", repo: "metaphysics" },
branch: "update-npm-dependency",
targetBranch: "main",
title: "Update the version for my-npm-package",
body: "bleep bloop :robot:",
commitMessage: "update version",
assignees: ["ds300"],
labels: ["automated"],
autoMergeMethod: "SQUASH",
update: (dir) => {
// This update function gets executed in a freshly-checked-out version
// of the repo you specified. If you make any changes here they will
// be committed and added to a PR.
execSync(`yarn add my-npm-package@${newVersion}`, { cwd: dir })
},
})
关于艺术
这个项目是工程师在 艺术,这世界的 领导和最大的在线艺术市场和平台 发现艺术. 我们的核心之一 工程原则 这是 打开 默认来源 这意味着我们努力分享尽可能多的细节 我们的工作尽可能.
你可以从 我们的博客 并通过以下方式: @ Artsy 打开来源 或者通过检查来探索我们的公开数据 我们的API如果你对Arty的事业感兴趣,读读 我们 工作岗位来啊!