Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/workflows #3924

Merged
merged 12 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,37 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
module.exports = {
extends: [
'@nextcloud/eslint-config/vue3',
'prettier',
],
plugins: [
'promise',
],
extends: ['@nextcloud/eslint-config/vue3', 'prettier'],
plugins: ['promise'],
rules: {
'arrow-body-style': 'error',
"jsdoc/require-jsdoc": ["error" | "warn", {
"publicOnly": {
"ancestorsOnly": true,
'jsdoc/require-jsdoc': [
'error' | 'warn',
{
publicOnly: {
ancestorsOnly: true,
},
},
}],
],
'no-array-constructor': 'error',
'no-continue': 'error',
'no-else-return': ['error', { allowElseIf: false }],
'no-lonely-if': 'error',
'no-negated-condition': 'error',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'prefer-template': 'error',
'vue/script-indent': ['error', 'tab', {
baseIndent: 1,
switchCase: 1,
}],
'vue/first-attribute-linebreak': [
'error',
{ multiline: 'below', singleline: 'ignore' },
],
'vue/no-v-model-argument': 'off',
'vue/no-unused-properties': ['error', {
groups: ['props', 'data', 'computed', 'methods'],
deepData: true,
ignorePublicMembers: true,
}],
'vue/no-unused-properties': [
'error',
{
groups: ['props', 'data', 'computed', 'methods'],
deepData: true,
ignorePublicMembers: true,
},
],
},
}
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/ANNOUNCEMENT.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Announcement"
description: "Used for announcements"
labels: ["announcement"]
name: 'Announcement'
description: 'Used for announcements'
labels: ['announcement']

body:
- type: textarea
Expand Down
68 changes: 34 additions & 34 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Bug report: Nextcloud Polls"
description: "Submit a report and help us improve Polls"
labels: ["bug"]
name: 'Bug report: Nextcloud Polls'
description: 'Submit a report and help us improve Polls'
labels: ['bug']

body:
- type: markdown
Expand All @@ -11,7 +11,7 @@ body:
- type: checkboxes
id: before-posting
attributes:
label: "⚠️ This issue respects the following points: ⚠️"
label: '⚠️ This issue respects the following points: ⚠️'
description: All conditions are **required**. Your issue can be closed if these are checked incorrectly.
options:
- label: This is a **bug**, not a question or a configuration/webserver/proxy issue.
Expand Down Expand Up @@ -71,9 +71,9 @@ body:
description: |
How did you install the Polls version, you are referring to, especially when experiencing update errors
options:
- "Installed/updated from the appstore (Apps section of your site)"
- "Installed/updated using occ"
- "Installed/updated via extracting downloaded package to the apps folder"
- 'Installed/updated from the appstore (Apps section of your site)'
- 'Installed/updated using occ'
- 'Installed/updated via extracting downloaded package to the apps folder'
validations:
required: true
- type: dropdown
Expand All @@ -83,10 +83,10 @@ body:
description: |
Was it an update or a first time installation
options:
- "First time installation"
- "Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)"
- "Updated from previous major version (i.e. 3.x.x to 4.x.x)"
- "Updated from a much older version (more than one major version)"
- 'First time installation'
- 'Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)'
- 'Updated from previous major version (i.e. 3.x.x to 4.x.x)'
- 'Updated from a much older version (more than one major version)'
validations:
required: true
- type: input
Expand All @@ -111,11 +111,11 @@ body:
description: |
Select **all** browsers you used, where the bug appeared.
options:
- label: "Firefox"
- label: "Chrome"
- label: "Chromium/Chromium based (i.e. Edge)"
- label: "Safari"
- label: "Other/Don't know"
- label: 'Firefox'
- label: 'Chrome'
- label: 'Chromium/Chromium based (i.e. Edge)'
- label: 'Safari'
- label: "Other/Don't know"
- type: input
id: client-browser-other
attributes:
Expand Down Expand Up @@ -151,11 +151,11 @@ body:
description: |
Which Nextcloud Server version are you running.
options:
- "Nextcloud 27"
- "Nextcloud 28"
- "Nextcloud 29"
- "Nextcloud 30"
- "Nextcloud 31"
- 'Nextcloud 27'
- 'Nextcloud 28'
- 'Nextcloud 29'
- 'Nextcloud 30'
- 'Nextcloud 31'
- "Other/Don't know"
validations:
required: true
Expand All @@ -172,10 +172,10 @@ body:
description: |
Select PHP engine version serving Nextcloud Server.
options:
- "PHP 8.0"
- "PHP 8.1"
- "PHP 8.2"
- "PHP 8.3"
- 'PHP 8.0'
- 'PHP 8.1'
- 'PHP 8.2'
- 'PHP 8.3'
- "Other/Don't know"
validations:
required: true
Expand All @@ -193,11 +193,11 @@ body:
description: |
Select Database engine serving Nextcloud Server.
options:
- "MySQL"
- "MariaDB"
- "PostgreSQL"
- "SQlite"
- "Oracle"
- 'MySQL'
- 'MariaDB'
- 'PostgreSQL'
- 'SQlite'
- 'Oracle'
- "Other/Don't know"
validations:
required: true
Expand All @@ -216,10 +216,10 @@ body:
Select **all** user-backends Enabled on your Nextcloud Server.
_Describe in the "Additional info" section if you chose "Other"._
options:
- label: "Default user-backend _(database)_"
- label: "LDAP/ Active Directory"
- label: "SSO - SAML"
- label: "Other/Don't know"
- label: 'Default user-backend _(database)_'
- label: 'LDAP/ Active Directory'
- label: 'SSO - SAML'
- label: "Other/Don't know"

- type: textarea
id: server-nextcloud-log
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Feature request: Nextcloud Polls"
description: "Suggest your idea for the improvement of Polls"
labels: ["enhancement"]
name: 'Feature request: Nextcloud Polls'
description: 'Suggest your idea for the improvement of Polls'
labels: ['enhancement']

body:
- type: markdown
Expand All @@ -11,7 +11,7 @@ body:
- type: checkboxes
id: before-posting
attributes:
label: "⚠️ This issue respects the following points: ⚠️"
label: '⚠️ This issue respects the following points: ⚠️'
description: All conditions are **required**. Your issue can be closed if these are checked incorrectly.
options:
- label: I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
Expand All @@ -35,6 +35,6 @@ body:
- type: textarea
id: additional-context
attributes:
label: Additional context
label: Additional context
description: |
Add a screenshot or a mockup for your UI suggestion or add more context to understand the reason, why you think this is a valuable request.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: ❓ Polls Community Support and Help
url: https://help.nextcloud.com/c/apps/polls/94
about: Configuration or usage questions regarding Polls
blank_issues_enabled: false
contact_links:
- name: ❓ Polls Community Support and Help
url: https://help.nextcloud.com/c/apps/polls/94
about: Configuration or usage questions regarding Polls
10 changes: 5 additions & 5 deletions .github/actions/get-polls-version/action.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Read polls version from info.xml
inputs:
inputs:
skip-check:
description: Do not check tag against version
required: false
type: boolean
type: boolean
default: false

outputs:
app-version:
app-version:
description: 'Version string from app'
value: ${{ steps.appinfo.outputs.info }}
tag-version:
tag-version:
description: 'Version string from tag'
value: ${{ steps.gettag.outputs.VERSION }}

runs:
using: "composite"
using: 'composite'
steps:
- name: Get app version from appinfo/info.xml
id: appinfo
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup-composer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ inputs:
default: ''

outputs:
cache-hit:
cache-hit:
description: 'Return cache hit'
value: ${{ steps.cache-composer.outputs.cache-hit }}

runs:
using: "composite"
using: 'composite'
steps:
- name: Use or setup caching composer packages (${{ inputs.mode }})
uses: actions/cache@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ inputs:
description: 'Node version to use'

outputs:
cache-hit:
cache-hit:
description: 'Return cache hit'
value: ${{ steps.cache-modules.outputs.cache-hit }}

runs:
using: "composite"
using: 'composite'
steps:
- name: Use or setup caching npm modules
uses: actions/cache@v4
Expand All @@ -36,4 +36,4 @@ runs:
- name: Install dependencies
if: steps.cache-modules.outputs.cache-hit != 'true'
run: npm ci
shell: bash
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/setup-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ inputs:
desrcription: 'Password of the admin user (Default: password)'

runs:
using: "composite"
using: 'composite'
steps:
- name: Checkout server ${{ inputs.server-version }}
uses: actions/checkout@v4
Expand Down
48 changes: 24 additions & 24 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
ignore:
- dependency-name: linkify-urls
versions:
- ">= 3.0.a"
- "< 3.1"
- dependency-name: linkify-urls
versions:
- ">= 3.1.a"
- "< 3.2"
- package-ecosystem: composer
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
time: '03:00'
timezone: Europe/Paris
open-pull-requests-limit: 10
ignore:
- dependency-name: linkify-urls
versions:
- '>= 3.0.a'
- '< 3.1'
- dependency-name: linkify-urls
versions:
- '>= 3.1.a'
- '< 3.2'
- package-ecosystem: composer
directory: '/'
schedule:
interval: weekly
day: saturday
time: '03:00'
timezone: Europe/Paris
open-pull-requests-limit: 10
2 changes: 1 addition & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ changelog:
- performance
- title: Other Changes
labels:
- "*"
- '*'
Loading