Skip to content

Commit 49adef8

Browse files
Release OpenProject 12.1.0
2 parents 37d03eb + f1e8259 commit 49adef8

File tree

9,062 files changed

+88552
-47947
lines changed

Some content is hidden

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

9,062 files changed

+88552
-47947
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ ij_javascript_while_on_new_line = false
291291
ij_javascript_wrap_comments = false
292292

293293
[{*.sht,*.html,*.shtm,*.shtml,*.htm,*.ng}]
294-
indent_size = 2
295-
tab_width = 2
296-
ij_continuation_indent_size = 2
297294
ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3
298295
ij_html_align_attributes = true
299296
ij_html_align_text = false

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ LOCAL_DEV_CHECK=1
3535

3636
# Set this to your ckeditor build output directory (which includes ckeditor.js) if you
3737
# want to develop ckeditor locally.
38-
CKEDITOR_BUILD_DIR=frontend/src/vendor/ckeditor/
38+
CKEDITOR_BUILD_DIR=./frontend/src/vendor/ckeditor/
3939

4040
# This is the host from which you will be accessing the development servers locally
4141
PUBLIC_HOST=localhost
4242

43+
# Select edition from: ['standard','bim']
44+
OPENPROJECT_EDITION=standard
45+
4346
HOST=0.0.0.0
4447
PORT=1337
4548

.github/codeql/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths-ignore:
2+
- frontend/src/vendor

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/frontend"
5+
schedule:
6+
interval: "daily"
7+
target-branch: "dev"
8+
open-pull-requests-limit: 1
9+
versioning-strategy: lockfile-only
10+
- package-ecosystem: "bundler"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
target-branch: "dev"
15+
open-pull-requests-limit: 1
16+
versioning-strategy: lockfile-only

.github/workflows/brakeman-scan-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Core/Ruby-Brakeman"
1+
name: brakeman
22

33
on:
44
pull_request:

.github/workflows/codeql-scan-core.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: "Core/JS-CodeQL"
1+
name: codeql
22

33
on:
44
pull_request:
55
branches:
66
- dev
77
- release/*
8-
paths:
9-
- '**.js'
10-
- '**.ts'
118
schedule:
129
- cron: '55 5 * * 1-5'
1310

@@ -23,7 +20,7 @@ jobs:
2320
strategy:
2421
fail-fast: false
2522
matrix:
26-
language: [ 'javascript' ]
23+
language: [ 'javascript', 'ruby' ]
2724

2825
steps:
2926
- name: Checkout repository

.github/workflows/continuous-delivery.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Core/CD
1+
name: continuous-delivery
22
on:
33
push:
44
branches:

.github/workflows/crowdin.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: crowdin
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 3 * * *' # Daily at 03:00
6+
7+
jobs:
8+
setup:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
latest_release_branch: ${{ steps.find_latest_release.outputs.branch }}
12+
steps:
13+
- id: find_latest_release
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
GITHUB_REPOSITORY: ${{ github.repository }}
17+
run: |
18+
BRANCH=$(curl -H "Authorization: token $GITHUB_TOKEN" \
19+
https://api.github.com/repos/$GITHUB_REPOSITORY/branches?protected=true | \
20+
jq -r .[].name | grep "release/" | sort -r | head -1
21+
)
22+
if [ "$BRANCH" = "" ]; then
23+
echo "Invalid release branch found: $BRANCH"
24+
exit 1
25+
fi
26+
27+
echo "::set-output name=branch::${BRANCH}"
28+
echo "::set-output name=crowdin_release_branch::release"
29+
30+
crowdin:
31+
runs-on: ubuntu-latest
32+
needs: setup
33+
timeout-minutes: 60
34+
strategy:
35+
max-parallel: 1
36+
matrix:
37+
branch:
38+
- dev
39+
- "${{ needs.setup.outputs.latest_release_branch }}"
40+
steps:
41+
- uses: actions/checkout@v2
42+
with:
43+
ref: ${{ matrix.branch }}
44+
fetch-depth: 1
45+
- uses: ruby/setup-ruby@v1
46+
- name: "Set crowdin branch name"
47+
id: vars
48+
env:
49+
BRANCH: ${{ matrix.branch }}
50+
run: |
51+
echo "Setting crowdin branch from $BRANCH"
52+
if [ "$BRANCH" = "dev" ]; then
53+
echo "::set-output name=crowdin_branch::dev"
54+
else
55+
echo "::set-output name=crowdin_branch::release"
56+
fi
57+
- name: "Updating translations"
58+
uses: crowdin/github-action@1.4.4
59+
with:
60+
# Upload current source files
61+
upload_sources: true
62+
# Download updated translations
63+
download_translations: true
64+
# Which version branch to push to
65+
crowdin_branch_name: ${{ steps.vars.outputs.crowdin_branch }}
66+
# Dont create a PR for the updated translations
67+
push_translations: false
68+
env:
69+
OPENPROJECT_CROWDIN_PROJECT: ${{ secrets.OPENPROJECT_CROWDINV2_PROJECT }}
70+
OPENPROJECT_CROWDIN_API_KEY: ${{ secrets.OPENPROJECT_CROWDINV2_API_KEY }}
71+
- name: "Fixing translation names"
72+
run: |
73+
ruby script/crowdin/fix_locale_keys.rb
74+
- name: "Commit translations"
75+
run: |
76+
git config user.name "OpenProject Actions CI"
77+
git config user.email "operations+ci@openproject.com"
78+
echo "Updating combined translations"
79+
git ls-files -m -o | grep 'crowdin\/.*\.yml$' | xargs git add
80+
git diff --staged --name-only
81+
git diff --staged --exit-code --quiet || ( git commit -m "update locales from crowdin [ci skip]" && git pull --rebase && git push origin $BRANCH )

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker
1+
name: docker
22
on:
33
# Scheduled workflows run on the latest commit on the default or base branch
44
schedule:

.github/workflows/eslint-core.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: "Core/Frontend-Linting"
1+
name: eslint
22
on:
33
pull_request:
44
branches:
55
- dev
66
- release/*
77
paths:
8+
- '**.html'
89
- '**.js'
910
- '**.ts'
1011

0 commit comments

Comments
 (0)