Skip to content

Loyalty settings#6879

Merged
munkhsaikhan merged 100 commits intomainfrom
loyalty-settings
Feb 4, 2026
Merged

Loyalty settings#6879
munkhsaikhan merged 100 commits intomainfrom
loyalty-settings

Conversation

@Khuslen122
Copy link
Copy Markdown
Collaborator

No description provided.

Khuslen122 and others added 30 commits January 5, 2026 18:14
- Update campaign schema import path to use correct module path
- Clean up assignment schema parameters formatting
- Fix spin removal to use removeSpins method for consistency
- Simplify GraphQL query parameter definitions
- Fixed typo in CampaignListResponse type name in campaign schema
- Updated getDonates query to use direct parameter structure for consistency
Co-authored-by: orshih <orshih943@gmail.com>
Comment on lines +19 to +69
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Set up Node.js
uses: actions/setup-node@v4

- name: Install dependencies
run: pnpm install

- name: Set environment variables
run: |
echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
- name: Build shared module
run: pnpm nx build erxes-api-shared

- name: Build loyalty_api
run: pnpm nx build loyalty_api

# Buildx setup
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image (multi-platform)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/build-push-action@v5
with:
context: .
file: backend/plugins/loyalty_api/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: |
erxes/erxes-next-loyalty_api:latest
erxes/erxes-next-loyalty_api:${{ env.DATE }}-${{ env.SHORT_SHA }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
munkhsaikhan and others added 4 commits February 2, 2026 16:01
- update campaign queries/mutations to old schema
- update UI queries/mutations to old campaign payload shape
- update hooks and forms to match updated schema
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 4, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
15 Security Hotspots
28.3% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@munkhsaikhan munkhsaikhan merged commit 2be0b03 into main Feb 4, 2026
10 of 12 checks passed
@munkhsaikhan munkhsaikhan deleted the loyalty-settings branch February 4, 2026 11:17
Enkhtuvshin0513 pushed a commit that referenced this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.