Skip to content

Commit 5fd9e55

Browse files
Merge branch 'fix-diff-highlight-16728' of https://github.com/sanjaykumarmtt/jabref into fix-diff-highlight-16728
2 parents 80a0fcf + cd366ef commit 5fd9e55

106 files changed

Lines changed: 3107 additions & 287 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/check-formatting/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ runs:
3838
run: git -C "${{ inputs.working-directory }}" diff HEAD | tee "${{ inputs.working-directory }}/format.patch"
3939
- name: Upload formatting patch
4040
if: failure()
41-
uses: actions/upload-artifact@v7
41+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
4242
with:
4343
name: ${{ inputs.artifact-name }}
4444
path: ${{ inputs.working-directory }}/format.patch

.github/actions/format-java/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Reformat Java sources using IntelliJ IDEA's code style
44
runs:
55
using: composite
66
steps:
7-
- uses: leventeBajczi/intellij-idea-format@idea-2026.2.1
7+
- uses: leventeBajczi/intellij-idea-format@db20da18da1ea0264171c370e2ea1922c7b3d18a # idea-2026.2.1
88
with:
99
file-mask: "*.java"
1010
settings-file: ".idea/codeStyles/Project.xml"

.github/actions/package/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ runs:
107107
- name: Upload ${{ inputs.component }} packages to GitHub
108108
# background: true
109109
if: (inputs.uploadAsArtifact == 'true') && (inputs.archivePortable != 'NONE')
110-
uses: actions/upload-artifact@v7
110+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
111111
with:
112112
name: ${{ inputs.componentShort }} (${{ inputs.displayName }})
113113
path: |
@@ -136,7 +136,7 @@ runs:
136136
- name: Upload ShadowJar to GitHub
137137
# background: true
138138
if: (inputs.uploadAsArtifact == 'true') && (inputs.os == 'ubuntu-22.04')
139-
uses: actions/upload-artifact@v7
139+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
140140
with:
141141
name: ${{ inputs.componentShort }} (${{ inputs.displayName }}) (shadowJar)
142142
path: |

.github/actions/pr-gate/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ runs:
8989
if: ${{ steps.perm.outputs.skip-check != 'true'
9090
&& steps.eval.outputs.ci_running == 'true'
9191
&& inputs.ci-running-message != '' }}
92-
uses: thollander/actions-comment-pull-request@v3
92+
uses: thollander/actions-comment-pull-request@65f9e5c9a1f2cd378bd74b2e057c9736982a8e74 # v3
9393
with:
9494
github-token: ${{ inputs.github-token }}
9595
message: ${{ inputs.ci-running-message }}
@@ -100,7 +100,7 @@ runs:
100100
if: ${{ steps.perm.outputs.skip-check != 'true'
101101
&& steps.eval.outputs.changes_required == 'true'
102102
&& inputs.changes-required-message != '' }}
103-
uses: thollander/actions-comment-pull-request@v3
103+
uses: thollander/actions-comment-pull-request@65f9e5c9a1f2cd378bd74b2e057c9736982a8e74 # v3
104104
with:
105105
github-token: ${{ inputs.github-token }}
106106
message: ${{ inputs.changes-required-message }}

.github/actions/setup-gradle/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ runs:
1515
using: composite
1616
steps:
1717
- name: Setup JDK
18-
uses: actions/setup-java@v6
18+
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6
1919
with:
2020
java-version: ${{ inputs.javaVersion }}
2121
distribution: ${{ inputs.distribution }}
2222
check-latest: true
2323
- name: Setup Gradle
24-
uses: gradle/actions/setup-gradle@v6
24+
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
2525
with:
2626
gradle-version: current
2727
env:

.github/labeler.yml

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
- changed-files:
4040
- any-glob-to-any-file: 'jablib/src/**/org/jabref/logic/browserext/**'
4141

42+
"component: bst":
43+
- changed-files:
44+
- any-glob-to-any-file: 'jablib/src/**/org/jabref/logic/bst/**'
45+
4246
"component: citationkey-generator":
4347
- changed-files:
4448
- any-glob-to-any-file:
@@ -72,6 +76,17 @@
7276
- changed-files:
7377
- any-glob-to-any-file: 'jabgui/src/**/*.css'
7478

79+
"component: diff-merge":
80+
- changed-files:
81+
- any-glob-to-any-file:
82+
- 'jabgui/src/**/org/jabref/gui/externalfiles/PdfMergeDialog.java'
83+
- 'jabgui/src/**/org/jabref/gui/mergeentries/**'
84+
- 'jablib/src/**/org/jabref/logic/bibtex/comparator/**'
85+
- 'jablib/src/**/org/jabref/logic/git/conflicts/**'
86+
- 'jablib/src/**/org/jabref/logic/git/diff/**'
87+
- 'jablib/src/**/org/jabref/logic/git/merge/**'
88+
- 'jablib/src/**/org/jabref/logic/importer/fetcher/MergingIdBasedFetcher.java'
89+
7590
"component: duplicate-finder":
7691
- changed-files:
7792
- any-glob-to-any-file: 'jabgui/src/**/org/jabref/gui/duplicationFinder/**'
@@ -153,7 +168,7 @@
153168
- 'jablib/src/**/org/jabref/logic/l10n/**'
154169
- 'jabgui/src/**/org/jabref/gui/l10n/**'
155170

156-
"component: JabKit [cli]":
171+
"component: jabkit":
157172
- changed-files:
158173
- any-glob-to-any-file: 'jabkit/**'
159174

@@ -163,7 +178,7 @@
163178
- 'jabsrv/**'
164179
- 'jabsrv-cli/**'
165180

166-
"component: journal abbreviations":
181+
"component: journal-abbreviations":
167182
- changed-files:
168183
- any-glob-to-any-file:
169184
- 'jablib/src/**/org/jabref/logic/journals/**'
@@ -173,6 +188,20 @@
173188
- changed-files:
174189
- any-glob-to-any-file: 'jabgui/src/**/org/jabref/gui/keyboard/**'
175190

191+
# AUX/BLG/BST/TEX files JabRef reads or writes alongside a LaTeX document.
192+
"component: latex-file-support":
193+
- changed-files:
194+
- any-glob-to-any-file:
195+
- 'jablib/src/**/org/jabref/logic/auxparser/**'
196+
- 'jablib/src/**/org/jabref/logic/biblog/**'
197+
- 'jablib/src/**/org/jabref/logic/blg/**'
198+
- 'jablib/src/**/org/jabref/logic/bst/**'
199+
- 'jablib/src/**/org/jabref/logic/texparser/**'
200+
- 'jablib/src/**/org/jabref/model/biblog/**'
201+
- 'jablib/src/**/org/jabref/model/texparser/**'
202+
- 'jabgui/src/**/org/jabref/gui/auximport/**'
203+
- 'jabgui/src/**/org/jabref/gui/texparser/**'
204+
176205
"component: libre-office":
177206
- changed-files:
178207
- any-glob-to-any-file:
@@ -196,10 +225,6 @@
196225
- changed-files:
197226
- any-glob-to-any-file: 'jabgui/src/**/org/jabref/gui/maintable/**'
198227

199-
"component: merge":
200-
- changed-files:
201-
- any-glob-to-any-file: 'jabgui/src/**/org/jabref/gui/mergeentries/**'
202-
203228
"component: microsoft-word-integration":
204229
- changed-files:
205230
- any-glob-to-any-file: 'jablib/src/**/org/jabref/logic/msbib/**'
@@ -246,6 +271,12 @@
246271
- 'jabgui/src/**/*.fxml'
247272
- 'jabgui/src/**/*.css'
248273

274+
"component: special-fields":
275+
- changed-files:
276+
- any-glob-to-any-file:
277+
- 'jabgui/src/**/org/jabref/gui/specialfields/**'
278+
- 'jablib/src/**/org/jabref/model/entry/field/SpecialField*.java'
279+
249280
"component: theming":
250281
- changed-files:
251282
- any-glob-to-any-file: 'jabgui/src/**/org/jabref/gui/theme/**'
@@ -257,3 +288,10 @@
257288
"component: welcome-walkthrough":
258289
- changed-files:
259290
- any-glob-to-any-file: 'jabgui/src/**/org/jabref/gui/walkthrough/**'
291+
292+
"component: xmp":
293+
- changed-files:
294+
- any-glob-to-any-file:
295+
- 'jablib/src/**/org/jabref/logic/xmp/**'
296+
- 'jablib/src/**/*Xmp*.java'
297+
- 'jabgui/src/**/org/jabref/gui/preferences/xmp/**'

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
USER: ${{ github.event.pull_request.user.login }}
2121
TITLE: ${{ github.event.pull_request.title }}
2222
steps:
23-
- uses: awalsh128/cache-apt-pkgs-action@v1.6.3
23+
- uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
2424
with:
2525
packages: jq
2626
version: 1.0

.github/workflows/binaries.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -144,27 +144,27 @@ jobs:
144144
jdkVersionFlavour: ${{ steps.binary.outputs.jdkVersionFlavour }}
145145
javafxVersion: ${{ steps.binary.outputs.javafxVersion }}
146146
steps:
147-
- uses: actions/checkout@v7
147+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
148148
if: github.event_name == 'pull_request'
149149
with:
150150
fetch-depth: 0
151151
show-progress: 'false'
152152
- id: changed-non-workflow-files
153153
if: github.event_name == 'pull_request'
154-
uses: tj-actions/changed-files@v47
154+
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
155155
with:
156156
files_ignore: |
157157
.github/workflows/**
158158
**/*.md
159159
- id: changed-binaries-workflow
160160
if: github.event_name == 'pull_request'
161-
uses: tj-actions/changed-files@v47
161+
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
162162
with:
163163
files: |
164164
.github/workflows/binaries.yml
165165
- id: changed-binaries-resource-markdown
166166
if: github.event_name == 'pull_request'
167-
uses: tj-actions/changed-files@v47
167+
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
168168
with:
169169
files: |
170170
jabgui/buildres/**/*.md
@@ -518,20 +518,20 @@ jobs:
518518
run: echo "Skipping pre-build because no build-relevant files changed."
519519
- name: Fetch all history for all tags and branches
520520
if: needs.conditions.outputs.should-build == 'true'
521-
uses: actions/checkout@v7
521+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
522522
with:
523523
fetch-depth: 0
524524
show-progress: 'false'
525525
- name: Install GitVersion
526526
if: needs.conditions.outputs.should-build == 'true'
527527
id: pre-gitversion
528-
uses: gittools/actions/gitversion/setup@v4.7.0
528+
uses: gittools/actions/gitversion/setup@7417b1089e2c7de93510f1901d656ddf60bb024f # v4.7.0
529529
with:
530530
versionSpec: "6.x"
531531
- name: Run GitVersion
532532
if: needs.conditions.outputs.should-build == 'true'
533533
id: gitversion
534-
uses: gittools/actions/gitversion/execute@v4.7.0
534+
uses: gittools/actions/gitversion/execute@7417b1089e2c7de93510f1901d656ddf60bb024f # v4.7.0
535535
- name: Normalize branch name
536536
if: needs.conditions.outputs.should-build == 'true'
537537
id: normalize
@@ -584,7 +584,7 @@ jobs:
584584
run: echo "Skipping binary build because no build-relevant files changed."
585585
- name: Checkout
586586
if: needs.conditions.outputs.should-build == 'true'
587-
uses: actions/checkout@v7
587+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
588588
with:
589589
fetch-depth: 1
590590
submodules: 'true'
@@ -601,7 +601,7 @@ jobs:
601601
id: pigz
602602
if: needs.conditions.outputs.should-build == 'true' && startsWith(matrix.os, 'ubuntu')
603603
background: true
604-
uses: awalsh128/cache-apt-pkgs-action@v1.6.3
604+
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
605605
with:
606606
packages: pigz
607607
version: 1.0
@@ -635,7 +635,7 @@ jobs:
635635
# Setup JDK EA and JavaFX EA
636636
- name: Set up latest JDK EA from jdk.java.net
637637
if: ${{ needs.conditions.outputs.should-build == 'true' && needs.conditions.outputs.useEaJdk == 'true' }}
638-
uses: oracle-actions/setup-java@v1
638+
uses: oracle-actions/setup-java@ec7274acdd237c7fe61395ed2edda22d756b5afe # v1
639639
with:
640640
website: jdk.java.net
641641
release: EA
@@ -880,7 +880,7 @@ jobs:
880880

881881
- name: Upload jabgui and jabls-cli to GitHub workflow artifacts store for notarization (macOS)
882882
if: ${{ needs.conditions.outputs.should-build == 'true' && (startsWith(matrix.os, 'macos')) && (needs.conditions.outputs.should-notarize == 'true') }}
883-
uses: actions/upload-artifact@v7
883+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
884884
with:
885885
# tbn = to-be-notarized
886886
name: JabRef-${{ matrix.os }}-tbn
@@ -903,7 +903,7 @@ jobs:
903903
run: echo "Skipping native binary build because it is not needed for this event."
904904
- name: Checkout
905905
if: needs.conditions.outputs.should-build == 'true'
906-
uses: actions/checkout@v7
906+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
907907
with:
908908
fetch-depth: 1
909909
submodules: 'true'
@@ -924,7 +924,7 @@ jobs:
924924
# jdk+fx maps to the Full Liberica package, used here for the AWT/java.desktop path triggered by PDFBox.
925925
- name: Set up Liberica NIK (native-image with AWT support)
926926
if: needs.conditions.outputs.should-build == 'true'
927-
uses: graalvm/setup-graalvm@v1
927+
uses: graalvm/setup-graalvm@0426e2e191540e8514dff98dc52a5f5146a2a276 # v1
928928
with:
929929
distribution: 'liberica'
930930
java-package: ${{ matrix.javaPackage }}
@@ -940,7 +940,7 @@ jobs:
940940

941941
- name: Install clitest
942942
if: needs.conditions.outputs.should-build == 'true'
943-
uses: ethanjli/cached-download-action@v0.1.4
943+
uses: ethanjli/cached-download-action@f1d109e4eca8d988e012ed5565366717aba90d0f # v0.1.4
944944
with:
945945
# clitest v0.5.0 (https://github.com/aureliojargas/clitest/releases/tag/0.5.0)
946946
url: https://raw.githubusercontent.com/aureliojargas/clitest/8bdaae2f56e524f8824307d5c443e6353fe0dbd9/clitest
@@ -980,15 +980,15 @@ jobs:
980980
981981
- name: Upload jabkit native to GitHub artifacts store
982982
if: ${{ needs.conditions.outputs.should-build == 'true' && (github.event.inputs.upload-as-artifact == 'true') && (!startsWith(matrix.os, 'macos') || needs.conditions.outputs.should-notarize != 'true') }}
983-
uses: actions/upload-artifact@v7
983+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
984984
with:
985985
name: jabkit-native (${{ matrix.displayName }})
986986
path: jabkit/build/native-dist/*.*
987987
if-no-files-found: error
988988

989989
- name: Upload jabkit native to GitHub workflow artifacts store for notarization (macOS)
990990
if: ${{ needs.conditions.outputs.should-build == 'true' && (startsWith(matrix.os, 'macos')) && (needs.conditions.outputs.should-notarize == 'true') }}
991-
uses: actions/upload-artifact@v7
991+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
992992
with:
993993
# tbn = to-be-notarized
994994
name: jabkit-native-${{ matrix.os }}-tbn
@@ -1020,7 +1020,7 @@ jobs:
10201020
steps:
10211021
- name: Comment PR
10221022
if: ${{ needs.disk-space-check.outputs.available == 'true' }}
1023-
uses: thollander/actions-comment-pull-request@v3
1023+
uses: thollander/actions-comment-pull-request@65f9e5c9a1f2cd378bd74b2e057c9736982a8e74 # v3
10241024
with:
10251025
message: |
10261026
The build of this PR is available at <${{ needs.build.outputs.url }}>.
@@ -1040,7 +1040,7 @@ jobs:
10401040
printf 'PR Body:\n%s\n' "$PR_BODY"
10411041
- name: Determine issue number
10421042
id: get_issue_number
1043-
uses: koppor/ticket-check-action@add-output
1043+
uses: koppor/ticket-check-action@5c5d28364fe8d3c2822611e0556fcacdde473b49 # add-output
10441044
with:
10451045
token: ${{ secrets.GITHUB_TOKEN }}
10461046
ticketLink: 'https://github.com/JabRef/jabref/issues/%ticketNumber%'
@@ -1053,7 +1053,7 @@ jobs:
10531053
outputOnly: true
10541054
- name: Comment on issue (build available)
10551055
if: ${{ (steps.get_issue_number.outputs.ticketNumber != '-1') && (needs.disk-space-check.outputs.available == 'true') }}
1056-
uses: thollander/actions-comment-pull-request@v3
1056+
uses: thollander/actions-comment-pull-request@65f9e5c9a1f2cd378bd74b2e057c9736982a8e74 # v3
10571057
with:
10581058
pr-number: ${{ steps.get_issue_number.outputs.ticketNumber }}
10591059
message: >
@@ -1097,7 +1097,7 @@ jobs:
10971097
runs-on: ${{ matrix.os }}
10981098
steps:
10991099
- name: Download from GitHub workflow artifacts store (macOS)
1100-
uses: actions/download-artifact@v8
1100+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
11011101
with:
11021102
name: JabRef-${{ matrix.os }}-tbn
11031103
- name: Notarize dmg
@@ -1124,7 +1124,7 @@ jobs:
11241124
rsync -rt --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r --itemize-changes --stats -e 'ssh -p 9922 -i sshkey -o StrictHostKeyChecking=no' ${{ matrix.path }}/build/packages/${{ matrix.os }}/ jrrsync@build-upload.jabref.org:/var/www/builds.jabref.org/www/${{ needs.build.outputs.branchname }}/
11251125
- name: Upload artifacts
11261126
if: ${{ github.event.inputs.upload-as-artifact || 'false' == 'true' }}
1127-
uses: actions/upload-artifact@v7
1127+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
11281128
with:
11291129
name: ${{ matrix.displayName }}
11301130
path: |
@@ -1137,7 +1137,7 @@ jobs:
11371137
runs-on: macos-15
11381138
steps:
11391139
- name: Download from GitHub workflow artifacts store (macOS)
1140-
uses: actions/download-artifact@v8
1140+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
11411141
with:
11421142
name: jabkit-native-macos-15-tbn
11431143
path: jabkit/build/native-dist
@@ -1155,7 +1155,7 @@ jobs:
11551155
rsync -rt --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r --itemize-changes --stats --rsync-path="mkdir -p /var/www/builds.jabref.org/www/${{ needs.pre-build.outputs.branch }}/macOS-silicon/tools && rsync" -e 'ssh -p 9922 -i sshkey -o StrictHostKeyChecking=no' jabkit/build/native-dist/ jrrsync@build-upload.jabref.org:/var/www/builds.jabref.org/www/${{ needs.pre-build.outputs.branch }}/macOS-silicon/tools/
11561156
- name: Upload artifacts
11571157
if: ${{ github.event.inputs.upload-as-artifact == 'true' }}
1158-
uses: actions/upload-artifact@v7
1158+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
11591159
with:
11601160
name: jabkit-native (macOS-silicon)
11611161
path: jabkit/build/native-dist/jabkit-native_macos-silicon.zip
@@ -1171,7 +1171,7 @@ jobs:
11711171
steps:
11721172
- name: Create pr_number.txt
11731173
run: echo "${{ github.event.pull_request.number }}" > pr_number.txt
1174-
- uses: actions/upload-artifact@v7
1174+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
11751175
with:
11761176
name: pr_number
11771177
path: pr_number.txt

0 commit comments

Comments
 (0)