diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d8112de0..b9d68e4c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -20,6 +20,7 @@ body: - label: I have read the instructions. - label: I have searched existing issues and avoided creating duplicates. - label: I am not filing an enhancement request. + - label: I have checked that this issue cannot be reproduced on Mozilla Firefox. - type: textarea id: what-happened attributes: @@ -28,19 +29,12 @@ body: placeholder: Tell us what you see! validations: required: true - - type: checkboxes - id: firefox - attributes: - label: Reproducible? - description: Is this issue reproducible on Firefox? - options: - - label: I have checked that this issue cannot be reproduced on Mozilla Firefox. - type: input id: version attributes: label: Version description: What version of our software are you running? Please do not use "latest" or "newest" as version numbers. Go to `Help -> About Zen` to find the version number. - placeholder: 1.0.0 + placeholder: 1.0.0b validations: required: true - type: dropdown @@ -54,10 +48,39 @@ body: - Linux (Tarball) - macOS - aarch64 - macOS - Intel - - Windows + - Windows - x64 + - Windows - aarch64 - Other validations: required: true + - type: dropdown + id: component + attributes: + label: What component is this issue related to? + options: + - Sync + - Compact Mode + - Workspaces + - Mods / Themes + - Glance + - URL Bar + - Tabs + - Settings + - Privacy + - Performance + - Media Controler + - Tab unloading + - Tab Folders + - Keyboard Shortcuts + - Security + - Extensions + - Customizable UI / Toolbars + - Localization + - Bookmarks + - Other + validations: + required: true + - type: textarea id: logs attributes: diff --git a/.github/advanced-issue-labeler.yml b/.github/advanced-issue-labeler.yml new file mode 100644 index 00000000..34f5649f --- /dev/null +++ b/.github/advanced-issue-labeler.yml @@ -0,0 +1,64 @@ +policy: + - section: + - id: [component] + label: + # Make sure it's in sync with the dropdown in the issue template + - name: 'component: sync' + keys: ['Sync'] + - name: 'component: compact-mode' + keys: ['Compact Mode'] + - name: 'component: workspaces' + keys: ['Workspaces'] + - name: 'component: mods-themes' + keys: ['Mods / Themes'] + - name: 'component: bookmarks' + keys: ['Bookmarks'] + - name: 'component: glance' + keys: ['Glance'] + - name: 'component: url-bar' + keys: ['URL Bar'] + - name: 'component: tabs' + keys: ['Tabs'] + - name: 'component: settings' + keys: ['Settings'] + - name: 'component: privacy' + keys: ['Privacy'] + - name: 'component: performance' + keys: ['Performance'] + - name: 'component: media-controller' + keys: ['Media Controler'] + - name: 'component: tab-unloading' + keys: ['Tab unloading'] + - name: 'component: tab-folders' + keys: ['Tab Folders'] + - name: 'component: keyboard-shortcuts' + keys: ['Keyboard Shortcuts'] + - name: 'component: security' + keys: ['Security'] + - name: 'component: extensions' + keys: ['Extensions'] + - name: 'component: customizable-ui-toolbars' + keys: ['Customizable UI / Toolbars'] + - name: 'component: localization' + keys: ['Localization'] + - name: 'component: other' + keys: ['Other'] + + - id: [platform] + block-list: ['Other'] + label: + # Make sure it's in sync with the dropdown in the issue template + - name: 'platform: linux-appimage' + keys: ['Linux (AppImage)'] + - name: 'platform: linux-flatpak' + keys: ['Linux (Flatpak)'] + - name: 'platform: linux-tarball' + keys: ['Linux (Tarball)'] + - name: 'platform: macos-aarch64' + keys: ['macOS - aarch64'] + - name: 'platform: macos-intel' + keys: ['macOS - Intel'] + - name: 'platform: windows-x64' + keys: ['Windows - x64'] + - name: 'platform: windows-aarch64' + keys: ['Windows - aarch64'] diff --git a/.github/workflows/clear-cache.yml b/.github/workflows/clear-cache.yml deleted file mode 100644 index 59085df3..00000000 --- a/.github/workflows/clear-cache.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Clear cache - -on: - workflow_dispatch: - -permissions: - actions: write - -jobs: - clear-cache: - runs-on: ubuntu-latest - - steps: - - name: Clear cache - uses: actions/github-script@v7 - with: - script: | - console.log("About to clear") - const caches = await github.rest.actions.getActionsCacheList({ - owner: context.repo.owner, - repo: context.repo.repo, - }) - - for (const cache of caches.data.actions_caches) { - console.log(cache) - await github.rest.actions.deleteActionsCacheById({ - owner: context.repo.owner, - repo: context.repo.repo, - cache_id: cache.id, - }) - } - - console.log("Clear completed") diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml new file mode 100644 index 00000000..5a8ed16b --- /dev/null +++ b/.github/workflows/issue-labeler.yml @@ -0,0 +1,34 @@ +name: Issue labeler +on: + issues: + types: [opened] + +permissions: + contents: read + +jobs: + label-component: + runs-on: ubuntu-latest + + permissions: + # required for all workflows + issues: write + + # only required for workflows in private repositories + actions: read + contents: read + + steps: + - uses: actions/checkout@v4 + + - name: Parse issue form + uses: stefanbuck/github-issue-parser@v3 + id: issue-parser + with: + template-path: .github/ISSUE_TEMPLATE/bug_report.yml + + - name: Set labels based on animals field + uses: redhat-plumbers-in-action/advanced-issue-labeler@v2 + with: + issue-form: ${{ steps.issue-parser.outputs.jsonString }} + token: ${{ secrets.DEPLOY_KEY }}