无法触发来自 GitHub API 的调度
Cannot trigger dispatches from GitHub API
我想手动触发 GitHub 操作工作流。通过the docs I found out I can do so through a repository dispatch event.
问题是,当我在 /dispatches
端点点击 API 时,出现以下错误:
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3/repos/#create-a-repository-dispatch-event"
}
我对存储库有写入权限。我为自己生成了一个访问令牌。
调度功能是默认启用的还是我需要以某种方式“启用”它,以便 /dispatches
端点可用?要么我看起来不够好,要么文档中没有描述。
我不知道这是否有影响,但存储库归组织所有,而不是个人用户所有。
问题原来是非常基本的。我在实际令牌之前发送带有 Bearer
前缀的 Authorization
header,而我应该使用 token
前缀发送它。
不用说,返回的错误信息是相当具有误导性的。
我想手动触发 GitHub 操作工作流。通过the docs I found out I can do so through a repository dispatch event.
问题是,当我在 /dispatches
端点点击 API 时,出现以下错误:
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3/repos/#create-a-repository-dispatch-event"
}
我对存储库有写入权限。我为自己生成了一个访问令牌。
调度功能是默认启用的还是我需要以某种方式“启用”它,以便 /dispatches
端点可用?要么我看起来不够好,要么文档中没有描述。
我不知道这是否有影响,但存储库归组织所有,而不是个人用户所有。
问题原来是非常基本的。我在实际令牌之前发送带有 Bearer
前缀的 Authorization
header,而我应该使用 token
前缀发送它。
不用说,返回的错误信息是相当具有误导性的。