Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
803874a
Create new git action: sprint-issues-rollover
dippindots Jan 28, 2025
f88030c
Update circleci config for security status badge
zainasir Feb 3, 2025
be281f1
Create initial issue templates
dippindots Feb 3, 2025
d8fe225
Update bug report template
dippindots Feb 3, 2025
189d342
Update feature request template
dippindots Feb 3, 2025
ddb3ece
Adding check for genericAssayProfilesMap before get profiles
dippindots Feb 4, 2025
aefd966
Introduce a new 'Question for cBioPortal team' issue template and upd…
dippindots Feb 4, 2025
cff5abd
Update swagger URLs (#11363)
er-abhijeet Feb 4, 2025
46ea16c
Delete unused logfile in root directory (#10905)
jamesqo Feb 4, 2025
d602c54
Update feature-development-guide.md (#10922)
m12m3r Feb 4, 2025
096a15b
Update README.md (#11342)
KingAlex1985 Feb 4, 2025
acb13bd
Update Load-Sample-Cancer-Study.md (#11288)
VenkateshVishwas Feb 4, 2025
80e6bb8
remove unneeded references to old tables (#10875)
sheridancbio Feb 4, 2025
953c9de
rephrase feature report
inodb Feb 5, 2025
b9375be
Merge pull request #11370 from dippindots/fix-11349
dippindots Feb 5, 2025
3c35d77
Update docker build and push action to latest version
dippindots Oct 31, 2024
ba87dd0
♻️ Update cBioPortal Architecture to start transition to clickhouse o…
haynescd Feb 6, 2025
d6d9124
Generic Assay patient level filtering
fuzhaoyuan Feb 6, 2025
835fc08
Re-arrange joining on genetic_alteration table to optimize memory con…
alisman Feb 5, 2025
d6dfa10
Merge pull request #11147 from cBioPortal/demo-update-docker-build-ve…
dippindots Feb 7, 2025
9ecbaba
Update circleci localdb tests to use the new setup (#11385)
zainasir Feb 7, 2025
8d333e4
Clarify spring security configuration (#11388)
inodb Feb 10, 2025
555071e
Merge pull request #11381 from fuzhaoyuan/master-fix-generic-assay-pa…
dippindots Feb 10, 2025
e5d41f5
Label new issues and prs automatically
dippindots Feb 7, 2025
d90080d
Merge pull request #11383 from cBioPortal/auto-label
dippindots Feb 11, 2025
537b70c
Update issue templates
dippindots Feb 11, 2025
f1dc7ba
Merge pull request #11391 from cBioPortal/update-issue-template
dippindots Feb 11, 2025
4a72207
make donate description shorter
inodb Feb 16, 2025
c64b6b6
make donate description more succinct
inodb Feb 16, 2025
7bc6a9d
Add donate heart to docs toc
inodb Feb 16, 2025
f8699fa
remove donate from toc
inodb Feb 16, 2025
52408e0
docs add donate to top header
inodb Feb 16, 2025
a41d22c
docs change donate button style
inodb Feb 16, 2025
31dfc91
Docs donate make two buttons
inodb Feb 16, 2025
efc1b2e
docs make feature dev guide more prominent
inodb Feb 17, 2025
1259cfa
v6.0.26
zainasir Feb 18, 2025
93feef5
fix: allow empty genepanel query for API (#11358)
Aiosa Feb 18, 2025
ca543a2
Undo v6.0.26 release
zainasir Feb 18, 2025
dcd8855
Update cache action version (#11397)
inodb Feb 18, 2025
ad31b73
support custom springboot args for circleci api tests (#11398)
zainasir Feb 18, 2025
e793fe4
Add rfc80 clean arch (#11396)
haynescd Feb 20, 2025
a83ad0e
Use clickhouse mode for api-tests
zainasir Feb 20, 2025
abb633a
add index page for deploying without docker
inodb Feb 21, 2025
d0a05cd
reintroduce backend docs to TOC
inodb Feb 21, 2025
a7eb796
Create Standalone README (#11378)
JREastonMarks Feb 24, 2025
8a98d07
v6.0.26
zainasir Feb 25, 2025
5ca52ee
Prepare for v6.0.27
zainasir Feb 25, 2025
209c532
Update the names for oncoprint tracks and custom sample color (#11400)
TJMKuijpers Feb 25, 2025
a060f37
Update records to extend Serializable (#11419)
haynescd Feb 25, 2025
e5ef8c2
Frontend v6.0.27
zainasir Feb 25, 2025
7901102
Prepare for v6.0.28
zainasir Feb 25, 2025
4e3d801
fix faq doc
inodb Feb 26, 2025
33cbd1b
Update groupid for jitpack builds (#11421)
zainasir Feb 27, 2025
c1143e8
Remove servlet-api dependency from mockserver-client-java (#10844)
dippindots Feb 27, 2025
a6d09e5
Fix 11373 Standalone Deployment Documentation (#11427)
JREastonMarks Feb 28, 2025
62d03e3
Fix for frequency in multi-study view (#11331)
eugeniomazzone Feb 28, 2025
00ccaae
add stacked bar chart sorting to news page (#11434)
tmazor Mar 4, 2025
5d2f303
add documentation for clickhouse mode setup for cbioportal docker com…
zainasir Mar 4, 2025
fc4d7ee
fix file paths (#11414)
rmadupuri Mar 5, 2025
261692e
Add Supported Data Types Docs (#11409)
inodb Mar 6, 2025
2c389a4
Fix broken url in clickhouse docs
zainasir Mar 10, 2025
1fdb128
Frontend v6.0.28
invalid-email-address Mar 12, 2025
e43bd49
Prepare for v6.0.29
zainasir Mar 12, 2025
c4d490a
fix screenshot tracking for backend localdb tests in circleci (#11449)
zainasir Mar 12, 2025
a5f5852
Frontend
invalid-email-address Mar 12, 2025
6542c98
Revert "Frontend" (#11452)
dippindots Mar 15, 2025
b252efd
Fixed the path of Backend code organization from docs/Backend-Code-Or…
gauravbyte Mar 18, 2025
294263d
Replace Jitpack with Github Packages (#11450)
zainasir Mar 20, 2025
249356b
improve documentation for using github packages (#11461)
zainasir Mar 20, 2025
6ddec36
Update PR section in CONTRIBUTING.md (#11443)
dippindots Mar 21, 2025
07a3479
Frontend v6.1.0
invalid-email-address Mar 25, 2025
6f86ee9
Prepare for v6.1.1
zainasir Mar 25, 2025
db6d283
add migration guide for v6.0 to v6.1 (#11467)
zainasir Mar 26, 2025
c8566d1
Fix logout confirmation issue (#11469)
dippindots Apr 1, 2025
5299e82
Add off_panel indicator for genomic_event_derived table (#11477)
fuzhaoyuan Apr 2, 2025
98a5b44
add bluesky and linkedin newsletter to FAQ (#11474)
tmazor Apr 4, 2025
5d750c7
Update Funders (#11483)
inodb Apr 7, 2025
1776707
Move several funders to past funders
inodb Apr 7, 2025
00bd106
Add custom namespace based filtering to studyview page (#11432)
FlorisVleugels Apr 7, 2025
b2d866b
Update About-Us.md (#11491)
oplantalech Apr 10, 2025
bc95dcf
Add dummy github action for demo-maven-central branch
zainasir Apr 10, 2025
1fd3794
Replace Github Packages with Maven Central (#11489)
zainasir Apr 10, 2025
8cbe494
Frontend v6.2.0
zainasir Apr 11, 2025
111aa5c
Prepare for v6.2.1
zainasir Apr 11, 2025
b847ad0
Update example link in File-Formats (#11495)
dippindots Apr 15, 2025
bfd1b16
Extract groups from OAuth JWT token (#11430)
pnartowski Apr 16, 2025
46c6b73
Update About-Us.md - add Guizela (#11497)
pieterlukasse Apr 16, 2025
946593c
remove duplicate plugins from maven central profile (#11498)
zainasir Apr 16, 2025
40f6d3f
add GA to docs site
inodb Apr 16, 2025
dc125ce
add clickhouse to arch docs
inodb Apr 17, 2025
b773154
clarify arch docs
inodb Apr 17, 2025
f25e7f6
Create FUNDING.yml
inodb Apr 18, 2025
d541a9b
fix typo in docs
inodb Apr 21, 2025
dd306a1
Support for new comparison and pathways subtabs routes in SPA (#11500)
rishisulakhe Apr 21, 2025
2302de5
fix junit report path (#11509)
gblaih Apr 22, 2025
0e251dd
Add lang attribute to html tag for 508 compliance (#11510)
alisman Apr 22, 2025
6bb9b55
Revert "Fix for frequency in multi-study view (#11331)" (#11508)
alisman Apr 22, 2025
6e0ab7d
:sparkles: Clickhousify alteration enrichments (#11454)
haynescd Apr 24, 2025
a26f9e2
remove repo donate file
inodb Apr 25, 2025
c0fbe6d
Automate master portal image deployment
zainasir Apr 25, 2025
02a137c
Automate argocd sync for master deployment
zainasir Apr 25, 2025
00614ec
Restrict docker image builds to master and tags (#11520)
zainasir Apr 29, 2025
2956dd0
Remove unnecessary logging from docker github action
zainasir Apr 29, 2025
b90c136
Clickhousify samples endpoint (#11393)
onursumer Apr 30, 2025
adfc860
fix screenshot tracking for localdb tests and restore completeResults…
gblaih May 1, 2025
39824bb
Add chromoscope video to how-tos (#11513)
tmazor May 1, 2025
f4b4d87
Frontend v6.2.1
zainasir May 1, 2025
df0947c
Prepare for v6.2.2
zainasir May 1, 2025
0f2a7ee
Wait until validated (default) when pushing to maven central
zainasir May 1, 2025
ac483f0
Use manual status check in maven github action
zainasir May 1, 2025
24237e2
Update artifact id for maven github action
zainasir May 1, 2025
3c774f6
Use BIGINT primary key for clinical_event table (#11399)
jamesqo May 2, 2025
aa81099
Make the "fetchGenericAssayData()" method more robust against possibl…
KingAlex1985 May 2, 2025
6cb0ac2
remove mvn-external-version deps (#11499)
inodb May 5, 2025
9a1694d
Update News.md (#11528)
sbabyanusha May 6, 2025
044f3c2
:bug: Serialize Web Param used in Authorization (#11530)
haynescd May 7, 2025
d0a8de5
refer to clickhouse update tools in docs (#11453)
sheridancbio May 8, 2025
846be6e
correct the DROP table statement order (#11444)
sheridancbio May 8, 2025
8a09749
Add Java style formatter (Google Style)
teesamuel Feb 22, 2025
719f69e
Run spotless:apply formatter
inodb May 8, 2025
cc42690
Merge pull request #11406 from teesamuel/java_style_formatter
inodb May 8, 2025
e782d97
Add schema versioning for derived tables (#11446)
sheridancbio May 10, 2025
08fa588
Add CUSTOM_METADATA column into resource_definition table
dippindots May 12, 2025
bdc5a07
fix label-check ci workflow
sheridancbio May 12, 2025
1b9ec7c
Merge pull request #11536 from dippindots/add-resources-column
dippindots May 12, 2025
62d8705
Update cbioportal-core v1.0.10 (#11538)
dippindots May 12, 2025
d460ce4
Frontend v6.2.2
zainasir May 12, 2025
580e4e3
Prepare for v6.2.3
zainasir May 12, 2025
bf7efc0
Fix link of pdf tutorial slides 6. (#11535)
thomasmarwitz May 13, 2025
2cda3f2
Add about page to news (#11529)
inodb May 13, 2025
89bbe51
Add database migration guide for v6.3.0 (#11546)
zainasir May 13, 2025
6361a6b
Remove unneccesary cgds.sql copy in integration test
dippindots May 13, 2025
fd7d2e1
run with master image
dippindots May 15, 2025
1be8313
update outdated test study files
dippindots May 15, 2025
dee6c15
Merge pull request #11547 from cBioPortal/update-integration-test
dippindots May 15, 2025
cc2dfdb
Fix mutation frequency in legacy (#11533)
fuzhaoyuan May 15, 2025
4136004
Fix freqency error in ClickHouse (#11447)
fuzhaoyuan May 22, 2025
671df4d
Frontend v6.3.0
invalid-email-address May 29, 2025
5042e6e
Fix Study DTO to adhere to what frontend expects (#11573)
haynescd Jun 9, 2025
d718c5d
clickhouse.sql fixes (#11577)
sheridancbio Jun 10, 2025
0a242ac
Frontend v6.3.1
invalid-email-address Jun 11, 2025
3003c69
Update release version to v6.3.1
zainasir Jun 11, 2025
39c95b8
Prepare for v6.3.2
zainasir Jun 11, 2025
ce28669
automate snapshot release versioning in pom
zainasir Jun 11, 2025
c72b5ba
Works for both mutations and CNA now (#11565)
fuzhaoyuan Jun 12, 2025
8b972d6
Automate ArgoCD deployment for new blue/green master portals (#11586)
zainasir Jun 12, 2025
3465657
fix(docs): update broken links in CONTRIBUTING.md (#11590)
Vignesh-JavaDev Jun 17, 2025
8f649bb
try v2 version of retype
inodb Jun 18, 2025
2aa3c9d
try older retype version
inodb Jun 18, 2025
42dc2a2
Add JSON field customMetaData as string in Resource Definition endpoi…
dippindots Jun 20, 2025
7894e91
Remove references to Darwin/DDP (#11572)
ao508 Jun 24, 2025
5088d61
fix link to the Backend-Code-Organization.md in Architecture-Overview…
gritsynad Jun 24, 2025
86be313
Add On-Panel Alteration Count (#11587)
fuzhaoyuan Jun 25, 2025
d5b6a7e
Refactor SessionServiceController HTTP calls (#11581)
gulshan2052 Jun 26, 2025
baead28
Add configuration for google tag manager embed (#11602)
alisman Jun 26, 2025
fd05e01
return 404 for virtual_study endpoint when given invalid id (#11604)
gblaih Jun 27, 2025
6ced395
fix file paths for automated k8s master deployment
zainasir Jul 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
505 changes: 250 additions & 255 deletions .circleci/config.yml

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .githooks/spotless_pre_commit_hook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
HOOK_FILE=".git/hooks/pre-commit"

# Ensure hooks directory exists
mkdir -p .git/hooks

# If the pre-commit hook doesn't exist, create it with a shebang line
if [[ ! -f "$HOOK_FILE" ]]; then
echo "#!/bin/bash" > "$HOOK_FILE"
echo "set -e" >> "$HOOK_FILE"
fi

# Check if Spotless is already in the pre-commit hook, and add it if missing
if ! grep -qxF "mvn spotless:apply" "$HOOK_FILE"; then
echo "echo 'Running Spotless on staged files...'" >> "$HOOK_FILE"
echo "mvn spotless:apply" >> "$HOOK_FILE"
fi

# Check if `git add -u` is already in the pre-commit hook, and add it if missing
if ! grep -qxF "git add -u" "$HOOK_FILE"; then
echo "echo 'Adding formatted files back to commit...'" >> "$HOOK_FILE"
echo "git add -u" >> "$HOOK_FILE"
fi

# Make sure the pre-commit hook is executable
chmod +x "$HOOK_FILE"

echo "✅ Spotless pre-commit hook installed successfully!"
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug, triage
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE REQUEST]"
labels: feature, triage
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.

**Describe the solution you'd like**
What would you want to happen?

**Describe alternatives you've considered**
Any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/question-for-cbioportal-team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Question for cBioPortal team
about: Submit questions related to cBioPortal data or your cBioPortal deployment
title: "[USER SUPPORT]"
labels: support, triage
assignees: dippindots

---

**How can we help**
What kind of support are you looking for? e.g.
- Data submitssion (have new data and want us to host data)
- Installation support (get questions when installing your cBioPortal instance)

**Describe the your question**
A clear description of what the question is.
22 changes: 22 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto Label New Issues

on:
issues:
types: [opened]

jobs:
add-label:
runs-on: ubuntu-latest
steps:
- name: Add default label to new issues or pull requests
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
// Add default label 'triage' to new issues so that new issues can be added to the project board automatically
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
labels: ['triage']
});
12 changes: 8 additions & 4 deletions .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
website: oracle.com
release: 21
- name: 'Cache Maven packages'
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand All @@ -45,19 +45,23 @@ jobs:
working-directory: ./cbioportal
run: |
cp src/main/resources/application.properties.EXAMPLE src/main/resources/application.properties
- name: 'Create settings.xml for github packages'
working-directory: ./cbioportal
run: |
echo "<settings><servers><server><id>github</id><username>${{ github.actor }}</username><password>${{ secrets.GITHUB_TOKEN }}</password></server></servers></settings>" > settings.xml
- name: 'Build cBioPortal once without tests'
working-directory: ./cbioportal
run: |
mvn -q -U -Ppublic -DskipTests clean install
mvn --settings settings.xml -q -U -Ppublic -DskipTests clean install
- name: 'Build cbioportal with tests'
working-directory: ./cbioportal
run: |
mvn -q -U -Ppublic clean install
mvn --settings settings.xml -q -U -Ppublic clean install
- name: 'Run tests separately'
working-directory: ./cbioportal
run: |
mvn -U -Ppublic test -Ddb.test.username=cbio_user -Ddb.test.password=somepassword
- name: 'Run integration tests separately'
working-directory: ./cbioportal
run: |
mvn -U -Ppublic integration-test -Ddb.test.username=cbio_user -Ddb.test.password=somepassword
mvn -U -Ppublic integration-test -Ddb.test.username=cbio_user -Ddb.test.password=somepassword
88 changes: 80 additions & 8 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ on:
push:
branches:
- master
- release-*
- rc
- rfc*
- demo-*
- fusion-sv-migration
- redis-branch-up-to-date
tags: '*'

jobs:
Expand Down Expand Up @@ -46,7 +40,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Publish Docker Image on Tag
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -93,7 +87,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Publish Docker Image on Tag
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -128,3 +122,81 @@ jobs:
image: ${{ steps.meta.outputs.tags }}
dependency-snapshot: 'true'
github-token: '${{ secrets.GITHUB_TOKEN }}'

update_master_k8s_deployment:
needs: build_and_publish_web
if: github.repository == 'cBioPortal/cbioportal' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
env:
DEPLOYMENT_FILE_PATH: "argocd/aws/203403084713/clusters/cbioportal-prod/apps/cbioportal"
DEPLOYMENT_FILE_NAMES: "cbioportal_backend_master_blue.yaml cbioportal_backend_master_green.yaml"
K8S_REPO: 'knowledgesystems/knowledgesystems-k8s-deployment'
ARGOCD_CLI_VER: '2.13.3'
ARGOCD_SERVER: 'argocd.cbioportal.org'
ARGOCD_APP: 'cbioportal'
ARGOCD_RESOURCE_OPTIONS: '--resource apps:Deployment:default/cbioportal-backend-master-blue --resource apps:Deployment:default/cbioportal-backend-master-green'
steps:
- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
cbioportal/cbioportal
# Do not generate latest tag
flavor: |
latest=false
suffix=-web-shenandoah
tags: |
type=ref,event=branch
type=semver,pattern={{version}}

- name: Extract Image Tag
run: |
DOCKER_TAG=${{ steps.meta.outputs.tags }}
docker pull $DOCKER_TAG
DOCKER_SHA=$(docker inspect --format="{{index .RepoDigests 0}}" $DOCKER_TAG)
echo "DOCKER_SHA=$DOCKER_SHA" >> $GITHUB_ENV

- name: Checkout K8s Repo
uses: actions/checkout@v4
with:
repository: ${{ env.K8S_REPO }}
token: ${{ secrets.K8S_REPO_TOKEN }}

- name: Update Master Deployment File
run: |
for FILE in $DEPLOYMENT_FILE_NAMES; do
sed -i "s|image:.*|image: $DOCKER_SHA|" $DEPLOYMENT_FILE_PATH/$FILE
done

- name: Add and commit changes to deployment file
run: |
git config --global user.email "cBioPortal-Action@github.com"
git config --global user.name "cBioPortal Backend Github Action"
if ! git diff --quiet; then
git add -A
git commit -m "Update master deployment"
else
echo "No changes to commit."
fi

- name: Push changes to K8s repo
uses: ad-m/github-push-action@master
with:
github_token: '${{ secrets.K8S_REPO_TOKEN }}'
repository: ${{ env.K8S_REPO }}
branch: master

- name: Setup ArgoCD
uses: clowdhaus/argo-cd-action/@main
with:
version: ${{ env.ARGOCD_CLI_VER }}
command: login ${{ env.ARGOCD_SERVER }}
options: --username ${{ secrets.ARGOCD_2034_USERNAME }} --password ${{ secrets.ARGOCD_2034_PASSWORD }}

- name: Sync master deployment
uses: clowdhaus/argo-cd-action/@main
with:
version: ${{ env.ARGOCD_CLI_VER }}
command: app sync ${{ env.ARGOCD_APP }}
options: ${{ env.ARGOCD_RESOURCE_OPTIONS }}
7 changes: 3 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
website: oracle.com
release: 21
- name: 'Cache Maven packages'
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand All @@ -31,7 +31,8 @@ jobs:
- name: 'Build cbioportal'
working-directory: ./cbioportal
run: |
mvn -DskipTests clean install
echo "<settings><servers><server><id>github</id><username>${{ github.actor }}</username><password>${{ secrets.GITHUB_TOKEN }}</password></server></servers></settings>" > settings.xml
mvn --settings settings.xml -DskipTests clean install
- name: 'Checkout cbioportal-docker-compose repo'
uses: actions/checkout@master
with:
Expand All @@ -46,8 +47,6 @@ jobs:
sed 's|spring.datasource.username=.*|spring.datasource.username=cbio_user|' | \
sed 's|spring.datasource.password=.*|spring.datasource.password=somepassword|' \
> application.properties
- name: 'Copy cgds.sql file into Docker Compose'
run: cp ./cbioportal/src/main/resources/db-scripts/cgds.sql ./cbioportal-docker-compose/data/.
- name: 'Dump Properties'
working-directory: ./cbioportal-docker-compose
run: cat config/application.properties
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/label-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,27 @@ jobs:
id: check_labels
run: |
PR_NUMBER=$(jq -r ".number" $GITHUB_EVENT_PATH)
PR_LABELS=$(curl -s "https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" | \
PR_LABELS_STRING=$(curl -s "https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" | \
jq -r '.labels[].name')
mapfile -t PR_LABELS <<< "$PR_LABELS_STRING"
mapfile -t AVAILABLE_LABELS < labels.txt
for LABEL in ${PR_LABELS[@]}; do
if [[ "$LABEL" == "skip-changelog" ]]; then
pr_label_index=0
while [ $pr_label_index -lt ${#PR_LABELS[@]} ] ; do
pr_label="${PR_LABELS[$pr_label_index]}"
if [[ "$pr_label" == "skip-changelog" ]] ; then
echo "PR contains a valid label: skip-changelog"
exit 0 # Valid label found, exit successfully
fi
for AVAILABLE_LABEL in "${AVAILABLE_LABELS[@]}"; do
if [[ "$AVAILABLE_LABEL" == "$LABEL" ]]; then
echo "PR contains a valid label: $LABEL"
available_label_index=0
while [ $available_label_index -lt ${#AVAILABLE_LABELS[@]} ] ; do
available_label="${AVAILABLE_LABELS[$available_label_index]}"
if [[ "$available_label" == "$pr_label" ]] ; then
echo "PR contains a valid label: $pr_label"
exit 0 # Valid label found, exit successfully
fi
available_label_index=$(($available_label_index+1))
done
pr_label_index=$(($pr_label_index+1))
done
echo "No valid label found on PR."
echo "Available label options from release-drafter.yml:"
Expand Down
Loading