Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history

README.md

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

README.mdBlame115 lines · 1 contributor
0377886Claude1# Gluecron JetBrains Plugin
2
3IntelliJ Platform plugin for [Gluecron](https://gluecron.com) — AI-native code intelligence.
4
5Works in **IntelliJ IDEA**, **WebStorm**, **GoLand**, **PyCharm**, and any other JetBrains IDE
6based on the IntelliJ Platform 2023.1+.
7
8## Features
9
10| Action | Location | What it does |
11|--------|----------|--------------|
12| **Open PR List** | Gluecron menu / VCS Operations | Opens `{host}/{owner}/{repo}/pulls` in your browser |
13| **Create Issue** | Gluecron menu / VCS Operations | Opens `{host}/{owner}/{repo}/issues/new` in your browser |
14| **Merge PR for Current Branch** | Gluecron menu / VCS Operations | POSTs to the Gluecron API to merge the open PR for the checked-out branch |
15| **View Repo Health** | Gluecron menu / VCS Operations | Opens `{host}/{owner}/{repo}/health` in your browser |
16
17The plugin detects `owner/repo` automatically from your project's git remote URL.
18
19## Requirements
20
21- JDK 17+
22- Gradle 8.x (the Gradle wrapper `gradlew` is the recommended way to build)
23- A Gluecron server (self-hosted or [gluecron.com](https://gluecron.com))
24- A personal access token with `repo` scope (generate one at `{host}/settings/tokens`)
25
26## Building
27
28```bash
29# Clone the repository
30git clone https://gluecron.com/ccantynz/Gluecron.com.git
31cd Gluecron.com/jetbrains-plugin
32
33# Build the plugin zip (output: build/distributions/gluecron-jetbrains-0.1.0.zip)
34./gradlew buildPlugin
35
36# Run the plugin in a sandboxed IDE for development
37./gradlew runIde
38```
39
40The `buildPlugin` task produces a zip archive at:
41
42```
43build/distributions/gluecron-jetbrains-<version>.zip
44```
45
46## Installing the Plugin
47
48### From local zip (manual install)
49
501. Open your JetBrains IDE.
512. Go to **Settings → Plugins → ⚙ → Install Plugin from Disk…**
523. Select `build/distributions/gluecron-jetbrains-0.1.0.zip`.
534. Restart the IDE when prompted.
54
55### From JetBrains Marketplace (once published)
56
57Search for **"Gluecron"** in **Settings → Plugins → Marketplace**.
58
59## Configuration
60
61After installation, configure the plugin:
62
631. Open **Settings → Tools → Gluecron**.
642. Set **Server URL** to your Gluecron instance (e.g. `https://gluecron.com`).
653. Set **Access Token** to a personal access token generated at `{host}/settings/tokens`.
66
67Alternatively, set environment variables before launching your IDE:
68
69```bash
70export GLUECRON_HOST=https://gluecron.com
71export GLUECRON_TOKEN=glc_your_token_here
72```
73
74The plugin reads these on startup and pre-fills the settings if they are not yet configured.
75
76## Project Structure
77
78```
79jetbrains-plugin/
80 build.gradle.kts Gradle build — IntelliJ Platform Plugin 1.x
81 settings.gradle.kts Root project name
82 gradle.properties plugin.id, plugin.version, platform.version
83 src/main/
84 resources/META-INF/plugin.xml Plugin manifest (actions, extensions)
85 kotlin/com/gluecron/
86 GluecronPlugin.kt Startup activity (env var seeding, welcome notification)
87 GluecronUtil.kt Shared helpers (git remote detection, browser, API)
88 actions/
89 OpenPrAction.kt Opens PR list in browser
90 CreateIssueAction.kt Opens new issue form in browser
91 MergePrAction.kt Calls Gluecron API to merge current branch's PR
92 ViewHealthAction.kt Opens repo health dashboard in browser
93 settings/
94 GluecronSettingsState.kt PersistentStateComponent (host + token)
95 GluecronSettingsConfigurable.kt Settings UI (two text fields)
96```
97
98## Merge PR — API details
99
100`MergePrAction` sends:
101
102```
103POST {host}/api/repos/{owner}/{repo}/pulls/merge
104Authorization: Bearer {token}
105Content-Type: application/json
106
107{"head": "<current-branch>", "merge_method": "merge"}
108```
109
110A confirmation dialog is shown before the request is sent. The action
111requires a valid access token to be configured.
112
113## License
114
115MIT — see the root `LICENSE` file.