Skip to content

Commit 9e236dc

Browse files
Merge branch 'main' into meenu-lekhapremakumar/q-1622-slack-piece-for-specific-mentions-anywhere-on-slack
2 parents c25c08d + a42affd commit 9e236dc

File tree

4,303 files changed

+100586
-12113
lines changed

Some content is hidden

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

4,303 files changed

+100586
-12113
lines changed

.cursor/mcp.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"mcpServers": {
33
"nx-mcp": {
4-
"url": "http://localhost:9536/sse"
4+
"command": "npx",
5+
"args": [
6+
"-y",
7+
"nx-mcp@latest"
8+
]
59
}
610
}
711
}

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
// Use 'postCreateCommand' to run commands after the container is created.
3030
// "postCreateCommand": "yarn install",
3131
"remoteUser": "root",
32-
"postCreateCommand": "npm ci"
32+
"postCreateCommand": "npm i"
3333
}

.github/workflows/crowdin-pr-merger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
owner: context.repo.owner,
141141
repo: context.repo.repo,
142142
pull_number: context.issue.number,
143-
merge_method: 'merge'
143+
merge_method: 'squash'
144144
});
145145
146146
- name: Delete branch after merge

.github/workflows/release-pieces.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- 'packages/pieces/**'
1010
- 'packages/shared/**'
1111

12+
concurrency:
13+
group: release-pieces
14+
cancel-in-progress: false
15+
1216
jobs:
1317
Release-Pieces:
1418
if: github.repository == 'activepieces/activepieces'
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Remove Environment
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
Remove-Preview-Environment:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Configure SSH
12+
run: |
13+
mkdir -p ~/.ssh/
14+
echo "$SSH_KEY" > ~/.ssh/preview-server.key
15+
chmod 600 ~/.ssh/preview-server.key
16+
cat >>~/.ssh/config <<END
17+
Host preview-server
18+
HostName $SSH_HOST
19+
User $SSH_USER
20+
IdentityFile ~/.ssh/preview-server.key
21+
StrictHostKeyChecking no
22+
END
23+
env:
24+
SSH_USER: ${{ secrets.PRE_PROD_USERNAME }}
25+
SSH_KEY: ${{ secrets.PREVIEW_SSH_KEY }}
26+
SSH_HOST: ${{ secrets.PREVIEW_HOST }}
27+
28+
- name: Remove Environment
29+
run: |
30+
ssh preview-server -t -t 'bash -ic "cd /root/environments && node index.js remove ${{ github.head_ref }}; exit"'
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Setup Environment
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, edited, closed, labeled]
6+
7+
concurrency:
8+
group: setup-environment
9+
cancel-in-progress: false
10+
11+
jobs:
12+
Setup-Preview-Environment:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Configure SSH
19+
run: |
20+
mkdir -p ~/.ssh/
21+
echo "$SSH_KEY" > ~/.ssh/preview-server.key
22+
chmod 600 ~/.ssh/preview-server.key
23+
cat >>~/.ssh/config <<END
24+
Host preview-server
25+
HostName $SSH_HOST
26+
User $SSH_USER
27+
IdentityFile ~/.ssh/preview-server.key
28+
StrictHostKeyChecking no
29+
END
30+
env:
31+
SSH_USER: ${{ secrets.PRE_PROD_USERNAME }}
32+
SSH_KEY: ${{ secrets.PREVIEW_SSH_KEY }}
33+
SSH_HOST: ${{ secrets.PREVIEW_HOST }}
34+
35+
- name: Check if PR has preview label
36+
id: check-label
37+
uses: actions/github-script@v6
38+
with:
39+
script: |
40+
const labels = context.payload.pull_request.labels.map(label => label.name);
41+
const hasPreviewLabel = labels.includes('preview');
42+
43+
console.log('PR labels:', labels);
44+
console.log('Has preview label:', hasPreviewLabel);
45+
46+
core.setOutput('should-setup', hasPreviewLabel);
47+
return hasPreviewLabel;
48+
49+
- name: Setup Environment
50+
id: setup
51+
if: steps.check-label.outputs.should-setup == 'true'
52+
run: |
53+
ssh preview-server -t -t 'bash -ic "cd /root/environments && node index.js setup ${{ github.head_ref }}; exit"'
54+
echo "environment_url=https://$(echo '${{ github.head_ref }}' | sed 's|/|-|g').preview.activepieces.dev" >> $GITHUB_OUTPUT
55+
56+
- name: Comment on PR
57+
if: steps.check-label.outputs.should-setup == 'true'
58+
uses: actions/github-script@v6
59+
with:
60+
script: |
61+
github.rest.issues.createComment({
62+
issue_number: context.issue.number,
63+
owner: context.repo.owner,
64+
repo: context.repo.repo,
65+
body: '🚀 Preview environment has been set up!\n\n**Environment URL:** ${{ steps.setup.outputs.environment_url }}\n\nThe preview environment for branch `${{ github.head_ref }}` is now ready for testing.'
66+
})

.github/workflows/unified-automate-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ jobs:
6666
run: |
6767
ssh pre-prod -t -t 'bash -ic "cd activepieces && IMAGE_TAG=testing docker compose pull && IMAGE_TAG=testing docker compose up -d --force-recreate activepieces; exit"'
6868
69+
- name: Clean up unused Docker images
70+
run: |
71+
ssh pre-prod -t -t 'bash -ic "docker image prune -a -f; exit"'
72+
6973
- name: Docker system prune
7074
run: docker system prune -a -f
7175

.github/workflows/validate-pr-labels.yml

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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
1515
procps && \
1616
yarn config set python /usr/bin/python3 && \
1717
npm install -g node-gyp
18-
RUN npm i -g npm@9.9.3 pnpm@9.15.0
18+
RUN npm i -g npm@9.9.3 pnpm@9.15.0 pm2@6.0.10
1919

2020
# Set the locale
2121
ENV LANG en_US.UTF-8

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.0'
22
services:
33
activepieces:
4-
image: ghcr.io/activepieces/activepieces:0.68.2
4+
image: ghcr.io/activepieces/activepieces:0.69.0
55
container_name: activepieces
66
restart: unless-stopped
77
## Enable the following line if you already use AP_EXECUTION_MODE with SANDBOXED or old activepieces, checking the breaking change documentation for more info.

0 commit comments

Comments
 (0)