Skip to content

Commit

Permalink
Merge branch 'AOT-Technologies:staging/QA' into staging/QA
Browse files Browse the repository at this point in the history
  • Loading branch information
sinto-aot authored Oct 29, 2024
2 parents 8e4c85c + 5050269 commit a329510
Show file tree
Hide file tree
Showing 30 changed files with 1,595 additions and 1,734 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build
on:
push:
branches:
- staging/QA
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
84 changes: 84 additions & 0 deletions .github/workflows/pr-notification.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: PR Notification to Google Chat

on:
pull_request:
types: [opened, synchronize, closed]
branches:
- master
- staging/QA

jobs:
notify:
runs-on: ubuntu-latest
if: github.repository == 'AOT-Technologies/forms-flow-ai-charts'

steps:
- name: Determine PR Status
id: pr_status
run: |
if [[ "${{ github.event.action }}" == "opened" ]]; then
echo "status=🟢 Open" >> $GITHUB_ENV
elif [[ "${{ github.event.action }}" == "closed" && "${{ github.event.pull_request.merged }}" == "true" ]]; then
echo "status=🟣 Merged" >> $GITHUB_ENV
elif [[ "${{ github.event.action }}" == "closed" ]]; then
echo "status=🔴 Closed" >> $GITHUB_ENV
else
echo "status=🟢 Open" >> $GITHUB_ENV
fi
- name: Confirm PR_NOTIFICATION Secret is Set
run: |
if [[ -z "${{ secrets.PR_NOTIFICATION }}" ]]; then
echo "PR_NOTIFICATION secret is not set."
else
echo "PR_NOTIFICATION secret is set."
fi
- name: Send notification to Google Chat
uses: fjogeleit/[email protected]
with:
url: ${{ secrets.PR_NOTIFICATION }}
method: POST
contentType: application/json
data: |
{
"cards": [
{
"header": {
"title": "Open source: Pull Request Opened by ${{ github.event.pull_request.user.login }}",
"subtitle": "Pull Request #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}",
"imageUrl": "${{ github.event.pull_request.user.avatar_url }}"
},
"sections": [
{
"widgets": [
{
"textParagraph": {
"text": "Repository: ${{ github.repository }}"
}
},
{
"textParagraph": {
"text": "Status: ${{ env.status }}"
}
},
{
"buttons": [
{
"textButton": {
"text": "View Pull Request",
"onClick": {
"openLink": {
"url": "${{ github.event.pull_request.html_url }}"
}
}
}
}
]
}
]
}
]
}
]
}
5 changes: 0 additions & 5 deletions charts/forms-flow-admin/CHANGELOG.md

This file was deleted.

5 changes: 0 additions & 5 deletions charts/forms-flow-ai/CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion charts/forms-flow-ai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ redisExporter:
image:
registry: docker.io
repository: redis
tag: 7.2.4-alpine
tag: 7.4.1
pullPolicy: IfNotPresent
pullSecrets: []
livenessProbe:
Expand Down
5 changes: 0 additions & 5 deletions charts/forms-flow-analytics/CHANGELOG.md

This file was deleted.

15 changes: 10 additions & 5 deletions charts/forms-flow-analytics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ version: v8.0.0
type: application
appVersion: "8.0.0"
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
tags:
- bitnami-common
version: 2.x.x
dependencies:
- name: redis
version: "^19.1.0"
repository: oci://registry-1.docker.io/bitnamicharts
condition: redis.enabled
- name: postgresql
version: "^15.2.0"
repository: oci://registry-1.docker.io/bitnamicharts
condition: postgresql.enabled

Loading

0 comments on commit a329510

Please sign in to comment.