我需要创建文档,给出生成个人访问 token 的说明,该 token 只需要在 Github 上创建拉取请求。
我已阅读 documentation描述了各种 OAuth 范围,但我仍然不清楚我需要选择哪个 OAuth 范围才能创建拉取请求。
需要为用户选择哪些 OAuth 范围才能创建拉取请求?
最佳答案
来自 https://docs.github.com/en/rest/reference/pulls#create-a-pull-request :
To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
关于github - 使用个人访问 token 创建 Github 拉取请求所需的 OAuth 范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67628262/