forked from actions/checkout
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# 贡献指南
|
|
|
|
## 提交拉取请求
|
|
|
|
1. Fork 并克隆仓库
|
|
1. 配置并安装依赖项:`npm install`
|
|
1. 创建新分支:`git checkout -b my-branch-name`
|
|
1. 进行更改,添加测试,并确保测试仍然通过:`npm run test`
|
|
1. 确保代码格式正确:`npm run format`
|
|
1. 使用 `npm run build` 更新 `dist/index.js`。这将创建一个作为操作入口点的单一 JavaScript 文件
|
|
1. 推送到您的 Fork 并提交拉取请求
|
|
1. 拍拍自己的背,等待您的拉取请求被审查和合并
|
|
|
|
以下是一些可以提高您的拉取请求被接受可能性的建议:
|
|
|
|
- 编写测试。
|
|
- 尽量保持更改的专注性。如果您希望进行多个不相互依赖的更改,建议将它们作为单独的拉取请求提交。
|
|
|
|
## 资源
|
|
|
|
- [如何为开源做贡献](https://opensource.guide/how-to-contribute/)
|
|
- [使用拉取请求](https://help.github.com/articles/about-pull-requests/)
|
|
- [GitHub 帮助](https://help.github.com)
|
|
- [编写良好的提交信息](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
|
|
|
|
谢谢!:heart: :heart: :heart:
|
|
|
|
GitHub Actions 团队 :octocat: |