1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 11:25:31 +02:00

Enhance bug report template and add issue labeling workflow

This commit is contained in:
mr. M 2025-03-29 15:25:06 +01:00
parent f7678338bc
commit 3e91ecb8d5
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
4 changed files with 130 additions and 42 deletions

View file

@ -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:

64
.github/advanced-issue-labeler.yml vendored Normal file
View file

@ -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']

View file

@ -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")

34
.github/workflows/issue-labeler.yml vendored Normal file
View file

@ -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 }}