Skip to content

Commit 822b78e

Browse files
Merge branch 'unstable' into issue_4416
2 parents 88652f4 + 0ab1086 commit 822b78e

File tree

374 files changed

+3991
-3063
lines changed

Some content is hidden

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

374 files changed

+3991
-3063
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 84 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Community Contribution Label
2+
3+
on:
4+
issues:
5+
types: [assigned, unassigned]
6+
7+
jobs:
8+
call-label-action:
9+
uses: learningequality/.github/.github/workflows/community-contribution-label.yml@main
10+
secrets:
11+
LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }}
12+
LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }}

.github/workflows/containerbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
5858

5959
- name: Build and push Docker image
60-
uses: docker/build-push-action@v5
60+
uses: docker/build-push-action@v6
6161
with:
6262
context: ./docker
6363
file: ./docker/Dockerfile.postgres.dev
@@ -97,7 +97,7 @@ jobs:
9797
uses: docker/setup-buildx-action@v3
9898

9999
- name: Build Docker image
100-
uses: docker/build-push-action@v5
100+
uses: docker/build-push-action@v6
101101
with:
102102
context: ./
103103
file: ./k8s/images/nginx/Dockerfile

.github/workflows/frontendlint.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ jobs:
4545
npm rebuild node-sass
4646
- name: Run tests
4747
run: yarn run lint-frontend:format
48-
- name: Check for modified files
49-
if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository
50-
id: git-check
51-
run: echo ::set-output name=modified::$(git diff-index --name-only HEAD)
52-
- uses: tibdex/github-app-token@v2
53-
if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository && steps.git-check.outputs.modified != ''
54-
id: generate-token
55-
with:
56-
app_id: ${{ secrets.CODE_FIX_APP_ID }}
57-
private_key: ${{ secrets.CODE_FIX_APP_PRIVATE_KEY }}
58-
- name: Push changes
59-
if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository && steps.git-check.outputs.modified != ''
60-
run: |
61-
git config --global user.name 'Learning Equality'
62-
git config --global user.email '[email protected]'
63-
git remote set-url origin https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/${{ github.repository }}
64-
git commit -am "Frontend linting of ${{ steps.git-check.outputs.modified }}"
65-
git push
48+
- name: Run pre-commit-ci-lite
49+
uses: pre-commit-ci/[email protected]
50+
if: always()

.github/workflows/notify_team_new_comment.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,6 @@ on:
66

77
jobs:
88
contributor_issue_comment:
9-
name: Contributor issue comment
10-
11-
if: >-
12-
${{
13-
!github.event.issue.pull_request &&
14-
github.event.comment.author_association != 'MEMBER' &&
15-
github.event.comment.author_association != 'OWNER'
16-
}}
17-
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Escape title double quotes
21-
id: escape_title
22-
env:
23-
ISSUE_TITLE: ${{ github.event.issue.title }}
24-
run: echo "ISSUE_TITLE=${ISSUE_TITLE//\"/\\\"}" >> "$GITHUB_OUTPUT"
25-
26-
- name: Send message to Slack channel
27-
env:
28-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
29-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
30-
uses: slackapi/[email protected]
31-
with:
32-
payload: |
33-
{
34-
"text": "*[Studio] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|${{ steps.escape_title.outputs.ISSUE_TITLE }} by ${{ github.event.comment.user.login }}>*"
35-
}
9+
uses: learningequality/.github/.github/workflows/notify_team_new_comment.yml@main
10+
secrets:
11+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/pythontest.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Label used to access the service container
3333
postgres:
3434
# Docker Hub image
35-
image: postgres:12
35+
image: postgres:16
3636
# Provide the password for postgres
3737
env:
3838
POSTGRES_USER: learningequality
@@ -65,11 +65,10 @@ jobs:
6565
- name: Set up minio
6666
run: |
6767
docker run -d -p 9000:9000 --name minio \
68-
-e "MINIO_ACCESS_KEY=development" \
69-
-e "MINIO_SECRET_KEY=development" \
70-
-v /tmp/minio_data:/data \
71-
-v /tmp/minio_config:/root/.minio \
72-
minio/minio server /data
68+
-e "MINIO_ROOT_USER=development" \
69+
-e "MINIO_ROOT_PASSWORD=development" \
70+
-e "MINIO_DEFAULT_BUCKETS=content:public" \
71+
bitnami/minio:2024.5.28
7372
- name: Set up Python 3.10
7473
uses: actions/setup-python@v5
7574
with:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Update community pull requests spreadsheet
2+
on:
3+
pull_request_target:
4+
types: [assigned,unassigned,opened,closed,reopened]
5+
6+
jobs:
7+
call-update-spreadsheet:
8+
uses: learningequality/.github/.github/workflows/update-pr-spreadsheet.yml@main
9+
secrets:
10+
CONTRIBUTIONS_SPREADSHEET_ID: ${{ secrets.CONTRIBUTIONS_SPREADSHEET_ID }}
11+
CONTRIBUTIONS_SHEET_NAME: ${{ secrets.CONTRIBUTIONS_SHEET_NAME }}
12+
GH_UPLOADER_GCP_SA_CREDENTIALS: ${{ secrets.GH_UPLOADER_GCP_SA_CREDENTIALS }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ var/
2727
.vscode/
2828

2929
# IntelliJ IDE, except project config
30-
.idea/*
31-
!.idea/studio.iml
30+
.idea/
31+
/*.iml
3232
# ignore future updates to run configuration
3333
.run/devserver.run.xml
3434

.idea/studio.iml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ repos:
2222
description: This hook handles all frontend linting for Kolibri Studio
2323
entry: yarn run lint-frontend:format
2424
language: system
25-
files: \.(js|vue|scss|less|css)$
25+
files: \.(js|vue|scss|css)$

0 commit comments

Comments
 (0)