在Github上添加Hacktoberfest问题标签
hacktoberfest-issue-label的Python项目详细描述
Hacktoberfest标签
将Hacktoberfest添加到Github问题中
默认情况下,此脚本会将问题标签Hacktoberfest
添加到https://github.com/conan-io/conan上带有标签good first issue
的任何问题。
但是,您可以通过参数自定义存储库和发出标签。在
用法
usage: hacktoberfest.py [-h] [--token TOKEN] [--repository REPOSITORY] [--issue ISSUE] [--label LABEL]
Apply Hacktoberfest label to Github issues.
optional arguments:
-h, --help show this help message and exit
--token TOKEN Github API Token
--repository REPOSITORY
Github organization/repository name
--issue ISSUE, -i ISSUE
Update only one Github issue
--label LABEL, -l LABEL
Update ALL issues based on label name
身份验证
脚本使用开发人员tokens进行身份验证。
它可以由参数--token
或环境变量GITHUB_OAUTH_TOKEN
传递。在
示例
- 在
将
Hacktoberfest
问题标签添加到https://github.com/conan-io/conan,添加到带有good first issue
的所有问题(默认行为)Pythonhacktoberfest.py在
在 - 在
将
Hacktoberfest
问题标签添加到https://github.com/foo/bar问题5Pythonhacktoberfest.py--repository=foo/bar--issue=5
在 - 在
将“Hacktoberfest”问题标签添加到带有
bug
的所有问题的问题标签Pythonhacktoberfest.py--label=错误
在
许可证
- 项目
标签: