@sentry/junior-github 0.315.0 → 0.316.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/dist/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as normalizeGitHubEvents } from "./events-
|
|
1
|
+
export { n as normalizeGitHubEvents } from "./events-BoMOs5Rd.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.316.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@0no-co/graphql.web": "^1.3.4",
|
|
32
|
-
"@sentry/junior-plugin-api": "0.
|
|
32
|
+
"@sentry/junior-plugin-api": "0.316.0",
|
|
33
33
|
"@sinclair/typebox": "^0.34.49",
|
|
34
34
|
"drizzle-orm": "1.0.0-rc.6",
|
|
35
35
|
"ignore": "^7.0.5",
|
|
@@ -37,7 +37,7 @@ Use `git` and `gh` for repository work.
|
|
|
37
37
|
- When an error names a tool, use it. Change permissions only when GitHub rejected the request.
|
|
38
38
|
- Stop for an unclear target, missing access, destructive work, or a GitHub permission failure.
|
|
39
39
|
- Code changes always end in a pushed branch and a PR. Do not ask whether to open one. Skip it only when the user opts out or asks for investigation only.
|
|
40
|
-
- Open the PR as a draft, unless the requester asks for a ready PR. A scope or follow-up question is not a reason to stop: open the PR, and name the question in the PR body and in one line of the reply. Name each open decision of a draft in its PR body: when the required checks pass, the Watch marks a draft with no open decision ready for review. It checks the changed files against CODEOWNERS first: a draft that would ask code owners to review, or whose repo's `AGENTS.md` asks for drafts, stays a draft, and the Watch
|
|
40
|
+
- Open the PR as a draft, unless the requester asks for a ready PR. A scope or follow-up question is not a reason to stop: open the PR, and name the question in the PR body and in one line of the reply. Name each open decision of a draft in its PR body: when the required checks pass, the Watch marks a draft with no open decision ready for review. It checks the changed files against CODEOWNERS first: a draft that would ask code owners to review, or whose repo's `AGENTS.md` asks for drafts, stays a draft, and the Watch asks only the requester to review it, which adds their Inbox item. When the requester approves that draft, the Watch marks it ready.
|
|
41
41
|
- Link the PR. Mention checks only when they failed or were skipped.
|
|
42
42
|
- The runtime adds the requester `via` line. Do not write one.
|
|
43
43
|
- Credit other people, such as a reporter, by GitHub `@login` so GitHub notifies them. Get the login from `userLookup` (`linked_identities` with provider `github`, else a GitHub link in `profile_fields`). Pass the Slack user ID when known. With no login, write the name. Never guess a login. When you delegate the write, put the `@login` in the brief.
|
|
@@ -10,7 +10,7 @@ Guide evidence-first GitHub repository work from inspection through a reviewable
|
|
|
10
10
|
- Preserve unrelated work; reject destructive Git operations except `--force-with-lease` pushes to branches Junior pushed or the requester named.
|
|
11
11
|
- Treat shallow clones as inspection checkouts; deepen before history work; never force-push around missing ancestry.
|
|
12
12
|
- Install dependencies with the lockfile frozen mode before verification when needed.
|
|
13
|
-
- Finish every code change with a pushed PR, without asking, unless the user opts out or asked for investigation only. Open it as a draft unless the requester asks for a ready PR: opening a PR ready asks its code owners at once, and only the draft Watch checks the changed files against CODEOWNERS. An open scope question goes in the PR body, not in a stop. The Watch of a draft marks it ready when its required checks pass and no decision is open, so open decisions of a draft go in its PR body. A draft whose changed files have CODEOWNERS owners, or whose repo's root AGENTS.md asks for draft PRs or for a person to mark them ready, stays a draft unless the requester said to mark it ready, and Junior
|
|
13
|
+
- Finish every code change with a pushed PR, without asking, unless the user opts out or asked for investigation only. Open it as a draft unless the requester asks for a ready PR: opening a PR ready asks its code owners at once, and only the draft Watch checks the changed files against CODEOWNERS. An open scope question goes in the PR body, not in a stop. The Watch of a draft marks it ready when its required checks pass and no decision is open, so open decisions of a draft go in its PR body. A draft whose changed files have CODEOWNERS owners, or whose repo's root AGENTS.md asks for draft PRs or for a person to mark them ready, stays a draft unless the requester said to mark it ready, and Junior asks only the requester to review it on GitHub, which adds their Inbox item. When the requester approves a draft that Junior held, Junior marks it ready, so GitHub asks its code owners only then.
|
|
14
14
|
- After each push to a branch with an open PR, check mergeability. Resolve conflicts without asking, by merging the PR base branch (usually the default branch). Never rebase for this, except in a stack: a stack merges only with a linear history, so stacked PRs restack with `gh stack`. GitHub sends no event for a new conflict, and conflicted PRs get no new checks. The plugin publishes `pull_request.merge_conflict` for a watched PR only when another webhook event arrives for it, and for a Junior PR only while people work on it and never for a draft, so the post-push check stays.
|
|
15
15
|
- Write conventional PR titles and short plain-English bodies; keep check results out of the PR body.
|
|
16
16
|
- Report exact validation and permission failures.
|
|
@@ -38,9 +38,10 @@ Treat explicit repo flags as command-targeting safety rails, not as a credential
|
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
40
|
jr-rpc config get github.repo
|
|
41
|
-
jr-rpc config set github.repo owner/repo
|
|
42
41
|
```
|
|
43
42
|
|
|
43
|
+
Change `github.repo` with the `setConfiguration` tool.
|
|
44
|
+
|
|
44
45
|
## Behavior notes
|
|
45
46
|
|
|
46
47
|
- Prefer `--json` output for machine-readable parsing where available.
|