@sentry/junior-github 0.265.0 → 0.267.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SETUP.md +1 -0
- package/dist/{chunk-4RYMEHIK.js → chunk-PQFFT2UO.js} +465 -377
- package/dist/events/comment.d.ts +7 -0
- package/dist/events/declarations.d.ts +18 -0
- package/dist/events/deployment.d.ts +1 -0
- package/dist/events/issue.d.ts +5 -4
- package/dist/events/pull-request.d.ts +3 -1
- package/dist/events/release.d.ts +20 -1
- package/dist/events/scope.d.ts +13 -0
- package/dist/git-config.d.ts +22 -1
- package/dist/index.js +133 -41
- package/dist/testing.js +1 -1
- package/dist/webhooks/check-suite.d.ts +3 -0
- package/dist/webhooks/event-targets.d.ts +7 -1
- package/dist/webhooks/handler.d.ts +11 -5
- package/package.json +2 -2
package/SETUP.md
CHANGED
|
@@ -162,6 +162,7 @@ Use `additionalUserScopes` only when a human-identity integration flow requires
|
|
|
162
162
|
- `user-read` and explicitly human `user-write` operations require the actor, or an explicitly delegated user subject, to authorize the GitHub App through the private OAuth flow. Junior-owned issue, pull request, review, inline review comment, and branch operations do not fall back to user OAuth.
|
|
163
163
|
- Headless event turns use the `event` system actor and may receive the same installation grants. This lets Junior respond to subscribed pull request events by committing and pushing fixes without inheriting a subscriber's OAuth credential.
|
|
164
164
|
- Git commits use Junior as author and committer. Resolvable human run actors are credited once with `Co-Authored-By` trailers. When the current actor has a linked GitHub identity, Junior prefers a GitHub noreply address so external automation can resolve a login for assignment.
|
|
165
|
+
- Junior points `core.hooksPath` at its own hooks directory for every sandbox command. It sets the value in the command env, so it also wins over a repository `core.hooksPath` such as husky's. That directory runs Junior's commit attribution hook and passes every other client hook to the repository's own hooks directory: its `core.hooksPath` if set, or `.git/hooks` (simple-git-hooks, Git LFS). A failing repository hook stops the commit or push.
|
|
165
166
|
- Installation credential leases are cached on the host by grant name and reused across sandboxes until near expiry. User grants stay actor-scoped. Upstream 403 after injection clears the cached lease, issues a new token, and retries the hop once before recording permission denied.
|
|
166
167
|
- Sandbox does not receive raw tokens via env; host applies Authorization header transforms for GitHub API and upload calls.
|
|
167
168
|
|