chore: 修改CI,支持生成release #1
release-drafter.yaml
on: pull_request
update_release_draft
5s
Annotations
2 errors and 1 warning
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '7737394925',
status: 422,
response: {
url: 'https://api.github.com/repos/nashaofu/xcap/releases/139426691',
status: 422,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-length': '195',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 01 Feb 2024 06:53:16 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'contents=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '1C06:6B74:E2B32B:1D10CEE:65BB3FDC',
'x-ratelimit-limit': '1000',
'x-ratelimit-remaining': '995',
'x-ratelimit-reset': '1706773992',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '5',
'x-xss-protection': '0'
},
data: {
message: 'Validation Failed',
errors: [
{
resource: 'Release',
code: 'invalid',
field: 'target_commitish'
}
],
documentation_url: 'https://docs.github.com/rest/releases/releases#update-a-release'
}
},
request: {
method: 'PATCH',
url: 'https://api.github.com/repos/nashaofu/xcap/releases/139426691',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/16.20.2 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"## Changes\\n\\n- chore: 修改CI @nashaofu (#98)\\n- feat: windows支持app\\\\_name @nashaofu (#95)\\n- feat: 修改代码风格,优化截图方法 @nashaofu (#94)\\n- 修复多屏截图偏移问题以及2008系统颜色异常问题 @lz520520 (#93)\\n- refactor: 重构项目,支持获取window截图 @nashaofu (#91)\\n- Fix wrong operator(should use / instead of \\\\*) on scaling factor, tested on Windows @Originalimoc (#90)\\n- Improve capture performance on macOS @samrat (#87)\\n- Added arch dependency instructions @JulianWogersien (#84)\\n- moving API doc from the README to the source code @TornaxO7 (#83)\\n- fix: Cannot capture image in second screen #79 @nashaofu (#81)\\n- Version up of windows crate @hirokimoto (#73)\\n- chore: solve code warning @nashaofu (#72)\\n- feat: remove png crate @nashaofu (#71)\\n- chore: 升级依赖,发布新版本 @nashaofu (#70)\\n- use image crate @c-h-johnson (#69)\\n- support wlroots based compositors @c-h-johnson (#68)\\n- fix: remove log @nashaofu (#65)\\n- chore: release 0.7.2 @nashaofu (#63)\\n- fix: linux panic @nashaofu (#62)\\n- feat: release 0.7.1 @nashaofu (#60)\\n- chore: 修改开发环境配置与代码风格 @nashaofu (#59)\\n- to\\\\_png function updated to improve usability. @drp4rad0x (#58)\\n- Set indentation to 4 spaces @c-h-johnson (#57)\\n- Image compress option added to the to\\\\_png function. @drp4rad0x (#56)\\n- fix: Panic caused by Chinese characters in file paths @Pylogmon (#55)\\n- feat: support raw rgba data @nashaofu (#50)\\n- feat: 修复 linux 交叉编译错误,不依赖 dbus,升级依赖 @nashaofu (#48)\\n- fix: 修复 linux 图片为空白问题 #44 @nashaofu (#45)\\n- fix: 修复 bgra 数据长度不正确问题 @nashaofu (#41)\\n- feat: 优化代码 @nashaofu (#40)\\n- Change from sfhash to fxhash @Olssdani (#39)\\n- feat: 修改 API 返回修改值为 Result @nashaofu (#37)\\n- fix: resolve panics at index out of bounds @nashaofu (#36)\\n- feat: release 0.4.6 @nashaofu (#33)\\n- impl Into\\\\<Vec\\\\<u8>> for I
|
update_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
at /home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:8462:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '7737394925',
name: 'pull_request',
payload: {
action: 'opened',
number: 99,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/nashaofu/xcap/issues/99/comments'
},
commits: {
href: 'https://api.github.com/repos/nashaofu/xcap/pulls/99/commits'
},
html: { href: 'https://github.com/nashaofu/xcap/pull/99' },
issue: {
href: 'https://api.github.com/repos/nashaofu/xcap/issues/99'
},
review_comment: {
href: 'https://api.github.com/repos/nashaofu/xcap/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/nashaofu/xcap/pulls/99/comments'
},
self: {
href: 'https://api.github.com/repos/nashaofu/xcap/pulls/99'
},
statuses: {
href: 'https://api.github.com/repos/nashaofu/xcap/statuses/f22974520f7562a38eca8d63ac7ab808149c0e15'
}
},
active_lock_reason: null,
additions: 32,
assignee: null,
assignees: [],
author_association: 'OWNER',
auto_merge: null,
base: {
label: 'nashaofu:master',
ref: 'master',
repo: {
allow_auto_merge: false,
allow_forking: true,
allow_merge_commit: true,
allow_rebase_merge: true,
allow_squash_merge: true,
allow_update_branch: false,
archive_url: 'https://api.github.com/repos/nashaofu/xcap/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/nashaofu/xcap/assignees{/user}',
blobs_url: 'https://api.github.com/repos/nashaofu/xcap/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/nashaofu/xcap/branches{/branch}',
clone_url: 'https://github.com/nashaofu/xcap.git',
collaborators_url: 'https://api.github.com/repos/nashaofu/xcap/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/nashaofu/xcap/comments{/number}',
commits_url: 'https://api.github.com/repos/nashaofu/xcap/commits{/sha}',
compare_url: 'https://api.github.com/repos/nashaofu/xcap/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/nashaofu/xcap/contents/{+path}',
contributors_url: 'https://api.github.com/repos/nashaofu/xcap/contributors',
created_at: '2022-03-07T13:43:12Z',
default_branch: 'master',
delete_branch_on_merge: false,
deployments_url: 'https://api.github.com/repos/nashaofu/xcap/deployments',
description: 'XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, and Windows. XCap supports screenshot and video recording (to be implemented).',
disabled: false,
downloads_url: 'https://api.github.com/repos/nashaofu/xcap/downloads',
events_url: 'https://api.github.com/repos/nashaofu/xcap/events',
fork: false,
forks: 38,
forks_count: 38,
forks_url: 'https://api.github.com/repos/nashaofu/xcap/forks',
full_name: 'nashaofu/xcap',
git_commits_url: 'https://api.github.com/repos/nashaofu/xcap/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/nashaofu/xcap/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/nashaofu/xcap/git/tags{/sha}',
git_url: 'git://github.com
|
update_release_draft
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: release-drafter/release-drafter@v5. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|