Skip to content

Commit c372461

Browse files
committed
Update for GitBucket 4.8
1 parent cab2e76 commit c372461

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This is an example of GitBucket plug-in. This plug-in provides code snippet repo
44

55
Plugin version | GitBucket version
66
:--------------|:--------------------
7+
4.4.x | 4.8.x
78
4.2.x, 4.3.x | 4.2.x, 4.3.x, 4.4.x, 4.5.x, 4.6.x, 4.7.x
89
4.0.x | 4.0.x, 4.1.x
910
3.13.x | 3.13.x

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
val Organization = "io.github.gitbucket"
22
val ProjectName = "gitbucket-gist-plugin"
3-
val ProjectVersion = "4.4.0-SNAPSHOT"
3+
val ProjectVersion = "4.4.0"
44

55
lazy val root = (project in file(".")).enablePlugins(SbtTwirl)
66

@@ -10,7 +10,7 @@ version := ProjectVersion
1010
scalaVersion := "2.11.8"
1111

1212
libraryDependencies ++= Seq(
13-
"io.github.gitbucket" %% "gitbucket" % "4.7.0" % "provided",
13+
"io.github.gitbucket" %% "gitbucket" % "4.8" % "provided",
1414
"com.typesafe.play" %% "twirl-compiler" % "1.0.4" % "provided",
1515
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
1616
)

install-local.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
./sbt.sh package
3-
cp target/scala-2.11/gitbucket-gist-plugin_2.11-4.2.0.jar ~/.gitbucket/plugins/
3+
cp target/scala-2.11/gitbucket-gist-plugin_2.11-4.4.0.jar ~/.gitbucket/plugins/

src/main/scala/Plugin.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class Plugin extends gitbucket.core.plugin.Plugin {
2424
),
2525
new Version("4.2.0",
2626
new LiquibaseMigration("update/gitbucket-gist_4.2.xml")
27-
)
27+
),
28+
new Version("4.4.0")
2829
)
2930

3031
override def initialize(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Unit = {

src/main/scala/gitbucket/gist/controller/GistController.scala

-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ trait GistControllerBase extends ControllerBase {
354354
repository = null,
355355
issueCount = 0,
356356
pullCount = 0,
357-
commitCount = 0,
358357
forkedCount = 0,
359358
branchList = Nil,
360359
tags = Nil,

src/main/scala/gitbucket/gist/model/Gist.scala

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ case class Gist(
3838
repository = null,
3939
issueCount = 0,
4040
pullCount = 0,
41-
commitCount = 0,
4241
forkedCount = 0,
4342
branchList = Nil,
4443
tags = Nil,

src/main/twirl/gitbucket/gist/menu.scala.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<div class="small">
3636
<strong id="repository-url-proto">HTTP</strong> <span class="mute">clone URL</span>
3737
</div>
38-
@gitbucket.core.helper.html.copy("repository-url-copy", repositoryUrl.httpUrl){
38+
@gitbucket.core.helper.html.copy("repository-url", "repository-url-copy", repositoryUrl.httpUrl){
3939
<input type="text" value="@repositoryUrl.httpUrl" id="repository-url" class="form-control input-sm" readonly>
4040
}
4141
@if(context.settings.ssh && context.loginAccount.isDefined){

0 commit comments

Comments
 (0)