From 4ac671f646e31ca4355b5371e8a8c59d136bf66f Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Sat, 6 Dec 2025 22:46:41 +0100 Subject: [PATCH 1/6] feat/Github Issue templates --- .../{02_bug_report.yml => 01_bug_report.yml} | 0 .../ISSUE_TEMPLATE/01_installation.prolem.yml | 19 ------------------- ...ure_request.yml => 02_feature_request.yml} | 0 .github/ISSUE_TEMPLATE/config.yml | 14 ++++++++++++++ 4 files changed, 14 insertions(+), 19 deletions(-) rename .github/ISSUE_TEMPLATE/{02_bug_report.yml => 01_bug_report.yml} (100%) delete mode 100644 .github/ISSUE_TEMPLATE/01_installation.prolem.yml rename .github/ISSUE_TEMPLATE/{03_feature_request.yml => 02_feature_request.yml} (100%) create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE/02_bug_report.yml b/.github/ISSUE_TEMPLATE/01_bug_report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/02_bug_report.yml rename to .github/ISSUE_TEMPLATE/01_bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/01_installation.prolem.yml b/.github/ISSUE_TEMPLATE/01_installation.prolem.yml deleted file mode 100644 index 6348c629..00000000 --- a/.github/ISSUE_TEMPLATE/01_installation.prolem.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: "🙏🏻 Installation Problem" -description: "Report an issue with installation" -title: "Installation Problem" -labels: ["type: installation"] -body: - - type: markdown - attributes: - value: For installation issues, please visit our [Discord Support](https://discord.postiz.com) for assistance. - - type: textarea - id: feature-description - validations: - required: true - attributes: - label: For installation issues, please visit our https://discord.postiz.com for assistance. - description: For installation issues, please visit our [Discord Support](https://discord.postiz.com) for assistance. - placeholder: | - For installation issues, please visit our https://discord.postiz.com for assistance. - Please do not save this issue - do not submit installation issues on GitHub. - diff --git a/.github/ISSUE_TEMPLATE/03_feature_request.yml b/.github/ISSUE_TEMPLATE/02_feature_request.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/03_feature_request.yml rename to .github/ISSUE_TEMPLATE/02_feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..b72f48ca --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,14 @@ +# Disable the default option to open a blank issue +blank_issues_enabled: true + +# Define your custom links +contact_links: + # The first link definition + - name: 🙏 Installation Issue + url: https://discord.postiz.com + about: If you have an installation / configuration issue. + + # You can add more links if needed + - name: Security Issue + url: https://github.com/gitroomhq/postiz-app/security/advisories/new + about: Please submit security Issues our GitHub Security Advisories. From 10d807430b43530afeabda3a4dccb4bcef24e802 Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Sat, 6 Dec 2025 23:06:13 +0100 Subject: [PATCH 2/6] feat/dependabot --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..5f0889ce --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "npm" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" From 63043549532500c15f1f1f0954498ed8fcb547f2 Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Sat, 6 Dec 2025 23:08:29 +0100 Subject: [PATCH 3/6] feat/github CI cleanup --- .github/workflows/build-pr | 71 ------------------------ .github/workflows/{build => build.yml} | 0 .github/workflows/codeql.yml | 2 +- .github/workflows/{eslint => eslint.yml} | 0 4 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 .github/workflows/build-pr rename .github/workflows/{build => build.yml} (100%) rename .github/workflows/{eslint => eslint.yml} (100%) diff --git a/.github/workflows/build-pr b/.github/workflows/build-pr deleted file mode 100644 index 513fe803..00000000 --- a/.github/workflows/build-pr +++ /dev/null @@ -1,71 +0,0 @@ ---- -name: Build - -on: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: ['20.17.0'] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - environment: - name: build-pr - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - run_install: false - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - name: Setup pnpm cache - uses: actions/cache@v4 - with: - path: | - ${{ env.STORE_PATH }} - ${{ github.workspace }}/.next/cache - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} - restore-keys: | - ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}- - - - name: Install dependencies - run: pnpm install - - - name: Build - run: pnpm run build - - - name: Get Commit SHA (short) - id: get_version - run: | - # Get the short 8-character commit SHA - VERSION=$(git rev-parse --short=8 HEAD) - echo "Commit SHA is $VERSION" - echo "tag=$VERSION" >> $GITHUB_OUTPUT - - - name: SonarQube Analysis (Pull Request) - uses: SonarSource/sonarqube-scan-action@v6 - with: - args: > - -Dsonar.projectVersion=${{ steps.get_version.outputs.tag }} - -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} - -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} - -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} diff --git a/.github/workflows/build b/.github/workflows/build.yml similarity index 100% rename from .github/workflows/build rename to .github/workflows/build.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fee77313..79d64857 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -4,7 +4,7 @@ name: "Code Quality Analysis" on: push: branches: - - dev1 + - main paths: - apps/** - '!apps/docs/**' diff --git a/.github/workflows/eslint b/.github/workflows/eslint.yml similarity index 100% rename from .github/workflows/eslint rename to .github/workflows/eslint.yml From f7aa06475ca210dcc027b81def597af8ce4d3e65 Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Sat, 6 Dec 2025 23:14:38 +0100 Subject: [PATCH 4/6] Refactor build workflow by removing unnecessary steps Removed the SonarQube analysis step and commit SHA retrieval from the build workflow. --- .github/workflows/build.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d40e7f14..8e866231 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,20 +50,3 @@ jobs: - name: Build run: pnpm run build - - - name: Get Commit SHA (short) - id: get_version - run: | - # Get the short 8-character commit SHA - VERSION=$(git rev-parse --short=8 HEAD) - echo "Commit SHA is $VERSION" - echo "tag=$VERSION" >> $GITHUB_OUTPUT - - - name: SonarQube Analysis (Branch) - uses: SonarSource/sonarqube-scan-action@v6 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - with: - args: > - -Dsonar.projectVersion=${{ steps.get_version.outputs.tag }} From ce3cd7ba0e9bfb828bc14c4aee6cfcf2b4d3ef0f Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Sat, 6 Dec 2025 23:15:17 +0100 Subject: [PATCH 5/6] Change cache dependency path to pnpm-lock.json Updated cache dependency path to use pnpm-lock.json instead of package-lock.json. --- .github/workflows/eslint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 8579a8e1..ad5daa83 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -39,7 +39,7 @@ jobs: node-version: '20' cache: 'npm' cache-dependency-path: | - **/package-lock.json + **/pnpm-lock.json - name: Install ESLint run: | From aa35492fb72352b3a416beedd408e317628eac28 Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Sat, 6 Dec 2025 23:17:02 +0100 Subject: [PATCH 6/6] Update cache dependency path to pnpm-lock.yaml --- .github/workflows/eslint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index ad5daa83..356bb215 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -39,7 +39,7 @@ jobs: node-version: '20' cache: 'npm' cache-dependency-path: | - **/pnpm-lock.json + **/pnpm-lock.yaml - name: Install ESLint run: |