add flash scope #14073
Triggered via pull request
September 21, 2023 09:53
Status
Success
Total duration
19m 11s
Artifacts
–
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yml
on: pull_request
Matrix: Build and Test
Matrix: Jmh Publish
Matrix: Unsafe Scoverage
Matrix: Release Drafter
Matrix: Publish Artifacts
Annotations
2 errors
Release Drafter (ubuntu-latest, 2.13.10, temurin@8)
Resource not accessible by integration
{
name: 'HttpError',
id: '6260057477',
status: 403,
response: {
url: 'https://api.github.com/repos/zio/zio-http/releases',
status: 403,
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-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 21 Sep 2023 09:53:42 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
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': '88A8:0F65:18A41E1:1950523:650C12A6',
'x-ratelimit-limit': '1000',
'x-ratelimit-remaining': '990',
'x-ratelimit-reset': '1695293609',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '10',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/zio/zio-http/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/16.20.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/pull/2451/merge","name":"v3.0.0 🌈","tag_name":"v3.0.0","body":"## Changes\\n\\n- added mediaType parameters to Body methods @Adriani-Furtado (#2323)\\n- simplify query param access @TomTriple (#2419)\\n- refactor: simplify empty check @junghoon-vans (#2329)\\n- remove code @TomTriple (#2414)\\n- Fix SSLSpec @adamgfraser (#2415)\\n- issue\\\\_2212 update client proxy settings @rajcspsg (#2336)\\n- ZClient fast shutdown @johnhungerford (#2410)\\n- Refactor `Endpoint` test coverage @wooster0 (#2389)\\n- cleanup and remove ServerTime @TomTriple (#2413)\\n- change signature to allow type inference @TomTriple (#2406)\\n- Add traces to all effectful methods for zio.http package @zarinfam (#2328)\\n- small fixes in docs @TomTriple (#2408)\\n- rename package from zio.http.html to zio.http.template to avoid ambiguity @TomTriple (#2405)\\n- Fix Scoping Of Test Resources @adamgfraser (#2407)\\n- Negative values support for TextCodec and SegmentCodec @danieletorelli (#2393)\\n- Revert netty and update ZIO to stable @vigoo (#2397)\\n- Multipart/from file impl. in CLI and test suite @pablf (#2355)\\n- lax environment requirement when transforming a Handler @myazinn (#2390)\\n- Increase Endpoint test coverage @danieletorelli (#2385)\\n- `Endpoint` api en-/decodes based on accept header @987Nabil (#2366)\\n- transform functions for PathCodec @vigoo (#2376)\\n- By default set client idle timeout @erikvanoosten (#2371)\\n- Automatically validate request body using `Schema.validate` @williamareynolds (#2360)\\n- Convert metrics from HandlerAspect to Middleware #2320 @lookingformira (#2334)\\n- Make header value computation in request logging lazy @987Nabil (#2367)\\n- Optimize (Halt | codec) @vigoo (#2374)\\n- Ignore Flaky Test @adamgfraser (#2337)\\n- Update client3:core to 3.9.0 @scala-steward (#2382)\\n- Tests Cleanup @adamgfraser (#2379)\\n- New Response model @hbibel (#2348)\\n- Generalize the concept of
|
Release Drafter (ubuntu-latest, 2.13.10, temurin@8)
HttpError: Resource not accessible by integration
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: '6260057477',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: 'This adds functionality for adding a message to the (cookie-based) flash scope and also a middleware for managing that scope automatically. \r\n' +
'\r\n' +
'The message in the flash scope is kept for a single request only and is cleared afterwards by the provided middleware. At the moment one can only add a single string message to the flash scope. A more featureful implementation should provide support for a serialized key-value structure. \r\n' +
'\r\n' +
'The implementation is still a bit rough (duplicate code ...), but it technically works as one would expect. \r\n' +
'\r\n' +
'I could provide docs and support for key-value strucutre in a follow-up commit. \r\n' +
'\r\n' +
'Adding middleware: \r\n' +
'```scala\r\n' +
' override val run =\r\n' +
' Server.serve(appRoutes.toHttpApp @@ Middleware.flashScopeHandling).provide(Server.default)\r\n' +
'```\r\n' +
'\r\n' +
'Flash scope usage: \r\n' +
'```scala\r\n' +
'Response.seeOther("some url").addFlashMessage("overview not available at the moment")\r\n' +
'```\r\n'
}
},
number: 2451,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/49655448?v=4',
description: 'ZIO — Real World Functional Programming',
events_url: 'https://api.github.com/orgs/zio/events',
hooks_url: 'https://api.github.com/orgs/zio/hooks',
id: 49655448,
issues_url: 'https://api.github.com/orgs/zio/issues',
login: 'zio',
members_url: 'https://api.github.com/orgs/zio/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjQ5NjU1NDQ4',
public_members_url: 'https://api.github.com/orgs/zio/public_members{/member}',
repos_url: 'https://api.github.com/orgs/zio/repos',
url: 'https://api.github.com/orgs/zio'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/zio/zio-http/issues/2451/comments'
},
commits: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/2451/commits'
},
html: { href: 'https://github.com/zio/zio-http/pull/2451' },
issue: {
href: 'https://api.github.com/repos/zio/zio-http/issues/2451'
},
review_comment: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/2451/comments'
},
self: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/2451'
},
statuses: {
href: 'https://api.github.com/repos/zio/zio-http/statuses/54ed9e9657e872232d08d27af6aebc9b6e17aa45'
}
},
active_lock_reason: null,
additions: 17,
assignee: null,
assignees: [],
author_association: 'CONTRIBUTOR',
auto_merge: null,
base: {
label: 'zio:main',
ref: 'main',
repo: {
allow_auto_merge: true,
allow_forking: true,
allow_merge_commit: false,
allow_rebase_merge: true,
allow_squash_merge: true,
allow_update_branch: false,
archive_url: 'https://api.github.com/repos/zio/zio-http/{archive_format}{/ref}',
archived: false,
as
|