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. 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" 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 68% rename from .github/workflows/build rename to .github/workflows/build.yml index d40e7f14..8e866231 100644 --- a/.github/workflows/build +++ 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 }} 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 97% rename from .github/workflows/eslint rename to .github/workflows/eslint.yml index 8579a8e1..356bb215 100644 --- a/.github/workflows/eslint +++ b/.github/workflows/eslint.yml @@ -39,7 +39,7 @@ jobs: node-version: '20' cache: 'npm' cache-dependency-path: | - **/package-lock.json + **/pnpm-lock.yaml - name: Install ESLint run: |