Initial QSfera import
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
---
|
||||
name: Bug Report
|
||||
about: 🪲 Something is broken
|
||||
title: ''
|
||||
labels: Type:Bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
## Steps to reproduce
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
|
||||
## Expected behavior
|
||||
- Concise description of what you expected to happen.
|
||||
|
||||
## Actual behavior
|
||||
- A concise description of what happened.
|
||||
|
||||
## Setup
|
||||
- Your operating system
|
||||
- Client version
|
||||
- Log
|
||||
+171
@@ -0,0 +1,171 @@
|
||||
---
|
||||
name: User story
|
||||
about: Converts your idea into an actionable format ready for sprint implementation.
|
||||
title: ''
|
||||
labels: Type:Story
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
# Description
|
||||
|
||||
## User Stories
|
||||
|
||||
- ***As a ..., I want to ... so that ... (please stick to who, what, why)***
|
||||
|
||||
## Value
|
||||
-
|
||||
|
||||
## Acceptance Criteria
|
||||
-
|
||||
|
||||
## Definition of ready
|
||||
- [ ] Everybody needs to understand the value written in the user story
|
||||
- [ ] Acceptance criteria have to be defined
|
||||
- [ ] All dependencies of the user story need to be identified
|
||||
- [ ] Feature should be seen from an end user perspective
|
||||
- [ ] Story has to be estimated
|
||||
- [ ] Story points need to be less than 20
|
||||
|
||||
## Definition of done
|
||||
- Functional requirements
|
||||
- [ ] Functionality described in the user story works
|
||||
- [ ] Acceptance criteria are fulfilled
|
||||
- Quality
|
||||
- [ ] Code review happened
|
||||
- [ ] CI is green (that includes new and existing automated tests)
|
||||
- [ ] Critical code received unit tests by the developer
|
||||
- Non-functional requirements
|
||||
- [ ] No sonar cloud issues
|
||||
- Configuration changes
|
||||
- [ ] The next branch of the OpenCloud charts is compatible
|
||||
|
||||
|
||||
<details>
|
||||
|
||||
<summary>Writing Tips</summary>
|
||||
|
||||
## User Story
|
||||
INVEST Criteria for User Stories
|
||||
|
||||
- **Independent**
|
||||
Should be self-contained in a way that allows being released **without depending on one another**.
|
||||
|
||||
- **Negotiable**
|
||||
Only **capture the essence** of the user's need, leaving room for conversation. A user story should not be written like a contract.
|
||||
|
||||
- **Valuable**
|
||||
Delivers value to the end user.
|
||||
|
||||
- **Estimable**
|
||||
User stories must be estimated so they can be properly prioritized and fit into sprints.
|
||||
|
||||
- **Small**
|
||||
A user story is a small chunk of work that allows it to be completed in a short period of time.
|
||||
|
||||
- **Testable**
|
||||
A user story has to be confirmed via pre-written acceptance criteria.
|
||||
|
||||
## Value
|
||||
Examples:
|
||||
- Save time
|
||||
- Reduce risk
|
||||
- Make it accessible for anyone
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
### What Acceptance Criteria are for
|
||||
Acceptance Criteria answer one question only:
|
||||
|
||||
**How do we know this story is done?**
|
||||
|
||||
Not how it is implemented. Not what might be nice. Not future hypotheticals.
|
||||
|
||||
|
||||
#### Tie every AC to user value
|
||||
Each criterion must protect or enable the user benefit.
|
||||
|
||||
**Bad**
|
||||
- API returns 200 OK
|
||||
|
||||
**Good**
|
||||
- User sees a confirmation that the action succeeded
|
||||
|
||||
If the user would not notice a failure, question why the AC exists.
|
||||
|
||||
#### Use observable outcomes
|
||||
ACs must be verifiable by anyone, not just engineers.
|
||||
|
||||
**Bad**
|
||||
- System processes data efficiently
|
||||
|
||||
**Good**
|
||||
- Results are shown within 2 seconds after submission
|
||||
|
||||
If you cannot test it without reading code, it is trash.
|
||||
|
||||
#### Write from the user’s perspective
|
||||
Describe what the user can do or see, not internal behavior.
|
||||
|
||||
**Bad**
|
||||
- Data is stored in the new table
|
||||
|
||||
**Good**
|
||||
- User can see previously saved entries after reload
|
||||
|
||||
#### Keep ACs binary
|
||||
Each AC should be clearly pass or fail.
|
||||
|
||||
**Bad**
|
||||
- Works well on mobile
|
||||
|
||||
**Good**
|
||||
- User can complete the flow on a mobile device without horizontal scrolling
|
||||
|
||||
If there is room for interpretation, it will be abused.
|
||||
|
||||
#### Cover the happy path first
|
||||
Do not drown the story in edge cases.
|
||||
|
||||
Start with:
|
||||
- Core flow
|
||||
- Primary user goal
|
||||
|
||||
Add edge cases only if they:
|
||||
- Prevent real harm
|
||||
- Block release
|
||||
- Create user-visible failure
|
||||
|
||||
### Avoid solutioning
|
||||
ACs define what, not how.
|
||||
|
||||
**Bad**
|
||||
- Button is implemented using component X
|
||||
|
||||
**Good**
|
||||
- User can submit the form using a visible primary action
|
||||
|
||||
If you lock implementation, you kill collaboration.
|
||||
|
||||
#### Use Given / When / Then where helpful
|
||||
Optional, but useful for clarity.
|
||||
|
||||
**Example**
|
||||
- **Given** the user is logged in
|
||||
- **When** they submit the form
|
||||
- **Then** they see a success message and the data is saved
|
||||
|
||||
If it adds noise, skip it.
|
||||
|
||||
|
||||
### Litmus test
|
||||
A good set of ACs allows:
|
||||
- A developer to build it
|
||||
- A tester to verify it
|
||||
- A product manager to accept or reject it
|
||||
|
||||
Without further clarification.
|
||||
|
||||
If not, rewrite.
|
||||
|
||||
</details>
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
# 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:
|
||||
# Maintain dependencies for GitHub Actions
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
_extends: gh-labels
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
if ($IsWindows) {
|
||||
$python = (Get-Command py).Source
|
||||
$python=(py -c "import sys; print(sys.executable)")
|
||||
$env:HOME = ${HOME}
|
||||
} else {
|
||||
$python = (Get-Command python3).Source
|
||||
}
|
||||
|
||||
# workaround, prevent CraftMaster detecting the platform as android
|
||||
$env:ANDROID_NDK = $null
|
||||
|
||||
$RepoRoot = "{0}/../../" -f ([System.IO.Path]::GetDirectoryName($myInvocation.MyCommand.Definition))
|
||||
$command = @("${HOME}/craft/CraftMaster/CraftMaster/CraftMaster.py",
|
||||
"--config", "${RepoRoot}/.craft.ini",
|
||||
"--config-override", "${RepoRoot}/.github/workflows/craft_override.ini",
|
||||
"--target", "${env:CRAFT_TARGET}",
|
||||
"--variables", "WORKSPACE=${HOME}/craft") + $args
|
||||
|
||||
Write-Host "Exec: ${python} ${command}"
|
||||
|
||||
& $python @command
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit 1
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
$clazyPlugin="ClazyClangTidy"
|
||||
|
||||
if($isWindows) {
|
||||
$clazyPlugin = $null
|
||||
#$clazy += ".dll" // don't use clazy on windows for now
|
||||
} elseif($isLinux) {
|
||||
$clazyPlugin = "${env:KDEROOT}/lib/${clazyPlugin}.so"
|
||||
} else
|
||||
{
|
||||
$clazyPlugin = "${env:KDEROOT}/lib/${clazyPlugin}.dylib"
|
||||
}
|
||||
$CLAZY_LEVEL0="clazy-overloaded-signal,clazy-connect-by-name,clazy-connect-non-signal,clazy-qstring-comparison-to-implicit-char,clazy-wrong-qevent-cast,clazy-lambda-in-connect,clazy-lambda-unique-connection,clazy-qdatetime-utc,clazy-qgetenv,clazy-qstring-insensitive-allocation,clazy-fully-qualified-moc-types,clazy-unused-non-trivial-variable,clazy-connect-not-normalized,clazy-mutable-container-key,clazy-qenums,clazy-qmap-with-pointer-key,clazy-qstring-ref,clazy-strict-iterators,clazy-writing-to-temporary,clazy-container-anti-pattern,clazy-qcolor-from-literal,clazy-qfileinfo-exists,clazy-qstring-arg,clazy-empty-qstringliteral,clazy-qt-macros,clazy-temporary-iterator,clazy-wrong-qglobalstatic,clazy-lowercase-qml-type-name,clazy-no-module-include,clazy-use-static-qregularexpression"
|
||||
$CLAZY_LEVEL1="clazy-auto-unexpected-qstringbuilder,clazy-connect-3arg-lambda,clazy-const-signal-or-slot,clazy-detaching-temporary,clazy-foreach,clazy-incorrect-emit,clazy-install-event-filter,clazy-non-pod-global-static,clazy-post-event,clazy-qdeleteall,clazy-qlatin1string-non-ascii,clazy-qproperty-without-notify,clazy-qstring-left,clazy-range-loop-detach,clazy-range-loop-reference,clazy-returning-data-from-temporary,clazy-rule-of-two-soft,clazy-child-event-qobject-cast,clazy-virtual-signal,clazy-overridden-signal,clazy-qhash-namespace,clazy-skipped-base-method,clazy-readlock-detaching"
|
||||
$CLAZY_LEVEL2="clazy-ctor-missing-parent-argument,clazy-base-class-event,clazy-copyable-polymorphic,clazy-function-args-by-ref,clazy-function-args-by-value,clazy-global-const-char-pointer,clazy-implicit-casts,clazy-missing-qobject-macro,clazy-missing-typeinfo,clazy-old-style-connect,clazy-qstring-allocations,clazy-returning-void-expression,clazy-rule-of-three,clazy-virtual-call-ctor,clazy-static-pmf"
|
||||
|
||||
if ($clazyPlugin)
|
||||
{
|
||||
$clazyCommand = @("-load=${clazyPlugin}", "-checks=${CLAZY_LEVEL0},-overloaded-signal,qt-keywords")
|
||||
} else {
|
||||
$clazyCommand = @()
|
||||
}
|
||||
|
||||
$clangCommand = $clazyCommand + @("-p", "$env:BUILD_DIR")
|
||||
|
||||
run-clang-tidy @clangCommand | Tee-Object -Path "$([System.IO.Path]::GetTempPath())/clang-tidy.log"
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
[GeneralSettings]
|
||||
# creating cache files on github makes no sense
|
||||
Packager/CreateCache = False
|
||||
|
||||
|
||||
Paths/CCACHE_DIR = ${Env:HOME}/ccache
|
||||
Compile/UseCCache = True
|
||||
|
||||
[linux-gcc-x86_64]
|
||||
Environment/SourceCommand = export PKG_CONFIG_PATH=(/usr/bin/pkg-config --variable pc_path pkg-config) && source /opt/rh/gcc-toolset-14/enable
|
||||
|
||||
[linux-gcc-x86_64-debug]
|
||||
Environment/SourceCommand = export PKG_CONFIG_PATH=(/usr/bin/pkg-config --variable pc_path pkg-config) && source /opt/rh/gcc-toolset-14/enable
|
||||
Vendored
+221
@@ -0,0 +1,221 @@
|
||||
name: QSfera Desktop CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'stable-[0-9]+.[0-9]+'
|
||||
- 'stable-[0-9]+.[0-9]+.[0-9]+'
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
releaseChannel:
|
||||
description: 'The release channel'
|
||||
required: true
|
||||
default: 'stable'
|
||||
type: choice
|
||||
options:
|
||||
- stable
|
||||
- beta
|
||||
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: {}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
|
||||
jobs:
|
||||
# ------------------------------------------------------------------------------------------------------------------------------------------
|
||||
build:
|
||||
permissions:
|
||||
# actions/upload-artifact doesn't need contents: write
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
include:
|
||||
- target: windows-cl-msvc2022-x86_64
|
||||
os: windows-latest
|
||||
container:
|
||||
- target: macos-clang-arm64
|
||||
os: macos-latest
|
||||
container:
|
||||
- target: linux-gcc-x86_64
|
||||
os: ubuntu-latest
|
||||
container: invent-registry.kde.org/sysadmin/ci-images/craft-appimage:latest
|
||||
|
||||
name: ${{ matrix.target }}
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
env:
|
||||
CRAFT_TARGET: ${{ matrix.target }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CRAFT_PACKAGE_SYMBOLS: ${{ github.event_name != 'pull_request' }}
|
||||
|
||||
container: ${{ matrix.container }}
|
||||
|
||||
steps:
|
||||
- name: Check out full source code for tooling
|
||||
if: ${{ matrix.target == 'linux-gcc-x86_64' }}
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check out latest commit
|
||||
if: ${{ matrix.target != 'linux-gcc-x86_64' }}
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Restore and update cache
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
~/ccache
|
||||
key: ${{ runner.os }}-${{ matrix.target }}-${{ github.run_id }} # generate a new key every time to trigger an update
|
||||
restore-keys: ${{ runner.os }}-${{ matrix.target }}
|
||||
|
||||
- name: Restore cache
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: |
|
||||
~/ccache
|
||||
key: ${{ runner.os }}-${{ matrix.target }}
|
||||
|
||||
|
||||
- name: Clone CraftMaster
|
||||
run: |
|
||||
git clone --depth=1 https://invent.kde.org/kde/craftmaster.git "${home}/craft/CraftMaster/CraftMaster"
|
||||
|
||||
- name: Craft setup
|
||||
run: |
|
||||
New-Item -Path ~/cache -ItemType Directory -ErrorAction SilentlyContinue
|
||||
# disable git's safe.directory
|
||||
git config --global --add safe.directory '*'
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" --setup
|
||||
|
||||
- name: Craft unshelve
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --unshelve "${env:GITHUB_WORKSPACE}/.craft.shelf"
|
||||
# bootsrtap in case the shelf was empty
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c craft
|
||||
# ccache
|
||||
if (-not $IsWindows) {
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c dev-utils/ccache
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run "ccache -M500MB"
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run "ccache -s"
|
||||
}
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
New-Item -ItemType Directory "${env:GITHUB_WORKSPACE}/binaries/"
|
||||
# settings
|
||||
if ("${{ github.ref_type }}" -ne "tag" -or "${{ inputs.releaseChannel }}" -eq "beta" ) {
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set "forceAsserts=true" opencloud/opencloud-desktop
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set "buildBeta=true" opencloud/opencloud-desktop
|
||||
}
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set "srcDir=${env:GITHUB_WORKSPACE}" opencloud/opencloud-desktop
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set "buildNumber=${{ github.run_number }}" opencloud/opencloud-desktop
|
||||
# optional deployment dependencies
|
||||
if ($IsWindows) {
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c dev-utils/nsis
|
||||
} elseif($IsLinux) {
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c dev-utils/linuxdeploy
|
||||
# ensure we have fuse3-devel installed
|
||||
dnf install -y fuse3-devel
|
||||
}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --install-deps opencloud/opencloud-desktop
|
||||
|
||||
- name: QML format lint
|
||||
if: matrix.target == 'linux-gcc-x86_64'
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/qt6/qttools
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh -c "git ls-files "*.qml" "*.js" "*.mjs" | %{ qmlformat -i `$_}"
|
||||
$diff = git diff
|
||||
if ($diff) {
|
||||
$diff
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: clang-format format lint
|
||||
if: matrix.target == 'linux-gcc-x86_64'
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/llvm
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run git clang-format --force ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|
||||
$diff = git diff
|
||||
if ($diff) {
|
||||
$diff
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Update Shelf
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --shelve "${env:GITHUB_WORKSPACE}/.craft.shelf"
|
||||
Copy-Item "${env:GITHUB_WORKSPACE}/.craft.shelf" "${env:GITHUB_WORKSPACE}/binaries/craft.shelf"
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
if ("${{ matrix.target }}" -eq "macos-64-clang-debug" ) {
|
||||
# https://api.kde.org/ecm/module/ECMEnableSanitizers.html
|
||||
# address;leak;undefined
|
||||
# clang: error: unsupported option '-fsanitize=leak' for target 'x86_64-apple-darwin21.6.0'
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set args="-DECM_ENABLE_SANITIZERS='address;undefined'" opencloud/opencloud-desktop
|
||||
}
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache opencloud/opencloud-desktop
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --test opencloud/opencloud-desktop
|
||||
|
||||
- name: Clang tidy
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/llvm dev-utils/clazy python-modules/pip
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 -m pip install clang-html
|
||||
$env:BUILD_DIR = $(& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --get buildDir -q opencloud/opencloud-desktop)
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh "${env:GITHUB_WORKSPACE}/.github/workflows/.run-clang-tidy.ps1"
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 -m clang_html "$([System.IO.Path]::GetTempPath())/clang-tidy.log" -o "${env:GITHUB_WORKSPACE}/binaries/clang-tidy.html"
|
||||
|
||||
- name: Package
|
||||
if: matrix.target != 'macos-clang-arm64'
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --package opencloud/opencloud-desktop
|
||||
|
||||
- name: Package Appx
|
||||
if: ${{ matrix.os == 'windows-latest' && github.event_name != 'pull_request' }}
|
||||
run: |
|
||||
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --package --options "[Packager]PackageType=AppxPackager" --options "[Packager]Destination=${{ github.workspace }}/appx/" opencloud/opencloud-desktop
|
||||
|
||||
- name: Prepare artifacts
|
||||
run: |
|
||||
Copy-Item "${home}/craft/binaries/*" "${env:GITHUB_WORKSPACE}/binaries/" -ErrorAction SilentlyContinue
|
||||
if ("${{ github.ref_type }}" -eq "tag" ) {
|
||||
Get-ChildItem "${env:GITHUB_WORKSPACE}/binaries/" | ForEach-Object {
|
||||
$newName = $_.Name -replace "opencloud-desktop-HEAD-\d*-", "QSfera_Desktop-${{ github.ref_name }}-"
|
||||
if ($newName -ne $_.Name) {
|
||||
Move-Item -Path $_ -Destination (Join-Path $_.Directory $newName) -Force
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ matrix.target }}-${{ github.run_number }}
|
||||
path: ${{ github.workspace }}/binaries/*
|
||||
|
||||
- name: Upload appx
|
||||
if: ${{ matrix.os == 'windows-latest' && github.event_name != 'pull_request' }}
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ matrix.target }}-appx-${{ github.run_number }}
|
||||
path: ${{ github.workspace }}/appx/*
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
name: "Close stale issues"
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
contents: write # only for delete-branch option
|
||||
issues: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v10
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
debug-only: false
|
||||
exempt-all-milestones: true
|
||||
exempt-issue-labels: "blue-ticket, p1-urgent, p2-high, p3-medium, p4-low, QA:team"
|
||||
days-before-stale: 30
|
||||
stale-issue-message: "This issue was marked stale because it has been open for 30 days with no activity. Remove the stale label or comment or this will be closed in 7 days."
|
||||
days-before-close: 7
|
||||
close-issue-message: "The issue was marked as stale for 7 days and closed automatically."
|
||||
start-date: "2021-01-01T00:00:00Z"
|
||||
close-issue-reason: not_planned
|
||||
# do not close any PRs
|
||||
only-pr-labels: "never-close-any-prs"
|
||||
Reference in New Issue
Block a user