From dfea577b95db1252b143beaad7c0ad7a3927107c Mon Sep 17 00:00:00 2001 From: Thomas Florio Date: Fri, 12 Sep 2025 16:41:34 +0000 Subject: [PATCH 1/5] Add dev container configuration --- .devcontainer/development/Containerfile | 11 ++++++++ .devcontainer/development/devcontainer.json | 28 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .devcontainer/development/Containerfile create mode 100644 .devcontainer/development/devcontainer.json diff --git a/.devcontainer/development/Containerfile b/.devcontainer/development/Containerfile new file mode 100644 index 0000000..0b75da1 --- /dev/null +++ b/.devcontainer/development/Containerfile @@ -0,0 +1,11 @@ +FROM registry.opensuse.org/opensuse/tumbleweed:latest + +RUN zypper -n install sudo vim gawk git openssh-clients bash-completion \ + npm22 nodejs22 glib2-tools gettext-tools jq rsync zip + +RUN npm install --global yarn + +RUN useradd --create-home --shell /bin/bash developer +RUN echo "developer ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers + +USER developer \ No newline at end of file diff --git a/.devcontainer/development/devcontainer.json b/.devcontainer/development/devcontainer.json new file mode 100644 index 0000000..a7444b1 --- /dev/null +++ b/.devcontainer/development/devcontainer.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json", + "name": "Gnome GitHub Manager Development", + "build": { + "dockerfile": "Containerfile" + }, + "remoteUser": "developer", + "postCreateCommand": "yarn install", + "customizations": { + "vscode": { + "settings": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "sonarlint.pathToNodeExecutable": "/usr/bin/node", + "sonarlint.connectedMode.project": { + "connectionId": "mackdk", + "projectKey": "mackdk_gnome-github-manager" + } + }, + "extensions": [ + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + "github.vscode-github-actions", + "mrorz.language-gettext", + "SonarSource.sonarlint-vscode" + ] + } + } +} From 556c60eb3b628b4a91c9262390a11891f04bdb89 Mon Sep 17 00:00:00 2001 From: Thomas Florio Date: Fri, 12 Sep 2025 16:41:57 +0000 Subject: [PATCH 2/5] Fix github action type --- .github/workflows/sanity-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index 5aa6b96..daf67ee 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -8,7 +8,7 @@ on: types: - opened - synchronize - - reopend + - reopened jobs: linting: From bce204aaffaa07562ca88cc41d9c7dcc9abfa440 Mon Sep 17 00:00:00 2001 From: Thomas Florio Date: Fri, 12 Sep 2025 16:42:16 +0000 Subject: [PATCH 3/5] Fix wrong charset in pot --- src/main/po/gnome-github-manager.pot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/po/gnome-github-manager.pot b/src/main/po/gnome-github-manager.pot index 8127eae..bb0460c 100644 --- a/src/main/po/gnome-github-manager.pot +++ b/src/main/po/gnome-github-manager.pot @@ -14,7 +14,7 @@ msgstr "" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" @@ -97,8 +97,8 @@ msgid "Refresh interval" msgstr "" msgid "" -"How often data is synced. Might be enforced by GitHub Policy." +"How often data is synced. Might be enforced by GitHub Policy." msgstr "" msgid "Show only partecipating" From 808d199ef6e30daddadd3ce430b2ccc59a122a64 Mon Sep 17 00:00:00 2001 From: Thomas Florio Date: Fri, 12 Sep 2025 16:42:24 +0000 Subject: [PATCH 4/5] Added missing schemas to json files --- .eslintrc.json | 1 + .prettierrc.json | 1 - package.json | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index e039020..cb94761 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,5 @@ { + "$schema": "https://www.schemastore.org/eslintrc.json", "env": { "es2022": true }, diff --git a/.prettierrc.json b/.prettierrc.json index f3710a8..b48e9e8 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -5,7 +5,6 @@ "arrowParens": "always", "singleQuote": true, "semi": true, - "parser": "typescript", "tabWidth": 4, "useTabs": false } \ No newline at end of file diff --git a/package.json b/package.json index bdcec09..bd4b219 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://www.schemastore.org/package.json", "name": "gnome-github-manager", "version": "1.0.0", "main": "extension.js", From 2d6487909c033f1074854607808a831ec3241b06 Mon Sep 17 00:00:00 2001 From: Thomas Florio Date: Fri, 12 Sep 2025 16:50:13 +0000 Subject: [PATCH 5/5] Update GitHub workflows --- .github/workflows/package-on-release.yml | 8 +++---- .github/workflows/sanity-checks.yml | 30 ++++++++++++------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/package-on-release.yml b/.github/workflows/package-on-release.yml index 722346c..fbd6d2b 100644 --- a/.github/workflows/package-on-release.yml +++ b/.github/workflows/package-on-release.yml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - - name: Install NodeJS 18 - uses: actions/setup-node@v3 + - name: Install NodeJS 22 + uses: actions/setup-node@v5 with: - node-version: 18 + node-version: 22 cache: 'yarn' - name: Install the dependencies diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index daf67ee..bc6dc5f 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -16,15 +16,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - - name: Install NodeJS 18 - uses: actions/setup-node@v3 + - name: Install NodeJS 22 + uses: actions/setup-node@v5 with: - node-version: 18 + node-version: 22 cache: 'yarn' - name: Install the dependencies @@ -38,15 +38,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - - name: Install NodeJS 18 - uses: actions/setup-node@v3 + - name: Install NodeJS 22 + uses: actions/setup-node@v5 with: - node-version: 18 + node-version: 22 cache: 'yarn' - name: Install the dependencies @@ -56,7 +56,7 @@ jobs: run: yarn package - name: Upload the distributable package - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: extension-archive path: build/dist/**/* @@ -66,13 +66,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - name: Install NodeJS 18 - uses: actions/setup-node@v3 + uses: actions/setup-node@v5 with: node-version: 18 cache: 'yarn' @@ -84,7 +84,7 @@ jobs: run: yarn test - name: Upload test coverage report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage-report path: build/test/lcov.info @@ -95,18 +95,18 @@ jobs: needs: testing steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 with: fetch-depth: 0 - name: Download test coverage report - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: coverage-report path: build/test - name: Perform SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@v2.1.1 + uses: SonarSource/sonarcloud-github-action@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}