gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 14:57:42 26 4
gpt4 key购买 nike

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com