forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into switch-to-openj9
# Conflicts: # .github/workflows/deployment.yml
- Loading branch information
Showing
12,127 changed files
with
61,138 additions
and
1,031,328 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,40 +1,39 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/java | ||
{ | ||
"name": "Java", | ||
"image": "mcr.microsoft.com/vscode/devcontainers/base:bullseye", | ||
|
||
// Configure tool-specific properties. | ||
"image": "mcr.microsoft.com/devcontainers/base:debian", | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"vscjava.vscode-java-pack", | ||
"vscjava.vscode-gradle", | ||
"shengchen.vscode-checkstyle" | ||
"shengchen.vscode-checkstyle", | ||
"DavidAnson.vscode-markdownlint" | ||
] | ||
} | ||
}, | ||
|
||
"onCreateCommand": "gradle assemble", | ||
// Source code generation needs to be done before hand-over to VS Code. | ||
// Otherwise, the Java extension will go mad. | ||
"onCreateCommand": "./gradlew testClasses --console=plain --no-daemon", | ||
|
||
// Forward the vncPort and noVNC port. | ||
// They are provided by desktop-lite: | ||
// https://github.com/devcontainers/features/tree/main/src/desktop-lite#options | ||
"forwardPorts": [5901, 6080], | ||
|
||
// Need to connect as root otherwise we run into issues with gradle. | ||
// default option is "vscode". More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "root", | ||
"features": { | ||
// Adds a lightweight desktop that can be accessed using a VNC viewer or the web | ||
"desktop-lite": "latest", | ||
"ghcr.io/devcontainers/features/desktop-lite:1": {}, | ||
|
||
// Install java | ||
"java": { | ||
"version": "18", | ||
"installGradle": true, | ||
"jdkDistro": "sem" | ||
// Install java. | ||
// See https://github.com/devcontainers/features/tree/main/src/java#options for details. | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"version": "21.0.1-librca", | ||
"installGradle": false, | ||
"jdkDistro": "librca" | ||
} | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
name: Add greeting to issues for first time contributors | ||
|
||
on: | ||
issues: | ||
types: | ||
- labeled | ||
|
||
jobs: | ||
GreetingFirstTimeCodeContribution: | ||
if: ${{ github.event.label.name == 'FirstTimeCodeContribution' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: GreetingFirstTimeCodeContribution | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
As a general advice for newcomers: check out [Contributing](https://github.com/JabRef/jabref/blob/main/CONTRIBUTING.md) for a start. Also, [guidelines for setting up a local workspace](https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace) is worth having a look at. | ||
Feel free to ask here at GitHub, if you have any issue related questions. If you have questions about how to setup your workspace use JabRef's [Gitter](https://gitter.im/JabRef/jabref) chat. Try to open a (draft) pull-request early on, so that people can see you are working on the issue and so that they can see the direction the pull request is heading towards. This way, you will likely receive valuable feedback. |
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,42 @@ | ||
name: Add to Project on Label | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
add-to-project: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "good first issue" | ||
if: "${{ github.event.label.name == 'good first issue' }}" | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | ||
gh project item-add 5 --owner jabref --url $ISSUE_URL | ||
- name: needs-refinement | ||
if: github.event.label.name == 'needs-refinement' | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | ||
gh project item-add 15 --owner jabref --url $ISSUE_URL | ||
- name: "status: freeze" | ||
if: "${{ github.event.label.name == 'status: freeze' }}" | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | ||
gh project item-add 9 --owner jabref --url $ISSUE_URL | ||
- name: ui | ||
if: "${{ github.event.label.name == 'ui' }}" | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | ||
gh project item-add 8 --owner jabref --url $ISSUE_URL |
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,29 +1,33 @@ | ||
name: Automerge Pull Requests | ||
on: [pull_request] | ||
name: Auto Merge | ||
on: [pull_request_target, workflow_dispatch] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
automerge: | ||
name: Automerge Dependency Updates | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || contains(github.event.pull_request.labels.*.name, 'dependencies') | ||
# Run only if PR is inside JabRef's main repository and created by dependabot or by an update workflow | ||
if: > | ||
(github.repository == 'JabRef/jabref') && | ||
(github.event.pull_request.head.repo.full_name == 'JabRef/jabref') && | ||
( | ||
(github.actor == 'dependabot[bot]') || | ||
( | ||
startsWith(github.event.pull_request.title, '[Bot] ') || | ||
startsWith(github.event.pull_request.title, 'Bump ') || | ||
startsWith(github.event.pull_request.title, 'New Crowdin updates') | ||
) | ||
) | ||
steps: | ||
- name: 'Wait for status checks' | ||
id: waitforstatuschecks | ||
uses: "WyriHaximus/[email protected]" | ||
with: | ||
ignoreActions: Automerge Dependabot,Code coverage,Create snapcraft image,Deploy binaries on builds.jabref.org,codecov/project,markdown-link-check | ||
checkInterval: 13 | ||
- name: Approve PR | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Auto approve | ||
uses: hmarr/[email protected] | ||
if: steps.waitforstatuschecks.outputs.status == 'success' | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Merge pull requests | ||
uses: pascalgn/[email protected] | ||
if: steps.waitforstatuschecks.outputs.status == 'success' | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GH_TOKEN_JABREF_MACHINE_PR_APPROVE}} | ||
- name: Merge PR | ||
run: gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
MERGE_METHOD: "merge" | ||
MERGE_LABELS: "" | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER}} |
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
name: Check external href links in the documentation | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/check-links.yml' | ||
- '**/*.md' | ||
schedule: | ||
# Run on the first of each month at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07) | ||
- cron: "0 9 1 * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lychee: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
show-progress: 'false' | ||
- name: Restore lychee cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .lycheecache | ||
key: cache-lychee-${{ github.sha }} | ||
restore-keys: cache-lychee- | ||
- name: Link Checker | ||
id: lychee | ||
uses: lycheeverse/[email protected] | ||
with: | ||
fail: true | ||
args: --accept '200,201,202,203,204,429,500' --max-concurrency 1 --cache --no-progress --exclude-all-private './**/*.md' |
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,42 @@ | ||
name: Cleanup after PR | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel deployment run | ||
uses: styfle/[email protected] | ||
with: | ||
ignore_sha: true | ||
workflow_id: 9813 # workflow "Deployment" | ||
- name: Check secrets presence | ||
id: checksecrets | ||
shell: bash | ||
run: | | ||
if [ "$BUILDJABREFPRIVATEKEY" == "" ]; then | ||
echo "secretspresent=NO" >> $GITHUB_OUTPUT | ||
else | ||
echo "secretspresent=YES" >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
BUILDJABREFPRIVATEKEY: ${{ secrets.buildJabRefPrivateKey }} | ||
- name: Delete folder on builds.jabref.org | ||
if: steps.checksecrets.outputs.secretspresent == 'YES' | ||
uses: appleboy/[email protected] | ||
with: | ||
script: rm -rf /var/www/builds.jabref.org/www/pull/${{ github.event.pull_request.number }} || true | ||
host: build-upload.jabref.org | ||
port: 9922 | ||
username: jrrsync | ||
key: ${{ secrets.buildJabRefPrivateKey }} | ||
- name: Update PR comment | ||
if: steps.checksecrets.outputs.secretspresent == 'YES' | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
comment_tag: download-link | ||
message: The build for this PR is no longer available. Please visit <https://builds.jabref.org/main/> for the latest build. | ||
mode: upsert |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.