-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repository was transferred to github.com/intra2net and the plugin is now called "Note Diff". The copyright notice and other strings were fixed accordingly. The version was adjusted such that 2.0.0 corresponds to the version of the plugin that works on MantisBT v2 and a Github Actions workflow was added to generate tarballs and zip packages when tags are pushed upstream.
- Loading branch information
1 parent
2803232
commit 4bda0eb
Showing
26 changed files
with
128 additions
and
41 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,64 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
# `github.ref` is in the form /refs/tags/vx.x.x so we need to extract the tagname | ||
# to correctly fill asset_name (which will be the actual name for downloaded files) | ||
- name: Set variables | ||
id: vars | ||
run: | | ||
echo "::set-output name=product::NoteDiff-${GITHUB_REF/refs\/tags\/v/}" | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build packages | ||
id: build_packages | ||
# before creating the archives, make sure to exclude the files we don't want. | ||
# however, leave .gitattributes uncommitted -- we want these files present in | ||
# the "source" packages generated by github when we create a tag | ||
run: | | ||
echo ".github export-ignore" >> .gitattributes | ||
git archive --worktree-attributes --format tar.gz --prefix ${{ steps.vars.outputs.product }}/ -o ./NoteDiff.tar.gz ${{ github.ref }} | ||
git archive --worktree-attributes --format zip --prefix ${{ steps.vars.outputs.product }}/ -o ./NoteDiff.zip ${{ github.ref }} | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Tarball | ||
id: upload-release-tarball | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./NoteDiff.tar.gz | ||
asset_name: ${{ steps.vars.outputs.product }}.tar.gz | ||
asset_content_type: application/gzip | ||
|
||
- name: Upload Release Zip | ||
id: upload-release-zip | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./NoteDiff.zip | ||
asset_name: ${{ steps.vars.outputs.product }}.zip | ||
asset_content_type: application/zip |
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
9 changes: 9 additions & 0 deletions
9
files/js/add_diff_view_link.js → NoteDiff/files/js/add_diff_view_link.js
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
<?php | ||
|
||
/** | ||
* Note Diff - a MantisBT plugin to diff revisions of notes and issue descriptions | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Note Diff. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @copyright Copyright (C) 2020 Intra2net AG - www.intra2net.com | ||
*/ | ||
|
||
$s_plugin_NoteDiff_title = 'Note Diff'; | ||
$s_plugin_NoteDiff_description = 'Shows a visual diff between issues revisions'; | ||
$s_plugin_NoteDiff_menu_title = 'View Diff'; | ||
$s_plugin_NoteDiff_revision_range= 'Revision range'; | ||
$s_plugin_NoteDiff_diff= 'Diff'; | ||
$s_plugin_NoteDiff_view= 'View'; |
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,10 +1,10 @@ | ||
# MantisBT Issues Diff | ||
MantisBT Plugin to get a visual diff between issues revisions. | ||
# MantisBT Note Diff | ||
MantisBT Plugin to get a visual diff between the revisions of a note or an issue description. | ||
|
||
### For MantisBT v2 | ||
![issues_diff_plugin_v2](http://i.imgur.com/ZVfeFLt.png) | ||
![note_diff_plugin_v2](http://i.imgur.com/ZVfeFLt.png) | ||
|
||
### For MantisBT v1 | ||
![issues diff plugin_v1](http://i.imgur.com/STu5oHB.png) | ||
![note_diff plugin_v1](http://i.imgur.com/STu5oHB.png) | ||
|
||
Copyright (C) 2017 Samir Aguiar for Intra2net AG - www.intra2net.com | ||
Copyright (C) 2020 Intra2net AG - www.intra2net.com |
This file was deleted.
Oops, something went wrong.