Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit 1424f82

Browse files
author
Philipp Spiess
authored
Update README.md (#31)
1 parent 3eebe54 commit 1424f82

File tree

1 file changed

+10
-43
lines changed

1 file changed

+10
-43
lines changed

README.md

Lines changed: 10 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!-- Plugin description -->
2+
23
# Sourcegraph for JetBrains IDEs [![JetBrains Plugin](https://img.shields.io/badge/JetBrains-Sourcegraph-green.svg)](https://plugins.jetbrains.com/plugin/9682-sourcegraph)
34

45
- Search snippets of code on Sourcegraph.
@@ -69,52 +70,18 @@ Please file an issue: https://github.com/sourcegraph/sourcegraph-jetbrains/issue
6970

7071
- Start IntelliJ and choose `Check out from Version Control` -> `Git` -> `https://github.com/sourcegraph/sourcegraph-jetbrains`
7172
- Develop as you would normally (hit Debug icon in top right of IntelliJ) or using gradlew commands:
72-
1. `./gradlew runIde` to run an IDE instance with sourcegraph plugin installed
73+
1. `./gradlew runIde` to run an IDE instance with sourcegraph plugin installed. This will start the platform with the versions defined in [`gradle.properties`](https://github.com/sourcegraph/sourcegraph-jetbrains/blob/main/gradle.properties#L14-L16). _Note: 2021.3 is required for M1 Macs._
7374
2. `./gradlew buildPlugin` to build plugin artifact (`build/distributions/Sourcegraph.zip`)
74-
- To create `sourcegraph.jar`:
75-
1. Update `plugin.xml` (change version AND describe changes in change notes).
76-
2. Update `Util.java` (change `VERSION` constant).
77-
3. Update `README.md` (copy changelog from plugin.xml).
78-
4. choose `Build` -> `Prepare Plugin Module 'sourcegraph' For Deployment`
79-
5. `git commit -m "all: release v<THE VERSION>"` and `git push` and `git tag v<THE VERSION>` and `git push --tags`
80-
6. Upload the jar to the releases tab of this repository.
81-
7. Publish according to http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/publishing_plugin.html (note: it takes ~2 business days for JetBrains support team to review the plugin).
82-
83-
## Version History
84-
85-
#### v1.2.2
86-
87-
- It is now possible to configure the plugin per-repository using a `.idea/sourcegraph.xml` file. See the README for details.
88-
- Special thanks: @oliviernotteghem for contributing the new features in this release!
89-
- Fixed bugs where Open in Sourcegraph from the git menu does not work for repos with ssh url as their remote url
90-
91-
#### v1.2.1
92-
93-
- Added `Open In Sourcegraph` action to VCS History and Git Log to open a revision in the Sourcegraph diff view.
94-
- Added `defaultBranch` configuration option that allows opening files in a specific branch on Sourcegraph.
95-
- Added `remoteUrlReplacements` configuration option that allow users to replace specified values in the remote url with new strings.
9675

97-
#### v1.2.0
76+
## Publishing a new version
9877

99-
- The search menu entry is now no longer present when no text has been selected.
100-
- When on a branch that does not exist remotely, `master` will now be used instead.
101-
- Menu entries (Open file, etc.) are now under a Sourcegraph sub-menu.
102-
- Added a "Copy link to file" action (alt+c / opt+c).
103-
- Added a "Search in repository" action (alt+r / opt+r).
78+
The publishing process is based on the actions outlined in the [`intellij-platform-plugin-template`](https://github.com/JetBrains/intellij-platform-plugin-template).
10479

105-
#### v1.1.2
80+
1. Create a [new release](https://github.com/sourcegraph/sourcegraph-jetbrains/releases/new) on GitHub.
81+
2. Pick the new version number as the git tag (e.g. `v1.2.3`).
82+
3. Copy/paste the `[Unreleased]` section of the [`CHANGELOG.md`](https://github.com/sourcegraph/sourcegraph-jetbrains/blob/main/CHANGELOG.md) into the GitHub release text.
83+
4. Once published, a GitHub action is triggered that will publish the release automatically and create a PR to update the changelog and version text.
10684

107-
- Fixed an error that occurred when trying to search with no selection.
108-
- The git remote used for repository detection is now `sourcegraph` and then `origin`, instead of the previously poor choice of just the first git remote.
109-
110-
#### v1.1.1
111-
112-
- Fixed search shortcut; Updated the search URL to reflect a recent Sourcegraph.com change.
113-
114-
#### v1.1.0
115-
116-
- Added support for using the plugin with on-premises Sourcegraph instances.
117-
118-
#### v1.0.0
85+
## Version History
11986

120-
- Initial Release; basic Open File & Search functionality.
87+
See [`CHANGELOG.md`](https://github.com/sourcegraph/sourcegraph-jetbrains/blob/main/CHANGELOG.md).

0 commit comments

Comments
 (0)