Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Leia a publicação canônica (metodologia, métricas, índice de ADRs) em:

Alinhado à [metodologia](https://studies.archgate.dev/studies/sentry-pr-review-friction/methodology/) do estudo publicado:

| Conjunto de dados | Contagem |
| -------------------------- | -------------------------------------------------- |
| PRs mesclados | 500 |
| PRs fechados sem merge | 500 |
| PRs abertos amostrados | 251 |
| Análise profunda de coment | 60 PRs de alto atrito (50 mesclados + 10 fechados) |
| Comentários coletados | 965 no total (604 não-bot) |
| Conjunto de dados | Contagem |
| ------------------------------- | -------------------------------------------------- |
| PRs mesclados | 500 |
| PRs fechados sem merge | 500 |
| PRs abertos amostrados | 251 |
| Análise profunda de comentários | 60 PRs de alto atrito (50 mesclados + 10 fechados) |
| Comentários coletados | 965 no total (604 não-bot) |

Os dados vêm da API do GitHub (veja a página de metodologia para comandos `gh` exatos, pontuação de atrito e limitações).

Expand Down
16 changes: 12 additions & 4 deletions src/helpers/init-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { generateExampleAdr } from "./adr-templates";
import { configureClaudeSettings } from "./claude-settings";
import { configureCopilotSettings } from "./copilot-settings";
import { configureCursorSettings } from "./cursor-settings";
import { logDebug } from "./log";
import { createPathIfNotExists, projectPaths } from "./paths";
import { writeRulesShim } from "./rules-shim";
import { configureVscodeSettings } from "./vscode-settings";
Expand Down Expand Up @@ -230,7 +231,11 @@ async function tryInstallPlugin(editor: EditorTarget): Promise<PluginResult> {
const { loadCredentials } = await import("./credential-store");
const credentials = await loadCredentials();
if (!credentials) {
return { installed: false };
return {
installed: false,
detail:
"No stored credentials found; plugin installation was not attempted.",
};
}

if (editor === "cursor") {
Expand All @@ -244,8 +249,9 @@ async function tryInstallPlugin(editor: EditorTarget): Promise<PluginResult> {
try {
await installCursorPlugin(credentials.token);
return { installed: true, autoInstalled: true };
} catch {
} catch (error) {
// Fall through to manual instructions
logDebug("Failed to auto-install Cursor plugin:", error);
}
}

Expand Down Expand Up @@ -274,8 +280,9 @@ async function tryInstallPlugin(editor: EditorTarget): Promise<PluginResult> {
try {
await installCopilotPlugin();
return { installed: true, autoInstalled: true };
} catch {
} catch (error) {
// Fall through to manual instructions
logDebug("Failed to auto-install Copilot plugin:", error);
}
}

Expand All @@ -291,8 +298,9 @@ async function tryInstallPlugin(editor: EditorTarget): Promise<PluginResult> {
try {
await installClaudePlugin();
return { installed: true, autoInstalled: true };
} catch {
} catch (error) {
// Fall through to manual instructions
logDebug("Failed to auto-install Claude plugin:", error);
}
}

Expand Down
Loading