Skip to content

gitbucket/gitbucket-gist-plugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 20, 2022 08:43
etc
February 22, 2015 23:17
October 3, 2022 16:05
December 14, 2021 00:41
December 14, 2020 02:27
August 25, 2018 11:40
December 14, 2021 00:41
November 2, 2022 16:39

gitbucket-gist-plugin build

This is a GitBucket plug-in which provides code snippet repository like Gist.

Plugin version GitBucket version
4.22.x 4.37.x -
4.21.x 4.36.x -
4.20.x 4.35.x -
4.19.x 4.34.x -
4.18.x 4.32.x - 4.33.x
4.17.x 4.30.x - 4.31.x
4.16.x 4.26.x - 4.29.x
4.15.x 4.25.x
4.13.x, 4.14.x 4.23.x - 4.24.x
4.12.x 4.21.x - 4.22.x
4.11.x 4.19.x - 4.20.x
4.10.x 4.15.x - 4.18.x
4.9.x 4.14.x
4.8.x 4.11.x - 4.13.x
4.7.x 4.11.x
4.6.x 4.10.x
4.5.x 4.9.x
4.4.x 4.8.x
4.2.x, 4.3.x 4.2.x - 4.7.x
4.0.x 4.0.x - 4.1.x
3.13.x 3.13.x
3.12.x 3.12.x
3.11.x 3.11.x
3.10.x 3.10.x
3.7.x 3.7.x - 3.9.x
3.6.x 3.6.x

Installation

Download jar file from Releases page and put into GITBUCKET_HOME/plugins.

Note: If you had used this plugin with GitBucket 3.x, it does not work after upgrading to GitBucket 4.x. Solution is below:

  1. UPDATE VERSIONS SET VERSION='2.0.0' WHERE MODULE_ID='gist';
  2. restart gitbucket
  3. can open snippets page
  4. SELECT VERSION FROM VERSIONS WHERE MODULE_ID='gist' -> 4.2.0

See Connect to H2 database to know how to execute SQL on the GitBucket database.

Build from source

Run sbt assembly and copy generated /target/scala-2.13/gitbucket-gist-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.