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

Next #3626

Open
wants to merge 217 commits into
base: master
Choose a base branch
from
Open

Next #3626

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
ddf98bd
remove vue.prototype
dartcafe May 31, 2024
23c27d1
move js root dir
dartcafe May 31, 2024
e5fa8c0
remove webpack config
dartcafe May 31, 2024
a64d87c
import UserItem
dartcafe May 31, 2024
722d9cd
fix reference
dartcafe May 31, 2024
30d041f
Merge pull request #3539 from nextcloud/ref/import-nextcloud-l10n-in-…
dartcafe May 31, 2024
d9fe84e
remove vue.prototype
dartcafe May 31, 2024
791e5b1
move js root dir
dartcafe May 31, 2024
581985f
remove webpack config
dartcafe May 31, 2024
e0e7f54
import UserItem
dartcafe May 31, 2024
67d4117
fix reference
dartcafe May 31, 2024
2dff603
Merge branch 'next' of https://github.com/nextcloud/polls into next
dartcafe Jun 2, 2024
6072ab9
create pinia store
dartcafe Jun 2, 2024
0ee3725
migrate dashboard to pinia
dartcafe Jun 2, 2024
b00d797
move stores directory
dartcafe Jun 4, 2024
8dab1ce
fixes and maintanance
dartcafe Jun 8, 2024
7ca14ff
use enum over type
dartcafe Jun 9, 2024
8da97bd
fetch whole poll in one request
dartcafe Jun 9, 2024
fa5cbb8
add participants count
dartcafe Jun 9, 2024
fd7a741
first round
dartcafe Jun 22, 2024
a5a781d
finish pinia migration with some tweaks
dartcafe Jun 23, 2024
5f1a3c0
fix
dartcafe Jun 23, 2024
f73da93
add licence
dartcafe Jun 23, 2024
e3b30d5
Merge pull request #3575 from nextcloud/temp/next/pinia/replace-vuex
dartcafe Jun 23, 2024
ec10e81
reuse header fix
dartcafe Jun 24, 2024
a98a94c
base setup
dartcafe Jun 24, 2024
8e5ff26
use nextcloud-dialogs#vue3
dartcafe Jun 25, 2024
82d345f
migrate dashboard
dartcafe Jun 25, 2024
ce01a30
partially migrate userSettings
dartcafe Jun 26, 2024
0d65c69
cs-fix
dartcafe Jun 30, 2024
1c8bcfb
Revert "cs-fix"
dartcafe Jun 30, 2024
623234b
allow cron user to see more user details (#3595)
dartcafe Jun 30, 2024
e39e928
Fix: sidebar archive poll
hamza221 Jun 13, 2024
32b495a
Merge pull request #3597 from nextcloud/backport/3565/next
dartcafe Jun 30, 2024
53b8ef1
base setup
dartcafe Jun 24, 2024
28938e0
use nextcloud-dialogs#vue3
dartcafe Jun 25, 2024
b58f5d0
migrate dashboard
dartcafe Jun 25, 2024
344b8d7
partially migrate userSettings
dartcafe Jun 26, 2024
772b0aa
Merge branch 'dep/next/vue3' of https://github.com/nextcloud/polls in…
dartcafe Jun 30, 2024
e6e6157
update deps
dartcafe Jun 30, 2024
329c62e
migrate inputDiv
dartcafe Jul 4, 2024
f9c0a36
finish user settings
dartcafe Jul 4, 2024
a5a489b
migrate RadioGroupDiv
dartcafe Jul 5, 2024
d9ff3f1
migrate AdminSettings
dartcafe Jul 5, 2024
5f885f6
use v-model instead of .sync
dartcafe Jul 9, 2024
9b143af
migrate rest of base components
dartcafe Jul 10, 2024
5e16983
fix: Display circle share activities correctly
hamza221 Jul 5, 2024
6411d22
Merge pull request #3609 from nextcloud/backport/3602/next
dartcafe Jul 11, 2024
38b7d63
migrate router and start migrating main app
dartcafe Jul 13, 2024
b046ef8
update config for ts and eslint
dartcafe Jul 14, 2024
13d7ea5
some progress
dartcafe Jul 14, 2024
54b97c2
fix: Catch exceptions thrown by NotificationMail constructor
come-nc Jul 11, 2024
7afcca0
Update MailService.php
dartcafe Jul 15, 2024
3af3753
following linter messages
dartcafe Jul 15, 2024
532e854
Merge branch 'next' into dep/next/vue3
dartcafe Jul 15, 2024
97d4507
quick fix
dartcafe Jul 15, 2024
33bd6ee
Merge pull request #3613 from nextcloud/backport/3608/next
dartcafe Jul 15, 2024
5a09430
fixes
dartcafe Jul 17, 2024
dc94671
chore: Migrate REUSE to toml format
AndyScherzinger Jul 16, 2024
41b7b11
chore: update workflows from templates
skjnldsv Jul 13, 2024
fd9678a
migration to vue3 and composition API
dartcafe Jul 20, 2024
00ea026
choose type over interface and move definition
dartcafe Jul 20, 2024
d0205b9
Merge pull request #3618 from nextcloud/backport/3610/next
dartcafe Jul 21, 2024
40aa5f0
fine tuning and maintenance
dartcafe Jul 21, 2024
d82cfc4
updates
dartcafe Jul 21, 2024
d8bac6e
fixes
dartcafe Jul 21, 2024
9d89519
Replace Vue.Draggable with sortablejs-vue3
dartcafe Jul 21, 2024
6081ff5
more fixes
dartcafe Jul 22, 2024
50391ee
fix session retrievement
dartcafe Jul 26, 2024
9187a9c
fix comments
dartcafe Jul 26, 2024
acaa269
some more fixes and optmizations
dartcafe Jul 31, 2024
2612066
add Nextcloud 30
dartcafe Jul 31, 2024
838e89e
Merge pull request #3588 from nextcloud/dep/next/vue3
dartcafe Jul 31, 2024
71e1722
add alpha release action
dartcafe Aug 1, 2024
7cbf205
8.0.0-alpha2
dartcafe Aug 1, 2024
7dfa64d
fix caption
dartcafe Aug 1, 2024
d9527e5
fix icon size in avatar (hack)
dartcafe Aug 1, 2024
c3df2c6
fix user search
dartcafe Aug 1, 2024
c98415b
fix intersectionObserver in polls list
dartcafe Aug 2, 2024
2d64079
fix vote table scrolling
dartcafe Aug 4, 2024
d523fe1
dependency update
dartcafe Aug 4, 2024
22cb226
add type to dateUnits and remove obsolete mixin
dartcafe Aug 4, 2024
48958f7
some tidy
dartcafe Aug 4, 2024
e45bd29
get the public poll working
dartcafe Aug 5, 2024
6ee7a0c
minor visual fix via hack
dartcafe Aug 5, 2024
39e9f1a
update dependences
dartcafe Aug 8, 2024
c6196e2
revome obsolete imports
dartcafe Aug 8, 2024
be32096
more fixes
dartcafe Aug 8, 2024
73a1037
lint
dartcafe Aug 8, 2024
1cf0742
fix sidebar
dartcafe Aug 9, 2024
9191f37
fix tag for TransitionGroup
dartcafe Aug 10, 2024
0dbd960
fix presentation of date options list
dartcafe Aug 10, 2024
18c1346
fix adding option and correct list ordering
dartcafe Aug 11, 2024
0b498a5
fix and add transitions
dartcafe Aug 11, 2024
c76efb8
remove change event when adding text options
dartcafe Aug 11, 2024
f52713a
fix REUSE
dartcafe Aug 11, 2024
eca6374
fix
dartcafe Aug 11, 2024
46db3fb
oops
dartcafe Aug 11, 2024
2214f5c
Merge pull request #3632 from nextcloud/fix/next/fixes
dartcafe Aug 11, 2024
f0c3f4a
8.0.0-alpha3
dartcafe Aug 11, 2024
07b95ff
fix option owner
dartcafe Aug 11, 2024
3159fcc
update Changelog
dartcafe Aug 11, 2024
8b832ea
fix combo view
dartcafe Aug 12, 2024
da66169
fix delete Proposal
dartcafe Aug 13, 2024
136b7ba
tidy
dartcafe Aug 13, 2024
97438a2
migrate subscription store to setup and fix subscription
dartcafe Aug 13, 2024
8054e99
remove unused import
dartcafe Aug 14, 2024
ba46acc
ci: Add release automation workflow
ChristophWurst Aug 9, 2024
b1928bb
Merge pull request #3655 from nextcloud/backport/3642/next
ChristophWurst Aug 20, 2024
794a029
fix(ci): artifact path in release automation
hamza221 Aug 22, 2024
f0456ac
fix: build process
miaulalala Aug 22, 2024
9fdff45
Merge pull request #3668 from nextcloud/backport/3664/next
kesselb Aug 22, 2024
af1b1d9
Merge pull request #3669 from nextcloud/backport/3666/next
kesselb Aug 22, 2024
e4605c4
Merge pull request #3644 from nextcloud/fix/next/fixes-2
dartcafe Aug 23, 2024
3139b7d
avoid 409 error by same vote answer as already stored
dartcafe Aug 31, 2024
25f47f5
load poll configurration after 409 error
dartcafe Aug 31, 2024
ee01cd8
consolidate requests upon voting
dartcafe Aug 31, 2024
c5e6560
Merge pull request #3680 from nextcloud/backport/3676/next
dartcafe Aug 31, 2024
cc2dc20
audit fix
dartcafe Aug 31, 2024
ca37d61
update outdated js dependencies
dartcafe Aug 31, 2024
1afb743
update composer dependencies
dartcafe Aug 31, 2024
df84ac4
cs fix following new style guid rules
dartcafe Aug 31, 2024
5754fef
Merge pull request #3681 from nextcloud/dep/next/updates
dartcafe Aug 31, 2024
15f8350
8.0.0-alpha4
dartcafe Aug 31, 2024
1af13fb
backport #3677
dartcafe Sep 2, 2024
271b5d6
Merge pull request #3686 from nextcloud/backport/3677/next
dartcafe Sep 2, 2024
6b41365
remove index removals
dartcafe Sep 5, 2024
823d8cb
Add a warning to the rebuild command
dartcafe Sep 5, 2024
6590b5f
changelog
dartcafe Sep 5, 2024
8f5c8b1
I hate my own typos
dartcafe Sep 6, 2024
ca08aaa
cs-fix
dartcafe Sep 6, 2024
d355b09
Merge pull request #3697 from nextcloud/backport/3694/next
dartcafe Sep 7, 2024
88f81a6
Added not
dartcafe Sep 8, 2024
071af83
removed note
dartcafe Sep 8, 2024
819bd86
some dep updates
dartcafe Sep 20, 2024
f7ab8c0
prefer union types over ? for nullable parameter type declarations
dartcafe Sep 20, 2024
4ed5e66
convert email and contact share on first access
dartcafe Sep 21, 2024
53463bf
fix
dartcafe Sep 21, 2024
d7135d1
@%§$
dartcafe Sep 21, 2024
f4568ad
Merge pull request #3721 from nextcloud/backport/3716/next
dartcafe Sep 24, 2024
63ed091
fix aftermath of #3716
dartcafe Sep 24, 2024
5f68106
typo/fix
dartcafe Sep 24, 2024
1462f6a
cs-fix
dartcafe Sep 24, 2024
6a46f53
Merge pull request #3723 from nextcloud/backport/3722/next
dartcafe Sep 24, 2024
b700462
update action
dartcafe Sep 25, 2024
93a95d0
hmm
dartcafe Sep 26, 2024
21d3de4
8.0.0-alpha5
dartcafe Sep 26, 2024
6135ebf
fix vote limit for public users
dartcafe Sep 24, 2024
c639e34
manual backport of #3714
dartcafe Sep 26, 2024
f619306
Merge pull request #3726 from nextcloud/backport/3720/next
dartcafe Sep 26, 2024
793f129
manual backport of #3708
dartcafe Sep 26, 2024
4586610
Merge pull request #3728 from nextcloud/backport/3714/next
dartcafe Sep 26, 2024
41d8a05
Merge pull request #3729 from nextcloud/backport/3708/next
dartcafe Sep 26, 2024
ec89370
manually dep update
dartcafe Sep 27, 2024
9f5d256
fix type error
dartcafe Sep 27, 2024
06cceee
npm update
dartcafe Sep 27, 2024
21c8d29
suppress warnings from sass about deprecated legacy JS API
dartcafe Sep 27, 2024
35bb6ae
fix build for linux and remove unimportable type
dartcafe Sep 28, 2024
81aade8
rename alpha publishing workflow
dartcafe Sep 28, 2024
2676031
Merge pull request #3715 from nextcloud/maintenance/next
dartcafe Sep 28, 2024
d174a4b
cs:fix in preparation of updated coding standard
dartcafe Sep 28, 2024
a2f2ecc
add discussion node with forum URL
dartcafe Sep 29, 2024
f592586
use more contexts
dartcafe Sep 30, 2024
6ac0919
Merge pull request #3735 from nextcloud/backport/3734/next
dartcafe Sep 30, 2024
6a94a35
update make and sync files list
dartcafe Oct 1, 2024
f3d55ce
add licence
dartcafe Oct 1, 2024
dab782b
Merge pull request #3738 from nextcloud/backport/3737/next
dartcafe Oct 1, 2024
39eb3da
remove warning causes
dartcafe Oct 1, 2024
88c268a
update composer deps
dartcafe Oct 2, 2024
b92ab78
Merge pull request #3739 from nextcloud/fix/misc
dartcafe Oct 2, 2024
d695045
Merge pull request #3740 from nextcloud/dep/update/next
dartcafe Oct 2, 2024
69dfe49
repplace shareStore by sessionStore.share
dartcafe Oct 3, 2024
1e23227
seperate ShareType from UserType and use user props from user
dartcafe Oct 3, 2024
7d25684
use user.id instead of userId
dartcafe Oct 7, 2024
bab0d07
deps update
dartcafe Oct 7, 2024
3e5705d
switch to individual imports for @nextcloud/vue
dartcafe Oct 7, 2024
26f578d
sorting imports
dartcafe Oct 7, 2024
57e128b
fix safeTable
dartcafe Oct 7, 2024
552cd76
Merge pull request #3741 from nextcloud/refactor/misc/next
dartcafe Oct 7, 2024
878e35b
shorten column names
dartcafe Oct 7, 2024
eaeccc6
Merge pull request #3742 from nextcloud/fix/column-length
dartcafe Oct 7, 2024
34817c3
fixing some aftermath
dartcafe Oct 8, 2024
daac852
tidy
dartcafe Oct 8, 2024
d1458da
fix again
dartcafe Oct 8, 2024
0d017cd
argh
dartcafe Oct 8, 2024
3855acc
Merge pull request #3744 from nextcloud/fix/user/next
dartcafe Oct 8, 2024
f886877
8.0.0-alpha6
dartcafe Oct 8, 2024
4d7525f
switch routes to attributes
dartcafe Oct 9, 2024
fbb379b
migrate REST API to OCS
dartcafe Oct 9, 2024
e7034b2
preparation for OpenAPI
dartcafe Oct 9, 2024
7293e65
cs-fix
dartcafe Oct 9, 2024
dc20d9d
help actions
dartcafe Oct 9, 2024
3693dfc
suppress error
dartcafe Oct 9, 2024
b0d0a07
Merge pull request #3745 from nextcloud/enh/openapi/next
dartcafe Oct 9, 2024
8ed892d
bring back admin page
dartcafe Oct 9, 2024
b046544
Merge pull request #3746 from nextcloud/fix/admin-page/next
dartcafe Oct 9, 2024
cd37ea7
use IAppConfig
dartcafe Oct 9, 2024
c1f6895
monk mode: removed some psalm infos
dartcafe Oct 9, 2024
872cf60
licence
dartcafe Oct 9, 2024
8586c77
Merge pull request #3747 from nextcloud/enh/deprecations/next
dartcafe Oct 9, 2024
c08482d
more fixes and optimizations after tests
dartcafe Oct 10, 2024
384e223
fix doc block
dartcafe Oct 10, 2024
869f48d
fix and lint
dartcafe Oct 10, 2024
c5db5c6
Merge pull request #3748 from nextcloud/fix/fixes/next
dartcafe Oct 10, 2024
584c362
8.0.0-alpha7
dartcafe Oct 10, 2024
a0db2c3
fix navigation route
dartcafe Oct 12, 2024
7a35497
8.0.0-alpha8
dartcafe Oct 12, 2024
6061253
fix additional routes
dartcafe Oct 13, 2024
33afbda
Merge pull request #3749 from nextcloud/fix/routes/next
dartcafe Oct 13, 2024
f494dce
put performance hint into info card
dartcafe Oct 14, 2024
5e437a2
Merge pull request #3750 from nextcloud/enh/hint-to-card/next
dartcafe Oct 15, 2024
7f881ef
update versions
dartcafe Nov 3, 2024
e7bbd28
testing composer with -W
dartcafe Nov 3, 2024
4ee4ecd
fix
dartcafe Nov 3, 2024
d35e1bd
next try
dartcafe Nov 3, 2024
884545d
another test
dartcafe Nov 3, 2024
b60391b
Merge pull request #3766 from nextcloud/backport/3765/next
dartcafe Nov 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,31 @@
*/
module.exports = {
extends: [
'@nextcloud',
'@nextcloud/eslint-config/vue3',
'prettier',
],
plugins: [
'promise',
],
rules: {
'arrow-body-style': 'error',
"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/no-v-model-argument': 'off',
'vue/no-unused-properties': ['error', {
groups: ['props', 'data', 'computed', 'methods'],
deepData: true,
Expand Down
4 changes: 0 additions & 4 deletions .github/BETA_NOTIFICATION.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<!--
- SPDX-FileCopyrightText: 2023 Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
---
title: Polls {{ env.VERSION }} released ({{ date | date('YYYY-MM-DD') }})
labels: Announcement
Expand Down
2 changes: 2 additions & 0 deletions .github/BETA_NOTIFICATION.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2023 Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ body:
description: |
Which Nextcloud Server version are you running.
options:
- "Nextcloud 25"
- "Nextcloud 26"
- "Nextcloud 27"
- "Nextcloud 28"
- "Nextcloud 29"
- "Nextcloud 30"
- "Nextcloud 31"
- "Other/Don't know"
validations:
required: true
Expand Down Expand Up @@ -184,7 +184,7 @@ body:
attributes:
label: Other PHP version
description: Add your _other_ PHP versoin
placeholder: i.e. PHP 7.4
placeholder: i.e. PHP 8.3

- type: dropdown
id: server-database
Expand Down
4 changes: 0 additions & 4 deletions .github/RELEASE_NOTIFICATION.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<!--
- SPDX-FileCopyrightText: 2023 Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
---
title: Polls {{ env.VERSION }} released ({{ date | date('YYYY-MM-DD') }})
labels: Announcement
Expand Down
2 changes: 2 additions & 0 deletions .github/RELEASE_NOTIFICATION.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2023 Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
2 changes: 1 addition & 1 deletion .github/actions/get-polls-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
steps:
- name: Get app version from appinfo/info.xml
id: appinfo
uses: mavrosxristoforos/get-xml-info@1.1.1
uses: mavrosxristoforos/get-xml-info@2.0
with:
xml-file: 'appinfo/info.xml'
xpath: '//info//version'
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 @@ -3,9 +3,9 @@
name: Setup composer and PHP
inputs:
php-version:
description: 'PHP version (default: 8.0)'
description: 'PHP version (default: 8.2)'
required: false
default: '8.0'
default: '8.2'
php-tools:
description: 'Additional php tools'
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ inputs:
description: 'App to checkout (default: polls)'
php-version:
required: false
default: '8.0'
description: 'PHP version (default: 8.0)'
default: '8.2'
description: 'PHP version (default: 8.2)'
php-tools:
description: 'Additional php tools'
required: false
Expand Down
175 changes: 175 additions & 0 deletions .github/workflows/appstore-build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT

name: Build and publish app release

on:
release:
types: [published]

jobs:
build_and_publish:
runs-on: ubuntu-latest

# Only allowed to be run on nextcloud-releases repositories
if: ${{ github.repository_owner == 'nextcloud-releases' }}

steps:
- name: Check actor permission
uses: skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
with:
require: write

- name: Set app env
run: |
# Split and keep last
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
path: ${{ env.APP_NAME }}

- name: Get appinfo data
id: appinfo
uses: skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master
with:
filename: ${{ env.APP_NAME }}/appinfo/info.xml
expression: "//info//dependencies//nextcloud/@min-version"

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
id: versions
# Continue if no package.json
continue-on-error: true
with:
path: ${{ env.APP_NAME }}
fallbackNode: '^20'
fallbackNpm: '^10'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
# Skip if no package.json
if: ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'

- name: Get php version
id: php-versions
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
with:
filename: ${{ env.APP_NAME }}/appinfo/info.xml

- name: Set up php ${{ steps.php-versions.outputs.php-min }}
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
php-version: ${{ steps.php-versions.outputs.php-min }}
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check composer.json
id: check_composer
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: "${{ env.APP_NAME }}/composer.json"

- name: Install composer dependencies
if: steps.check_composer.outputs.files_exists == 'true'
run: |
cd ${{ env.APP_NAME }}
composer install --no-dev

- name: Build ${{ env.APP_NAME }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
env:
CYPRESS_INSTALL_BINARY: 0
run: |
cd ${{ env.APP_NAME }}
npm ci
npm run build --if-present

- name: Check Krankerl config
id: krankerl
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: ${{ env.APP_NAME }}/krankerl.toml

- name: Install Krankerl
if: steps.krankerl.outputs.files_exists == 'true'
run: |
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.14.0/krankerl_0.14.0_amd64.deb
sudo dpkg -i krankerl_0.14.0_amd64.deb

- name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with krankerl
if: steps.krankerl.outputs.files_exists == 'true'
run: |
cd ${{ env.APP_NAME }}
krankerl package

- name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with makefile
if: steps.krankerl.outputs.files_exists != 'true'
run: |
cd ${{ env.APP_NAME }}
make appstore

- name: Checkout server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
continue-on-error: true
id: server-checkout
run: |
NCVERSION='${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}'
wget --quiet https://download.nextcloud.com/server/releases/latest-$NCVERSION.zip
unzip latest-$NCVERSION.zip

- name: Checkout server master fallback
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
if: ${{ steps.server-checkout.outcome != 'success' }}
with:
submodules: true
repository: nextcloud/server
path: nextcloud

- name: Sign app
run: |
# Extracting release
cd ${{ env.APP_NAME }}/build/artifacts/appstore
tar -xvf ${{ env.APP_NAME }}.tar.gz
cd ../../../../
# Setting up keys
echo '${{ secrets.APP_PRIVATE_KEY }}' > ${{ env.APP_NAME }}.key
wget --quiet "https://github.com/nextcloud/app-certificate-requests/raw/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt"
# Signing
php nextcloud/occ integrity:sign-app --privateKey=../${{ env.APP_NAME }}.key --certificate=../${{ env.APP_NAME }}.crt --path=../${{ env.APP_NAME }}/build/artifacts/appstore/${{ env.APP_NAME }}
# Rebuilding archive
cd ${{ env.APP_NAME }}/build/artifacts/appstore
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}

- name: Attach tarball to github release
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
id: attach_to_release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.APP_NAME }}/build/artifacts/appstore/${{ env.APP_NAME }}.tar.gz
asset_name: ${{ env.APP_NAME }}-${{ env.APP_VERSION }}.tar.gz
tag: ${{ github.ref }}
overwrite: true

- name: Upload app to Nextcloud appstore
uses: nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1
with:
app_name: ${{ env.APP_NAME }}
appstore_token: ${{ secrets.APPSTORE_TOKEN }}
download_url: ${{ steps.attach_to_release.outputs.browser_download_url }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
feedback-message: |
Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Publish alpha

on:
push:
tags:
- v*-alpha*

jobs:
checkout:
runs-on: ubuntu-latest
name: Alpha release
steps:
- uses: actions/checkout@v4
- name: Check correct app version
id: appinfo
uses: ./.github/actions/get-polls-version

- name: Setup node
if: success()
uses: ./.github/actions/setup-node

- name: Setup composer and PHP
if: success()
uses: ./.github/actions/setup-composer
with:
mode: production
php-tools: composer

- name: build
run: npm run dev --if-present

- name: Make appstore package ${{ steps.appinfo.outputs.app-version }}
if: success()
run: make package

- name: rename packages to polls-${{ steps.appinfo.outputs.app-version }}
if: success()
run: mv build/artifacts/appstore/polls.tar.gz build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.tar.gz

- name: create zip archive from sources
if: success()
run: |
pushd build/source
zip -r ../artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.zip *
popd

- name: Extract release notes
if: success()
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1

- name: Publish pre-release ${{ steps.appinfo.outputs.app-version }}
if: success()
uses: softprops/action-gh-release@v1
with:
body: "# Changelog for the upcomming release (preview)\n ${{ steps.extract-release-notes.outputs.release_notes }} "
prerelease: true
draft: false
generate_release_notes: true
files: |
build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.tar.gz
build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.zip
8 changes: 5 additions & 3 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@

name: REUSE Compliance Check

on: pull_request
on: [pull_request]

jobs:
reuse-compliance-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: REUSE Compliance Check
uses: fsfe/reuse-action@a46482ca367aef4454a87620aa37c2be4b2f8106 # v3.0.0
uses: fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0
6 changes: 3 additions & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ocp-version: ['master']
ocp-version: ['stable29']
php-versions: ['8.1', '8.2', '8.3']

name: Psalm
Expand All @@ -30,10 +30,10 @@ jobs:
php-tools: composer

- name: Install Nextcloud API
run: composer require --dev nextcloud/ocp:dev-${{ matrix.ocp-version }}
run: composer require --dev -W nextcloud/ocp:dev-${{ matrix.ocp-version }}

- name: Install symfony/console
run: composer require symfony/console
run: composer require -W symfony/console

- name: Run coding standards check
run: composer run psalm
Loading