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.
| 0377886 | 1 | # Gluecron JetBrains Plugin |
| 2 | ||
| 3 | IntelliJ Platform plugin for [Gluecron](https://gluecron.com) — AI-native code intelligence. | |
| 4 | ||
| 5 | Works in **IntelliJ IDEA**, **WebStorm**, **GoLand**, **PyCharm**, and any other JetBrains IDE | |
| 6 | based 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 | ||
| 17 | The 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 | |
| 30 | git clone https://gluecron.com/ccantynz/Gluecron.com.git | |
| 31 | cd 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 | ||
| 40 | The `buildPlugin` task produces a zip archive at: | |
| 41 | ||
| 42 | ``` | |
| 43 | build/distributions/gluecron-jetbrains-<version>.zip | |
| 44 | ``` | |
| 45 | ||
| 46 | ## Installing the Plugin | |
| 47 | ||
| 48 | ### From local zip (manual install) | |
| 49 | ||
| 50 | 1. Open your JetBrains IDE. | |
| 51 | 2. Go to **Settings → Plugins → ⚙ → Install Plugin from Disk…** | |
| 52 | 3. Select `build/distributions/gluecron-jetbrains-0.1.0.zip`. | |
| 53 | 4. Restart the IDE when prompted. | |
| 54 | ||
| 55 | ### From JetBrains Marketplace (once published) | |
| 56 | ||
| 57 | Search for **"Gluecron"** in **Settings → Plugins → Marketplace**. | |
| 58 | ||
| 59 | ## Configuration | |
| 60 | ||
| 61 | After installation, configure the plugin: | |
| 62 | ||
| 63 | 1. Open **Settings → Tools → Gluecron**. | |
| 64 | 2. Set **Server URL** to your Gluecron instance (e.g. `https://gluecron.com`). | |
| 65 | 3. Set **Access Token** to a personal access token generated at `{host}/settings/tokens`. | |
| 66 | ||
| 67 | Alternatively, set environment variables before launching your IDE: | |
| 68 | ||
| 69 | ```bash | |
| 70 | export GLUECRON_HOST=https://gluecron.com | |
| 71 | export GLUECRON_TOKEN=glc_your_token_here | |
| 72 | ``` | |
| 73 | ||
| 74 | The plugin reads these on startup and pre-fills the settings if they are not yet configured. | |
| 75 | ||
| 76 | ## Project Structure | |
| 77 | ||
| 78 | ``` | |
| 79 | jetbrains-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 | ``` | |
| 103 | POST {host}/api/repos/{owner}/{repo}/pulls/merge | |
| 104 | Authorization: Bearer {token} | |
| 105 | Content-Type: application/json | |
| 106 | ||
| 107 | {"head": "<current-branch>", "merge_method": "merge"} | |
| 108 | ``` | |
| 109 | ||
| 110 | A confirmation dialog is shown before the request is sent. The action | |
| 111 | requires a valid access token to be configured. | |
| 112 | ||
| 113 | ## License | |
| 114 | ||
| 115 | MIT — see the root `LICENSE` file. |