diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 161711370..c4b40dcd0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -38,6 +38,13 @@ body: label: Gitify Version description: What version of Gitify are you using? options: + - 5.9.0 + - 5.8.1 + - 5.8.0 + - 5.7.0 + - 5.6.0 + - 5.5.0 + - 5.4.0 - 5.3.0 - 5.2.0 - 5.1.0 @@ -66,8 +73,8 @@ body: label: GitHub Account description: What GitHub account type are you using? options: - - GitHub.com - - GitHub Enterprise + - GitHub Cloud + - GitHub Enterprise Server - Combination validations: required: true diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..2fce1e333 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,29 @@ +changelog: + exclude: + labels: + - release + categories: + - title: ๐Ÿš€ Features + labels: + - enhancement + - title: ๐Ÿ› Bug Fixes + labels: + - bug + - title: ๐Ÿงผ Code Refactoring + labels: + - refactor + - title: ๐Ÿ“š Documentation + labels: + - documentation + - title: ๐Ÿงช Testing + labels: + - test + - title: ๐Ÿ—๏ธ Build System + labels: + - build + - title: ๐Ÿ“ฆ Dependency Updates + labels: + - dependency + - title: Other Changes + labels: + - "*" \ No newline at end of file diff --git a/.github/workflows/build-app.yml b/.github/workflows/build.yml similarity index 98% rename from .github/workflows/build-app.yml rename to .github/workflows/build.yml index 7a1c00976..bcde7f944 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ on: jobs: build-macos: name: Build macOS (electron-builder) - runs-on: macos-14 + runs-on: macos-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..fcf716be9 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Linting + +on: + push: + branches: + - main + pull_request: + +jobs: + lint: + name: biomejs + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'pnpm' + - run: pnpm install + - run: pnpm lint:check diff --git a/.github/workflows/on-tag.yml b/.github/workflows/on-tag.yml deleted file mode 100644 index 0360bba2a..000000000 --- a/.github/workflows/on-tag.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: On Tag - -on: - push: - tags: 'v*' - -jobs: - pr-to-homebrew: - name: Homebrew - runs-on: macos-14 - steps: - # Ensure our Homebrew/homebrew-cask fork repository is in-sync with the upstream to avoid conflicts - # during automated commit and PR creation in the brew bump-cask-pr step below. - - run: gh repo sync setchy/homebrew-cask -b master - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - - uses: Homebrew/actions/setup-homebrew@master - - id: version - run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT - - run: brew bump-cask-pr gitify --version=${{ steps.version.outputs.version }} --message="Bump gitify to ${{ steps.version.outputs.version }}" - env: - HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_TOKEN }} - - update-website: - name: Website - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - repository: gitify-app/website - token: ${{ secrets.GH_TOKEN }} - - uses: pnpm/action-setup@v3 - - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - - id: version - run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT - - run: pnpm version ${{ steps.version.outputs.version }} - - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: 'docs: update latest release to ${{ steps.version.outputs.version }}' - committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> - signoff: false - branch: 'bump/${{ steps.version.outputs.version }}' - delete-branch: true - title: 'docs: update latest release to ${{ steps.version.outputs.version }}' - body: | - Update latest release to ${{ steps.version.outputs.version }} - labels: | - documentation diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bdc0c8db..3358143e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,12 +4,12 @@ on: push: branches: - 'release/v**' - workflow_dispatch: #For manually running release process to verify codesigning of artifacts + workflow_dispatch: # For manually running release process to verify codesigning of artifacts jobs: release-macos: name: Publish macOS (electron-builder) - runs-on: macos-14 + runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -86,4 +86,4 @@ jobs: with: name: Gitify-release-linux path: dist/ - overwrite: true + overwrite: true \ No newline at end of file diff --git a/.github/workflows/run-tests.yml b/.github/workflows/test.yml similarity index 89% rename from .github/workflows/run-tests.yml rename to .github/workflows/test.yml index 10a8052a8..9f9b2c7ad 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: jobs: run-unit-tests: name: Run Tests - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -19,7 +19,6 @@ jobs: node-version-file: '.nvmrc' cache: 'pnpm' - run: pnpm install - - run: pnpm lint:check - run: pnpm tsc --noEmit - run: pnpm test -- --coverage --runInBand --verbose - name: Coveralls diff --git a/.github/workflows/validator.yml b/.github/workflows/validator.yml index 780ee8836..2aa9c2f8c 100644 --- a/.github/workflows/validator.yml +++ b/.github/workflows/validator.yml @@ -6,11 +6,10 @@ on: jobs: pr-lint: - name: Validate PR name + name: Validate PR title runs-on: ubuntu-latest steps: - - name: Validate PR title - uses: actions/github-script@v7 + - uses: actions/github-script@v7 with: script: | const title = context.payload.pull_request.title; diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml new file mode 100644 index 000000000..a46aa27c2 --- /dev/null +++ b/.github/workflows/website.yml @@ -0,0 +1,14 @@ +name: Update Website + +on: + push: + tags: 'v*' + workflow_dispatch: # For manually verify + +jobs: + redeploy-website: + runs-on: ubuntu-latest + steps: + - name: Redeploy Website + run: curl -X POST -d {} ${{ secrets.NETLIFY_BUILD_HOOK_URL }} + \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index 5802c69cb..805efa9f6 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.12.2 \ No newline at end of file +20.14.0 \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index d6c287fe8..0600cdc0d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,21 +1,21 @@ { - // Use IntelliSense to learn about possible Node.js debug attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Launch Program", - "program": "${workspaceRoot}/main.js" - }, - { - "type": "node", - "request": "attach", - "name": "Attach to Process", - "address": "localhost", - "port": 5858 - } - ] -} \ No newline at end of file + // Use IntelliSense to learn about possible Node.js debug attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "program": "${workspaceRoot}/main.js" + }, + { + "type": "node", + "request": "attach", + "name": "Attach to Process", + "address": "localhost", + "port": 5858 + } + ] +} diff --git a/README.md b/README.md index 0e2b34629..e48c13ab7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Gitify [![Build Workflow][build-workflow-badge]][github-actions] [![Release Workflow][release-workflow-badge]][github-actions] [![Coveralls][coveralls-badge]][coveralls] [![Contributors][contributors-badge]][github] [![Downloads - Total][downloads-total-badge]][website] [![Downloads - Latest Release][downloads-latest-badge]][website] [![OSS License][license-badge]][license] [![Latest Release][github-release-badge]][github-releases] [![Homebrew Cask][homebrew-cask-badge]][homebrew-cask] +# Gitify [![Build Workflow][build-workflow-badge]][github-actions] [![Release Workflow][release-workflow-badge]][github-actions] [![Coveralls][coveralls-badge]][coveralls] [![Renovate enabled][renovate-badge]][renovate] [![Libraries.io dependency status][librariesio-badge]][librariesio] [![Contributors][contributors-badge]][github] [![Downloads - Total][downloads-total-badge]][website] [![Downloads - Latest Release][downloads-latest-badge]][website] [![OSS License][license-badge]][license] [![Latest Release][github-release-badge]][github-releases] [![Homebrew Cask][homebrew-cask-badge]][homebrew-cask] > GitHub Notifications on your menu bar. Available on macOS, Windows and Linux. @@ -42,11 +42,13 @@ The release process is automated. Follow the steps below. 4. In the same branch, **bump the version** of the app by running `pnpm version [website]: https://www.gitify.io -[faqs]: https://www.gitify.io/faqs +[faqs]: https://www.gitify.io/faq/ [github]: https://github.com/gitify-app/gitify [github-actions]: https://github.com/gitify-app/gitify/actions [github-releases]: https://github.com/gitify-app/gitify/releases/latest @@ -87,14 +92,20 @@ Gitify is licensed under the MIT Open Source license. For more information, see [github-website-pulls]: https://github.com/gitify-app/website/pulls [brew]: http://brew.sh/ [homebrew-cask]: https://formulae.brew.sh/cask/gitify +[biome-website]: biomejs.dev/ [coveralls]: https://coveralls.io/github/gitify-app/gitify [coveralls-badge]: https://img.shields.io/coverallsCoverage/github/gitify-app/gitify -[build-workflow-badge]: https://github.com/gitify-app/gitify/actions/workflows/build-app.yml/badge.svg +[build-workflow-badge]: https://github.com/gitify-app/gitify/actions/workflows/build.yml/badge.svg [release-workflow-badge]: https://github.com/gitify-app/gitify/actions/workflows/release.yml/badge.svg [downloads-total-badge]: https://img.shields.io/github/downloads/gitify-app/gitify/total?label=downloads@all [downloads-latest-badge]: https://img.shields.io/github/downloads/gitify-app/gitify/latest/total [contributors-badge]: https://img.shields.io/github/contributors/gitify-app/gitify +[librariesio]: https://libraries.io/ +[librariesio-badge]: https://img.shields.io/librariesio/github/gitify-app/gitify [license]: LICENSE [license-badge]: https://img.shields.io/github/license/gitify-app/gitify [github-release-badge]: https://img.shields.io/github/v/release/gitify-app/gitify [homebrew-cask-badge]: https://img.shields.io/homebrew/cask/v/gitify +[jest-website]: https://jestjs.io/ +[renovate]: https://renovatebot.com/ +[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg diff --git a/assets/images/press.png b/assets/images/press.png index 6de0e13b3..e416040ce 100644 Binary files a/assets/images/press.png and b/assets/images/press.png differ diff --git a/biome.json b/biome.json index 20771d458..bac4f37fb 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.6.4/schema.json", + "$schema": "https://biomejs.dev/schemas/1.8.1/schema.json", "organizeImports": { "enabled": true }, @@ -7,6 +7,13 @@ "enabled": true, "rules": { "recommended": true, + "nursery": { + "noUnusedFunctionParameters": "error", + "useDefaultSwitchClause": "error" + }, + "a11y": { + "useKeyWithClickEvents": "off" + }, "correctness": { "useExhaustiveDependencies": { "level": "warn", diff --git a/index.html b/index.html index 1178f95c4..0d6c1a871 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - - + + Gitify @@ -9,40 +9,60 @@ -
+