Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"permissions": {
"allow": [
"WebFetch(domain:eclipsesource.com)",
"WebFetch(domain:github.com)",
"Bash(gh api:*)",
"WebFetch(domain:raw.githubusercontent.com)",
"WebFetch(domain:docs.artemis.tum.de)"
]
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

This local settings file likely shouldn't be committed.

.claude/settings.local.json is a developer-specific configuration file (note the .local suffix). It should typically be added to .gitignore rather than tracked in version control, as different developers may need different permission settings.

🤖 Prompt for AI Agents
In @.claude/settings.local.json around lines 1 - 11, The file
.claude/settings.local.json (containing the developer-specific
"permissions.allow" array) should not be committed; add
.claude/settings.local.json to .gitignore, remove it from tracking with git rm
--cached .claude/settings.local.json and commit that change, and optionally add
a committed template (e.g., .claude/settings.example.json) showing the allowed
keys/structure so contributors can create their own local copy with the
"permissions.allow" entries.

51 changes: 51 additions & 0 deletions .github/workflows/chart-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Chart Preview

on:
pull_request:
paths:
- 'chart/**'
- '.github/workflows/chart-preview.yml'

jobs:
preview:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
Comment thread
coderabbitai[bot] marked this conversation as resolved.
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Helm
uses: azure/setup-helm@v4

- name: Update chart dependencies
run: helm dependency update ./chart

- name: Set preview version
run: |
CURRENT_VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}')
PREVIEW_VERSION="${CURRENT_VERSION}-pr.${{ github.event.pull_request.number }}"
sed -i "s/^version: .*/version: ${PREVIEW_VERSION}/" chart/Chart.yaml
echo "PREVIEW_VERSION=${PREVIEW_VERSION}" >> $GITHUB_ENV
Comment thread
KevinGruber2001 marked this conversation as resolved.

- name: Login to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Package and push
run: |
helm package ./chart
helm push theia-shared-cache-${PREVIEW_VERSION}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts

- name: Comment install instructions
uses: marocchino/sticky-pull-request-comment@v2
with:
header: chart-preview
message: |
## 📦 Chart Preview Ready

```bash
helm install test oci://ghcr.io/${{ github.repository_owner }}/charts/theia-shared-cache --version ${{ env.PREVIEW_VERSION }}
```

_Updated: ${{ github.sha }}_
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Install Helm
uses: azure/setup-helm@v4

- name: Update chart dependencies
run: helm dependency update ./chart

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
Expand Down
Loading