-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from SIkebe/release/v1.2.0
v1.2.0
- Loading branch information
Showing
15 changed files
with
139 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Scala CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
java: [8, 11, 15] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run Docker containers | ||
run: docker-compose up -d | ||
|
||
- name: Build | ||
run: sbt scalafmtSbtCheck scalafmtCheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
project.git = true | ||
version = 2.0.0 | ||
maxColumn = 120 | ||
docstrings = JavaDoc | ||
|
||
align.tokens = ["%", "%%", {code = "=>", owner = "Case"}] | ||
align.openParenCallSite = false | ||
align.openParenDefnSite = false | ||
continuationIndent.callSite = 2 | ||
continuationIndent.defnSite = 2 | ||
danglingParentheses = true | ||
project.git = true | ||
version = 2.4.2 | ||
maxColumn = 120 | ||
docstrings = JavaDoc | ||
|
||
align.tokens = ["%", "%%", {code = "=>", owner = "Case"}] | ||
align.openParenCallSite = false | ||
align.openParenDefnSite = false | ||
continuationIndent.callSite = 2 | ||
continuationIndent.defnSite = 2 | ||
danglingParentheses = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
# gitbucket-navlink-plugin | ||
GitBucket plugin which adds a link to navigation bar | ||
|
||
![NavLink settings](images/navlink.gif) | ||
|
||
## Compatibility | ||
|
||
Plugin version | GitBucket version | ||
:--------------|:-------------------- | ||
1.1.X | 4.32.0 - | ||
1.0.1 | 4.23.1 - 4.31.2 | ||
|
||
## Build from source | ||
|
||
Run `sbt assembly` and copy generated `/target/scala-2.13/gitbucket-navlink-plugin-X.X.X.jar` to `~/.gitbucket/plugins/` (If the directory does not exist, create it by hand before copying the jar), or just run `sbt install`. | ||
# gitbucket-navlink-plugin ![Scala CI](https://github.com/SIkebe/gitbucket-navlink-plugin/workflows/Scala%20CI/badge.svg) | ||
GitBucket plugin which adds a link to navigation bar | ||
|
||
![NavLink settings](images/navlink.gif) | ||
|
||
## Compatibility | ||
|
||
Plugin version | GitBucket version | ||
:--------------|:-------------------- | ||
1.2.X | 4.35.0 - | ||
1.1.X | 4.32.0 - 4.34.0 | ||
1.0.1 | 4.23.1 - 4.31.2 | ||
|
||
## Development | ||
|
||
```bash | ||
# Initialize GitBucket and PostgreSQL containers | ||
docker-compose up -d | ||
|
||
# Setup GITBUCKET_HOME | ||
# export GITBUCKET_HOME=/home/sikebe/git/github/gitbucket-navlink-plugin/docker | ||
export GITBUCKET_HOME=<path-to-repository>/docker | ||
|
||
# Build and copy assembly to GITBUCKET_HOME/plugins/ | ||
sbt install | ||
``` | ||
|
||
## Build and deploy | ||
|
||
Run `sbt assembly` and copy generated `/target/scala-2.13/gitbucket-navlink-plugin-X.X.X.jar` to `GITBUCKET_HOME/plugins/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name := "gitbucket-navlink-plugin" | ||
organization := "com.github.sikebe" | ||
version := "1.1.0" | ||
scalaVersion := "2.13.0" | ||
gitbucketVersion := "4.32.0" | ||
scalacOptions := Seq("-deprecation") | ||
name := "gitbucket-navlink-plugin" | ||
organization := "com.github.sikebe" | ||
version := "1.2.0" | ||
scalaVersion := "2.13.3" | ||
gitbucketVersion := "4.35.0" | ||
scalacOptions := Seq("-deprecation") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '3.8' | ||
|
||
services: | ||
gitbucket: | ||
image: gitbucket/gitbucket:4 | ||
restart: always | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- ./docker:/gitbucket | ||
depends_on: | ||
- db | ||
environment: | ||
- GITBUCKET_DB_URL=jdbc:postgresql://db/gitbucket | ||
- GITBUCKET_DB_USER=gitbucket | ||
- GITBUCKET_DB_PASSWORD=gitbucket | ||
- GITBUCKET_BASE_URL=http://localhost:8080 | ||
- GITBUCKET_HOME=./gitbucket | ||
command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; sleep 10; java -jar /opt/gitbucket.war' | ||
|
||
db: | ||
image: postgres:13.1-alpine | ||
restart: always | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- POSTGRES_DB=gitbucket | ||
- POSTGRES_USER=gitbucket | ||
- POSTGRES_PASSWORD=gitbucket | ||
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --locale=C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.2.8 | ||
sbt.version = 1.4.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
addSbtPlugin("io.github.gitbucket" % "sbt-gitbucket-plugin" % "1.5.0") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.3") | ||
addSbtPlugin("io.github.gitbucket" % "sbt-gitbucket-plugin" % "1.5.0") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ | |
</form> | ||
</div> | ||
</div> | ||
}} | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
</ul> | ||
</div> | ||
</div> | ||
@body | ||
@body |