Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_retention.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-10-02 11:49:16 +0300
committerGitHub <noreply@github.com>2022-10-02 11:49:16 +0300
commitf3847868ad145ab27e428ddeb38b0e47de2f3989 (patch)
treeff118e10c67e2ff65ceae7cfe1c310ee33fba492
parentddd68e07a18d2bcf0fc868a5e7d206c8dd48233e (diff)
parent5ab38d815aa7155ea41ef07d673339b388b2e7b2 (diff)
Merge pull request #206 from nextcloud/migrate-stable23-christophwurst-package
Migrate to nextcloud/OCP package in stable23
-rw-r--r--.github/workflows/psalm.yml35
-rw-r--r--.github/workflows/static-analysis.yml26
-rw-r--r--.github/workflows/update-nextcloud-ocp.yml65
-rw-r--r--composer.json4
-rw-r--r--composer.lock89
5 files changed, 146 insertions, 73 deletions
diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml
new file mode 100644
index 0000000..27091d5
--- /dev/null
+++ b/.github/workflows/psalm.yml
@@ -0,0 +1,35 @@
+# 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
+
+name: Static analysis
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - main
+ - stable*
+
+jobs:
+ static-analysis:
+ runs-on: ubuntu-latest
+
+ name: Nextcloud
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Set up php
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: 7.4
+ coverage: none
+
+ - name: Install dependencies
+ run: composer i
+
+ - name: Run coding standards check
+ run: composer run psalm
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml
deleted file mode 100644
index 88cd669..0000000
--- a/.github/workflows/static-analysis.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Static analysis
-
-on: [pull_request]
-
-jobs:
- static-psalm-analysis:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- ocp-version: [ 'dev-stable23' ]
- name: Nextcloud ${{ matrix.ocp-version }}
- steps:
- - name: Checkout
- uses: actions/checkout@master
- - name: Set up php
- uses: shivammathur/setup-php@master
- with:
- php-version: 7.4
- tools: composer:v1
- coverage: none
- - name: Install dependencies
- run: composer i
- - name: Install dependencies
- run: composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }}
- - name: Run coding standards check
- run: composer run psalm
diff --git a/.github/workflows/update-nextcloud-ocp.yml b/.github/workflows/update-nextcloud-ocp.yml
new file mode 100644
index 0000000..cabfc6f
--- /dev/null
+++ b/.github/workflows/update-nextcloud-ocp.yml
@@ -0,0 +1,65 @@
+# 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
+
+name: Update nextcloud/ocp
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: "5 2 * * 0"
+
+jobs:
+ update-nextcloud-ocp:
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ branches: ["master", "stable25", "stable24", "stable23"]
+
+ name: update-nextcloud-ocp-${{ matrix.branches }}
+
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ ref: ${{ matrix.branches }}
+ submodules: true
+
+ - name: Set up php7.4
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: 7.4
+ extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
+ coverage: none
+
+ - name: Composer install
+ run: composer install
+
+ - name: Composer update nextcloud/ocp
+ run: composer require --dev nextcloud/ocp:dev-${{ matrix.branches }}
+ continue-on-error: true
+
+ - name: Reset checkout dirs
+ run: |
+ git clean -f 3rdparty
+ git clean -f vendor
+ git checkout 3rdparty vendor
+ continue-on-error: true
+
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
+ with:
+ token: ${{ secrets.COMMAND_BOT_PAT }}
+ commit-message: Update psalm baseline
+ committer: GitHub <noreply@github.com>
+ author: nextcloud-command <nextcloud-command@users.noreply.github.com>
+ signoff: true
+ branch: automated/noid/${{ matrix.branches }}-update-nextcloud-ocp
+ title: "[${{ matrix.branches }}] Update nextcloud/ocp dependency"
+ body: |
+ Auto-generated update of [nextcloud/ocp](https://github.com/nextcloud-deps/ocp/) dependency
+ labels: |
+ dependencies
+ 3. to review
diff --git a/composer.json b/composer.json
index 8e591e5..ed1f536 100644
--- a/composer.json
+++ b/composer.json
@@ -1,7 +1,7 @@
{
"autoload-dev": {
"psr-4": {
- "OCP\\": "vendor/christophwurst/nextcloud/OCP",
+ "OCP\\": "vendor/nextcloud/ocp/OCP",
"OCA\\Notifications\\": "lib/"
}
},
@@ -12,7 +12,7 @@
"phpunit/phpunit": "^9.5",
"nextcloud/coding-standard": "^0.5.0",
"vimeo/psalm": "^4.3.2",
- "christophwurst/nextcloud": "dev-stable23"
+ "nextcloud/ocp": "dev-stable23"
},
"config": {
"optimize-autoloader": true,
diff --git a/composer.lock b/composer.lock
index f15a527..8321080 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "889f1f38bf44b016c5b10d63a01b5bc0",
+ "content-hash": "aa87ccc5e6032da287462cb097d6ad93",
"packages": [],
"packages-dev": [
{
@@ -158,49 +158,6 @@
"time": "2020-06-29T18:35:05+00:00"
},
{
- "name": "christophwurst/nextcloud",
- "version": "dev-stable23",
- "source": {
- "type": "git",
- "url": "https://github.com/ChristophWurst/nextcloud_composer.git",
- "reference": "3725f37085a0de42135df9aad3939f7a137205c2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ChristophWurst/nextcloud_composer/zipball/3725f37085a0de42135df9aad3939f7a137205c2",
- "reference": "3725f37085a0de42135df9aad3939f7a137205c2",
- "shasum": ""
- },
- "require": {
- "php": "^7.3 || ~8.0.0",
- "psr/container": "^1.1.1",
- "psr/event-dispatcher": "^1.0",
- "psr/log": "^1.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "23.0.0-dev"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "AGPL-3.0-or-later"
- ],
- "authors": [
- {
- "name": "Christoph Wurst",
- "email": "christoph@winzerhof-wurst.at"
- }
- ],
- "description": "Composer package containing Nextcloud's public API (classes, interfaces)",
- "support": {
- "issues": "https://github.com/ChristophWurst/nextcloud_composer/issues",
- "source": "https://github.com/ChristophWurst/nextcloud_composer/tree/stable23"
- },
- "time": "2022-06-02T14:13:38+00:00"
- },
- {
"name": "composer/package-versions-deprecated",
"version": "1.11.99.1",
"source": {
@@ -983,6 +940,48 @@
"time": "2021-01-11T14:15:58+00:00"
},
{
+ "name": "nextcloud/ocp",
+ "version": "dev-stable23",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nextcloud-deps/ocp.git",
+ "reference": "f9c2024f8c87a4dc51c17e3eaf3ee267cfe66e12"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/f9c2024f8c87a4dc51c17e3eaf3ee267cfe66e12",
+ "reference": "f9c2024f8c87a4dc51c17e3eaf3ee267cfe66e12",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ~8.0.0",
+ "psr/container": "^1.1.1",
+ "psr/event-dispatcher": "^1.0",
+ "psr/log": "^1.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "23.0.0-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "AGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Christoph Wurst",
+ "email": "christoph@winzerhof-wurst.at"
+ }
+ ],
+ "description": "Composer package containing Nextcloud's public API (classes, interfaces)",
+ "support": {
+ "source": "https://github.com/nextcloud-deps/ocp/tree/stable23"
+ },
+ "time": "2022-09-27T08:15:32+00:00"
+ },
+ {
"name": "nikic/php-parser",
"version": "v4.10.4",
"source": {
@@ -4628,7 +4627,7 @@
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
- "christophwurst/nextcloud": 20
+ "nextcloud/ocp": 20
},
"prefer-stable": false,
"prefer-lowest": false,