github - 使用个人访问 token 创建 Github 拉取请求所需的 OAuth 范围

标签 github github-api

我需要创建文档,给出生成个人访问 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/

相关文章:

api - GitHub API : How to improve very in-efficient polling on activity events?

python - 处理 REST API 的不同响应数据类型

python - 使用 Github API 发布到 Gist

api - 如何使用 Github content api 创建或更新文件

git - 远程拒绝推送,提交必须有有效签名

Github - 流量 - 奇怪的 "Git clones"统计

php - file_get_contents() 每次都从 api.github.com 获取 403

python - what is this AttributeError : recurse?相关黑帽python chapter7 github命令与控制

github - 远程或通过 API 下载 GitHub Pull Request 描述图像

ruby - 如何在 GitHub 上搜索 RubySpec?