UPSTREAM BASELINE: nextcloud/spreed v22.0.12 (без изменений)
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Источник: https://github.com/nextcloud/spreed/archive/refs/tags/v22.0.12.tar.gz С этого коммита ветка официального Nextcloud Talk отрезана (решение владельца 2026-07-06). Все дальнейшие изменения — только наши; версии релизов: 22.0.12-f7.N.
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
# https://editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = tab
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.feature]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[*.svg]
|
||||||
|
insert_final_newline = false
|
||||||
|
|
||||||
|
[package*.json]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# .git-blame-ignore-revs
|
||||||
|
# Update to nextcloud/coding-standard 1.2.3
|
||||||
|
956a1ab00ffb25d87c0f5192333c9b66e56a63fe
|
||||||
|
# Update to nextcloud/eslint-config 9.0.0-rc.1
|
||||||
|
0cefd79e15c25c0be84efdd282db2fd7ed521d7e
|
||||||
|
5aa4668f98528580c445576b865b087d39a6e950
|
||||||
|
dc371de6124686747085e2fc7f68a89bd6eb7791
|
||||||
|
f361c6920b738ff8c6a7356bce141b4c60bd80de
|
||||||
|
4a67c5b7b48160419077413e789683069c15cb2d
|
||||||
|
770e38efe565dfd3a727a4956a823e0b2f17dcf8
|
||||||
|
6ed81e8ba3c767e381e23a70910d862c7ebb4bfc
|
||||||
|
ccfda0f407958c001598a234bbf0fc92ea04228e
|
||||||
|
1b3757bfacfa996d094773fd7e571fcdd53ab85b
|
||||||
|
dcfe2facab60f83e8c9581f785d41ed48c05adcd
|
||||||
|
777ffd9b0168795014552e85b264981c67ff83f2
|
||||||
|
5776a5fe6d5a2839e7313d94c2b743a40a469582
|
||||||
|
b48dfcc48441b0a6f26f2d1e6b3a6ddc262a04ab
|
||||||
|
08799ed75d4539239eddc9b897cba1b3931ebfe0
|
||||||
|
49957ae0af4e9c09ab956f4f0781e0dd48edb76c
|
||||||
|
20d3960b78da17a464a9cb7a120e435771d912b6
|
||||||
|
e0c0f74870124c7ab82da0150fb25e477b1362fb
|
||||||
|
# Update to nextcloud/coding-standard 1.4.0
|
||||||
|
28b85f33a9789a73ba49b4716fcc5ab69d9aa603
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
/js/*.js binary
|
||||||
|
/js/*.js.map binary
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/appinfo/info.xml @nickvergessen
|
||||||
@@ -0,0 +1,107 @@
|
|||||||
|
---
|
||||||
|
name: 🐞 Bug report
|
||||||
|
about: Help us to improve by reporting a bug
|
||||||
|
labels: 0. Needs triage, bug
|
||||||
|
---
|
||||||
|
|
||||||
|
<!--- Please keep this note for other contributors -->
|
||||||
|
|
||||||
|
### How to use GitHub
|
||||||
|
|
||||||
|
* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are affected by the same issue.
|
||||||
|
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
|
||||||
|
* Subscribe to receive notifications on status change and new comments.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Steps to reproduce
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
|
||||||
|
### Expected behaviour
|
||||||
|
Tell us what should happen
|
||||||
|
|
||||||
|
### Actual behaviour
|
||||||
|
Tell us what happens instead
|
||||||
|
|
||||||
|
## Talk app
|
||||||
|
|
||||||
|
**Talk app version:** (see apps administration page: `/index.php/settings/apps`)
|
||||||
|
|
||||||
|
**Custom Signaling server configured:** yes/no and version (see Talk administration settings: `/index.php/settings/admin/talk#signaling_server`)
|
||||||
|
|
||||||
|
**Custom TURN server configured:** yes/no (see Talk administration settings: `/index.php/settings/admin/talk#turn_server`)
|
||||||
|
|
||||||
|
**Custom STUN server configured:** yes/no (see Talk administration settings: `/index.php/settings/admin/talk#stun_server`)
|
||||||
|
|
||||||
|
|
||||||
|
## Browser
|
||||||
|
|
||||||
|
**Microphone available:** yes/no
|
||||||
|
|
||||||
|
**Camera available:** yes/no
|
||||||
|
|
||||||
|
**Operating system:** Windows/Ubuntu/Mac/...
|
||||||
|
|
||||||
|
**Browser name:** Firefox/Chrome/Safari/...
|
||||||
|
|
||||||
|
**Browser version:** 124/125/...
|
||||||
|
|
||||||
|
### Browser log
|
||||||
|
|
||||||
|
<details>
|
||||||
|
```
|
||||||
|
Insert your browser log here, this could for example include:
|
||||||
|
a) The javascript console log
|
||||||
|
b) The network log
|
||||||
|
c) ...
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Server configuration
|
||||||
|
<!--
|
||||||
|
You can use the Issue Template application to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
**Operating system**: Ubuntu/RedHat/...
|
||||||
|
|
||||||
|
**Web server:** Apache/Nginx
|
||||||
|
|
||||||
|
**Database:** MySQL/Maria/SQLite/PostgreSQL
|
||||||
|
|
||||||
|
**PHP version:** 8.1/8.2/8.3
|
||||||
|
|
||||||
|
**Nextcloud Version:** (see administration page)
|
||||||
|
|
||||||
|
**List of activated apps:**
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
```
|
||||||
|
If you have access to your command line run e.g.:
|
||||||
|
sudo -u www-data php occ app:list
|
||||||
|
from within your server installation folder
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
**Nextcloud configuration:**
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
```
|
||||||
|
If you have access to your command line run e.g.:
|
||||||
|
sudo -u www-data php occ config:list system
|
||||||
|
from within your Nextcloud installation folder
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Server log (data/nextcloud.log)
|
||||||
|
<details>
|
||||||
|
|
||||||
|
```
|
||||||
|
Insert your server log here
|
||||||
|
```
|
||||||
|
</details>
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
name: 🚀 Feature request
|
||||||
|
about: Suggest an idea for Nextcloud Talk
|
||||||
|
labels: 0. Needs triage, enhancement
|
||||||
|
---
|
||||||
|
|
||||||
|
<!--- Please keep this note for other contributors -->
|
||||||
|
|
||||||
|
### How to use GitHub
|
||||||
|
|
||||||
|
* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are interested into the same feature.
|
||||||
|
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
|
||||||
|
* Subscribe to receive notifications on status change and new comments.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Feature request
|
||||||
|
|
||||||
|
**Which Nextcloud Version are you currently using:** (see administration page)
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
name: 🤖 Add a Bot
|
||||||
|
description: Request to add an existing bot to the docs/bot-list
|
||||||
|
title: "🤖 Bot - "
|
||||||
|
labels: ["1. to develop", "enhancement", "feature: bots 🤖"]
|
||||||
|
assignees:
|
||||||
|
- nickvergessen
|
||||||
|
body:
|
||||||
|
- type: input
|
||||||
|
id: botname
|
||||||
|
attributes:
|
||||||
|
label: Bot name
|
||||||
|
description: Should be the name users and moderators also see later on in the UI
|
||||||
|
placeholder: e.g. Call summary bot
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Description
|
||||||
|
description: Useful, but short description, best to keep it to 1-3 lines of text.
|
||||||
|
placeholder: "The call summary bot posts an overview message after the call listing all participants and outlining tasks."
|
||||||
|
value:
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: screenshot
|
||||||
|
attributes:
|
||||||
|
label: Screenshot URL
|
||||||
|
description: Please use bright mode and crop to the chat view with, max. width 700px, max. height 480px
|
||||||
|
placeholder: https://github.com/nextcloud/call_summary_bot/blob/main/docs/screenshot.png
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: license
|
||||||
|
attributes:
|
||||||
|
label: License
|
||||||
|
description: Identifier of the license (See [https://spdx.org/licenses/](https://spdx.org/licenses/))
|
||||||
|
placeholder: AGPL-3.0-or-later
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: source
|
||||||
|
attributes:
|
||||||
|
label: Source code URL
|
||||||
|
description: Link to source code / repository
|
||||||
|
placeholder: https://github.com/nextcloud/call_summary_bot
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: install
|
||||||
|
attributes:
|
||||||
|
label: Installation steps
|
||||||
|
description: Link to the readme or other docs how to install the bot
|
||||||
|
placeholder: https://github.com/nextcloud/call_summary_bot#readme
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
f776ffe8120cb9a8b2579bc30a7f7ca7 appstore-build-publish.yml
|
||||||
|
30c9fe81a0a80bcf36cc7d441fcb8f9d block-unconventional-commits.yml
|
||||||
|
9570be036a81d55d85cd3dc384041007 command-openapi.yml
|
||||||
|
cbffe424c47647a2e375f96f25b67af9 dependabot-approve-merge.yml
|
||||||
|
2581a67c5bcdcd570427e6d51db767d7 fixup.yml
|
||||||
|
54f293d9abe11ac0035a7bbb96a4e453 lint-eslint.yml
|
||||||
|
80a58e5584612def0e751fcfb7669814 lint-info-xml.yml
|
||||||
|
ccd8a55c60e35b84becb0f7005ce1286 lint-php-cs.yml
|
||||||
|
5dcc3187a9460cb62a455235cbdb3562 lint-php.yml
|
||||||
|
cf229fbf443d2f7a303f22eb92745811 lint-stylelint.yml
|
||||||
|
c8770d61f6f9339176e7c123fa528111 lint-typescript.yml
|
||||||
|
7e42858234a508fe4ff6235a27d503f9 node-test.yml
|
||||||
|
c965845a0def7b39d872e47e93dd1139 node.yml
|
||||||
|
c4dda10f905203af83124b944ce8c749 openapi.yml
|
||||||
|
bdca1af74c27de9a9fc2f3c70aabdc8f phpunit-mariadb.yml
|
||||||
|
5846b994639ccab0059bf23e141d389a phpunit-mysql.yml
|
||||||
|
ec7d1084fbb3a6803dbabf3acdd17ac8 phpunit-oci.yml
|
||||||
|
29b359a5b76e7ff8cd85af34b3bf36e3 phpunit-pgsql.yml
|
||||||
|
182cc739d33a2441d3a9278a9bff55b4 phpunit-sqlite.yml
|
||||||
|
3c4a096b3b7dbaef0f8e5190ffe13518 pr-feedback.yml
|
||||||
|
2070d9569f327e758b9ce2b924c28fef psalm.yml
|
||||||
|
7db5b820f3750eebe988005a0bb2febd reuse.yml
|
||||||
|
800d5b188aa885626cf4169fa2dfea9e update-nextcloud-ocp-approve-merge.yml
|
||||||
|
1a3e76e59e411598dbf3042cd687ec33 update-nextcloud-ocp.yml
|
||||||
|
48c2c657b87747c9faeb589bcce08923 update-stable-titles.yml
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
## Submitting issues
|
||||||
|
|
||||||
|
### Short version
|
||||||
|
|
||||||
|
* Here you can find the [**bug report template**](https://raw.github.com/nextcloud/spreed/main/.github/ISSUE_TEMPLATE/1_bug_report.md) and [**feature request template**](https://raw.github.com/nextcloud/spreed/main/.github/ISSUE_TEMPLATE/2_feature_request.md), but be aware of the different repositories! See list below. Please always use the issue template when reporting issues.
|
||||||
|
|
||||||
|
### Guidelines
|
||||||
|
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
|
||||||
|
- Go to one of the repositories, click "issues" and type any word in the top search/command bar.
|
||||||
|
- You can also filter by appending e. g. "state:open" to the search string.
|
||||||
|
- More info on [search syntax within github](https://help.github.com/articles/searching-issues)
|
||||||
|
* Report the issue using our template for [bugs](https://raw.github.com/nextcloud/spreed/main/.github/ISSUE_TEMPLATE/1_bug_report.md) and [features](https://raw.github.com/nextcloud/spreed/main/.github/ISSUE_TEMPLATE/2_feature_request.md), it includes all the informations we need to track down the issue.
|
||||||
|
|
||||||
|
If your issue appears to be a bug, and hasn't been reported, open a new issue.
|
||||||
|
|
||||||
|
Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues.
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
Please submit translations via [Transifex](https://www.transifex.com/nextcloud/nextcloud/spreed/).
|
||||||
|
|
||||||
|
## Contributing to Source Code
|
||||||
|
|
||||||
|
Thanks for wanting to contribute source code to the Talk app. That's great! 🎉
|
||||||
|
|
||||||
|
Please read the [Code of Conduct](https://nextcloud.com/community/code-of-conduct/). This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.
|
||||||
|
|
||||||
|
For more information please review the [guidelines for contributing](https://github.com/nextcloud/server/blob/master/.github/CONTRIBUTING.md) to this repository.
|
||||||
|
|
||||||
|
### Sign your work
|
||||||
|
|
||||||
|
We use the Developer Certificate of Origin (DCO) as a additional safeguard
|
||||||
|
for the Nextcloud project. This is a well established and widely used
|
||||||
|
mechanism to assure contributors have confirmed their right to license
|
||||||
|
their contribution under the project's license.
|
||||||
|
Please read [contribute/developer-certificate-of-origin][dcofile].
|
||||||
|
If you can certify it, then just add a line to every git commit message:
|
||||||
|
|
||||||
|
````
|
||||||
|
Signed-off-by: Random J Developer <random@developer.example.org>
|
||||||
|
````
|
||||||
|
|
||||||
|
Use your real name (sorry, no pseudonyms or anonymous contributions).
|
||||||
|
If you set your `user.name` and `user.email` git configs, you can sign your
|
||||||
|
commit automatically with `git commit -s`. You can also use git [aliases](https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases)
|
||||||
|
like `git config --global alias.ci 'commit -s'`. Now you can commit with
|
||||||
|
`git ci` and the commit will be signed.
|
||||||
|
|
||||||
|
### Apply a license
|
||||||
|
|
||||||
|
In case you are not sure how to add or update the license header correctly please have a look at [contribute/HowToApplyALicense.md][applyalicense]
|
||||||
|
|
||||||
|
[dcofile]: https://github.com/nextcloud/server/blob/master/contribute/developer-certificate-of-origin
|
||||||
|
[applyalicense]: https://github.com/nextcloud/server/blob/master/contribute/HowToApplyALicense.md
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
# Composer: Code-Dependencies
|
||||||
|
- package-ecosystem: composer
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
|
- package-ecosystem: composer
|
||||||
|
target-branch: stable31
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
|
- package-ecosystem: composer
|
||||||
|
target-branch: stable30
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
|
- package-ecosystem: composer
|
||||||
|
target-branch: stable29
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
|
# Composer: Tooling
|
||||||
|
- package-ecosystem: composer
|
||||||
|
directories:
|
||||||
|
- "/tests/integration"
|
||||||
|
- "/vendor-bin/csfixer"
|
||||||
|
- "/vendor-bin/mozart"
|
||||||
|
- "/vendor-bin/openapi-extractor"
|
||||||
|
- "/vendor-bin/phpunit"
|
||||||
|
- "/vendor-bin/psalm"
|
||||||
|
- "/vendor-bin/rector"
|
||||||
|
commit-message:
|
||||||
|
prefix: "ci"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
|
# GitHub Actions
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: ".github/workflows"
|
||||||
|
commit-message:
|
||||||
|
prefix: "ci"
|
||||||
|
include: "scope"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
|
# NPM: Code-Dependencies
|
||||||
|
- package-ecosystem: npm
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
|
- package-ecosystem: npm
|
||||||
|
target-branch: stable31
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
|
||||||
|
- package-ecosystem: npm
|
||||||
|
target-branch: stable30
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
|
||||||
|
- package-ecosystem: npm
|
||||||
|
target-branch: stable29
|
||||||
|
directory: "/"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build"
|
||||||
|
include: "scope"
|
||||||
|
versioning-strategy: "increase"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: saturday
|
||||||
|
time: "03:00"
|
||||||
|
timezone: Europe/Berlin
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
|
||||||
|
### ☑️ Resolves
|
||||||
|
|
||||||
|
* Fix #…
|
||||||
|
|
||||||
|
<!--
|
||||||
|
░░░░░░░░░░░░░░░░░░░░
|
||||||
|
░█████░░█████░█████░
|
||||||
|
░░███░░░░███░░░███░░
|
||||||
|
░░███░░░░███░░░███░░
|
||||||
|
░░███░░░░███░░░███░░
|
||||||
|
░░░████████░░░█████░
|
||||||
|
░░░░░░░░░░░░░░░░░░░░
|
||||||
|
|
||||||
|
Feel free to remove this section when your PR is only touching backend/API code
|
||||||
|
-->
|
||||||
|
|
||||||
|
## 🖌️ UI Checklist
|
||||||
|
|
||||||
|
### 🖼️ Screenshots / Screencasts
|
||||||
|
|
||||||
|
🏚️ Before | 🏡 After
|
||||||
|
-- | --
|
||||||
|
Screenshot before | Screenshot after
|
||||||
|
|
||||||
|
<!-- ☀️ Light theme | 🌑 Dark Theme -->
|
||||||
|
|
||||||
|
### 🚧 Tasks
|
||||||
|
|
||||||
|
- [ ] ...
|
||||||
|
|
||||||
|
### 🏁 Checklist
|
||||||
|
|
||||||
|
- [ ] 🌏 Tested with different browsers / clients:
|
||||||
|
- [ ] Chromium (Chrome / Edge / Opera / Brave)
|
||||||
|
- [ ] Firefox
|
||||||
|
- [ ] Safari
|
||||||
|
- [ ] Talk Desktop
|
||||||
|
- [ ] Integrations with Files sidebar and other apps
|
||||||
|
- [ ] Not risky to browser differences / client
|
||||||
|
- [ ] 🖌️ Design was reviewed, approved or inspired by the design team
|
||||||
|
- [ ] ⛑️ Tests are included or not possible
|
||||||
|
- [ ] 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!--
|
||||||
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
||||||
|
░░░███████░░░█████████░░█████░
|
||||||
|
░░███░░░███░░░███░░░███░░███░░
|
||||||
|
░░█████████░░░████████░░░███░░
|
||||||
|
░░███░░░███░░░███░░░░░░░░███░░
|
||||||
|
░█████░█████░█████░░░░░░█████░
|
||||||
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
||||||
|
|
||||||
|
Feel free to remove this section when your PR is only touching frontend/UI code
|
||||||
|
-->
|
||||||
|
|
||||||
|
## 🛠️ API Checklist
|
||||||
|
|
||||||
|
### 🚧 Tasks
|
||||||
|
|
||||||
|
- [ ] ...
|
||||||
|
|
||||||
|
### 🏁 Checklist
|
||||||
|
|
||||||
|
- [ ] ⛑️ Tests (unit and/or integration) are included or not possible
|
||||||
|
- [ ] 📘 API documentation in `docs/` has been updated or is not required
|
||||||
|
- [ ] 🔖 Capability is added or not needed
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
# 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]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Get app version number
|
||||||
|
id: app-version
|
||||||
|
uses: skjnldsv/xpath-action@f5b036e9d973f42c86324833fd00be90665fbf77 # v1.0.0
|
||||||
|
with:
|
||||||
|
filename: ${{ env.APP_NAME }}/appinfo/info.xml
|
||||||
|
expression: "//info//version/text()"
|
||||||
|
|
||||||
|
- name: Validate app version against tag
|
||||||
|
run: |
|
||||||
|
[ "${{ env.APP_VERSION }}" = "v${{ fromJSON(steps.app-version.outputs.result).version }}" ]
|
||||||
|
|
||||||
|
- name: Get appinfo data
|
||||||
|
id: appinfo
|
||||||
|
uses: skjnldsv/xpath-action@f5b036e9d973f42c86324833fd00be90665fbf77 # v1.0.0
|
||||||
|
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: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
# Skip if no package.json
|
||||||
|
if: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
|
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@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
with:
|
||||||
|
filename: ${{ env.APP_NAME }}/appinfo/info.xml
|
||||||
|
|
||||||
|
- name: Set up php ${{ steps.php-versions.outputs.php-min }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
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@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.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@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.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: Check server download link for ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
|
||||||
|
run: |
|
||||||
|
NCVERSION='${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}'
|
||||||
|
DOWNLOAD_URL=$(curl -s "https://updates.nextcloud.com/updater_server/latest?channel=beta&version=$NCVERSION" | jq -r '.downloads.zip[0]')
|
||||||
|
echo "DOWNLOAD_URL=$DOWNLOAD_URL" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Download server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
|
||||||
|
continue-on-error: true
|
||||||
|
id: server-download
|
||||||
|
if: ${{ env.DOWNLOAD_URL != 'null' }}
|
||||||
|
run: |
|
||||||
|
echo "Downloading release tarball from $DOWNLOAD_URL"
|
||||||
|
wget $DOWNLOAD_URL -O nextcloud.zip
|
||||||
|
unzip nextcloud.zip
|
||||||
|
|
||||||
|
- name: Checkout server master fallback
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
if: ${{ steps.server-download.outcome != 'success' }}
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
path: nextcloud
|
||||||
|
|
||||||
|
|
||||||
|
- name: Sign app
|
||||||
|
run: |
|
||||||
|
# Extracting release
|
||||||
|
cd ${{ env.APP_NAME }}/build/artifacts
|
||||||
|
tar -xvf ${{ env.APP_NAME }}.tar.gz
|
||||||
|
cd ../../../
|
||||||
|
# Setting up keys
|
||||||
|
echo '${{ secrets.APP_PRIVATE_KEY }}' > ${{ env.APP_NAME }}.key # zizmor: ignore[secrets-outside-env]
|
||||||
|
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/${{ env.APP_NAME }}
|
||||||
|
# Rebuilding archive
|
||||||
|
cd ${{ env.APP_NAME }}/build/artifacts
|
||||||
|
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Attach tarball to github release
|
||||||
|
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2.11.5
|
||||||
|
id: attach_to_release
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: ${{ env.APP_NAME }}/build/artifacts/${{ 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.0.3
|
||||||
|
with:
|
||||||
|
app_name: ${{ env.APP_NAME }}
|
||||||
|
appstore_token: ${{ secrets.APPSTORE_TOKEN }} # zizmor: ignore[secrets-outside-env]
|
||||||
|
download_url: ${{ steps.attach_to_release.outputs.browser_download_url }}
|
||||||
|
app_private_key: ${{ secrets.APP_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env]
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# 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: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Block unconventional commits
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, ready_for_review, reopened, synchronize]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: block-unconventional-commits-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
block-unconventional-commits:
|
||||||
|
name: Block unconventional commits
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- uses: webiny/action-conventional-commits@faccb24fc2550dd15c0390d944379d2d8ed9690e # v1.3.1
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
# 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: OpenAPI Command
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
init:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# On pull requests and if the comment starts with `/openapi`
|
||||||
|
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/openapi')
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
git_path: ${{ steps.git-path.outputs.path }}
|
||||||
|
arg1: ${{ steps.command.outputs.arg1 }}
|
||||||
|
arg2: ${{ steps.command.outputs.arg2 }}
|
||||||
|
head_ref: ${{ steps.comment-branch.outputs.head_ref }}
|
||||||
|
base_ref: ${{ steps.comment-branch.outputs.base_ref }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Get repository from pull request comment
|
||||||
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||||
|
id: get-repository
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
const pull = await github.rest.pulls.get({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: context.issue.number
|
||||||
|
});
|
||||||
|
|
||||||
|
const repositoryName = pull.data.head?.repo?.full_name
|
||||||
|
console.log(repositoryName)
|
||||||
|
return repositoryName
|
||||||
|
|
||||||
|
- name: Disabled on forks
|
||||||
|
if: ${{ fromJSON(steps.get-repository.outputs.result) != github.repository }}
|
||||||
|
run: |
|
||||||
|
echo 'Can not execute /openapi on forks'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: Check actor permission
|
||||||
|
uses: skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v2
|
||||||
|
with:
|
||||||
|
require: write
|
||||||
|
|
||||||
|
- name: Add reaction on start
|
||||||
|
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
|
||||||
|
repository: ${{ github.event.repository.full_name }}
|
||||||
|
comment-id: ${{ github.event.comment.id }}
|
||||||
|
reactions: '+1'
|
||||||
|
|
||||||
|
- name: Parse command
|
||||||
|
uses: skjnldsv/parse-command-comment@5c955203c52424151e6d0e58fb9de8a9f6a605a1 # v2
|
||||||
|
id: command
|
||||||
|
|
||||||
|
# Init path depending on which command is run
|
||||||
|
- name: Init path
|
||||||
|
id: git-path
|
||||||
|
run: |
|
||||||
|
if ${{ startsWith(steps.command.outputs.arg1, '/') }}; then
|
||||||
|
echo "path=${{steps.command.outputs.arg1}}" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "path=${{steps.command.outputs.arg2}}" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Init branch
|
||||||
|
uses: xt0rted/pull-request-comment-branch@e8b8daa837e8ea7331c0003c9c316a64c6d8b0b1 # v3.0.0
|
||||||
|
id: comment-branch
|
||||||
|
|
||||||
|
- name: Add reaction on failure
|
||||||
|
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
|
||||||
|
repository: ${{ github.event.repository.full_name }}
|
||||||
|
comment-id: ${{ github.event.comment.id }}
|
||||||
|
reactions: '-1'
|
||||||
|
|
||||||
|
process:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: init
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Restore cached git repository
|
||||||
|
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||||
|
with:
|
||||||
|
path: .git
|
||||||
|
key: git-repo
|
||||||
|
|
||||||
|
- name: Checkout ${{ needs.init.outputs.head_ref }}
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
# Needed to allow force push later
|
||||||
|
persist-credentials: true
|
||||||
|
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: ${{ needs.init.outputs.head_ref }}
|
||||||
|
|
||||||
|
- name: Setup git
|
||||||
|
run: |
|
||||||
|
git config --local user.email 'nextcloud-command@users.noreply.github.com'
|
||||||
|
git config --local user.name 'nextcloud-command'
|
||||||
|
|
||||||
|
- name: Check Typescript OpenApi types
|
||||||
|
id: check_typescript_openapi
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: "src/types/openapi/openapi*.ts"
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
if: steps.check_typescript_openapi.outputs.files_exists == 'true'
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: node_versions
|
||||||
|
# Continue if no package.json
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
fallbackNode: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
if: ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.node_versions.outputs.npmVersion }}
|
||||||
|
if: ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.node_versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- name: Rebase to ${{ needs.init.outputs.base_ref }}
|
||||||
|
if: ${{ contains(needs.init.outputs.arg1, 'rebase') }}
|
||||||
|
run: |
|
||||||
|
git fetch origin '${{ needs.init.outputs.base_ref }}:${{ needs.init.outputs.base_ref }}'
|
||||||
|
git rebase 'origin/${{ needs.init.outputs.base_ref }}'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
PUPPETEER_SKIP_DOWNLOAD: true
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Regenerate OpenAPI
|
||||||
|
run: composer run openapi
|
||||||
|
|
||||||
|
- name: Commit default
|
||||||
|
if: ${{ !contains(needs.init.outputs.arg1, 'fixup') && !contains(needs.init.outputs.arg1, 'amend') }}
|
||||||
|
run: |
|
||||||
|
git add '${{ github.workspace }}${{ needs.init.outputs.git_path }}'
|
||||||
|
git commit --signoff -m 'fix(openapi): Regenerate OpenAPI assets'
|
||||||
|
|
||||||
|
- name: Commit fixup
|
||||||
|
if: ${{ contains(needs.init.outputs.arg1, 'fixup') }}
|
||||||
|
run: |
|
||||||
|
git add '${{ github.workspace }}${{ needs.init.outputs.git_path }}'
|
||||||
|
git commit --fixup=HEAD --signoff
|
||||||
|
|
||||||
|
- name: Commit amend
|
||||||
|
if: ${{ contains(needs.init.outputs.arg1, 'amend') }}
|
||||||
|
run: |
|
||||||
|
git add '${{ github.workspace }}${{ needs.init.outputs.git_path }}'
|
||||||
|
git commit --amend --no-edit --signoff
|
||||||
|
# Remove any [skip ci] from the amended commit
|
||||||
|
git commit --amend -m "$(git log -1 --format='%B' | sed '/\[skip ci\]/d')"
|
||||||
|
|
||||||
|
- name: Push normally
|
||||||
|
if: ${{ !contains(needs.init.outputs.arg1, 'rebase') && !contains(needs.init.outputs.arg1, 'amend') }}
|
||||||
|
run: git push origin '${{ needs.init.outputs.head_ref }}'
|
||||||
|
|
||||||
|
- name: Force push
|
||||||
|
if: ${{ contains(needs.init.outputs.arg1, 'rebase') || contains(needs.init.outputs.arg1, 'amend') }}
|
||||||
|
run: git push --force-with-lease origin '${{ needs.init.outputs.head_ref }}'
|
||||||
|
|
||||||
|
- name: Add reaction on failure
|
||||||
|
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
|
||||||
|
repository: ${{ github.event.repository.full_name }}
|
||||||
|
comment-id: ${{ github.event.comment.id }}
|
||||||
|
reactions: '-1'
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
# 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: Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Auto approve Dependabot PRs
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target: # zizmor: ignore[dangerous-triggers]
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
- stable*
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: dependabot-approve-merge-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-approve-merge:
|
||||||
|
if: github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
env:
|
||||||
|
ALLOW_MINOR: false
|
||||||
|
IGNORE_PATTERN: '(webrtc-adapter|\@nextcloud\/vue)'
|
||||||
|
permissions:
|
||||||
|
# for hmarr/auto-approve-action to approve PRs
|
||||||
|
pull-requests: write
|
||||||
|
# for alexwilson/enable-github-automerge-action to approve PRs
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Disabled on forks
|
||||||
|
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
||||||
|
run: |
|
||||||
|
echo 'Can not approve PRs from forks'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: Dependabot metadata
|
||||||
|
if: github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
id: metadata
|
||||||
|
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check allowed dependency update
|
||||||
|
if: github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
id: validate
|
||||||
|
env:
|
||||||
|
IGNORE_PATTERN: ${{ env.IGNORE_PATTERN }}
|
||||||
|
DEPENDENCY_NAMES: ${{ steps.metadata.outputs.dependency-names }}
|
||||||
|
run: |
|
||||||
|
if [[ -z ${IGNORE_PATTERN} ]]; then
|
||||||
|
echo "ignore=false" >> "$GITHUB_OUTPUT"
|
||||||
|
elif [[ -z ${DEPENDENCY_NAMES} ]]; then
|
||||||
|
echo "ignore=false" >> "$GITHUB_OUTPUT"
|
||||||
|
elif [[ ${DEPENDENCY_NAMES} =~ ${IGNORE_PATTERN} ]]; then
|
||||||
|
echo "ignore=true" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# GitHub actions bot approve
|
||||||
|
- name: Auto approve
|
||||||
|
id: auto_approve
|
||||||
|
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
|
||||||
|
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
&& steps.validate.outputs.ignore != 'true'
|
||||||
|
&& ((fromJSON(env.ALLOW_MINOR) && steps.metadata.outputs.update-type == 'version-update:semver-minor')
|
||||||
|
|| steps.metadata.outputs.update-type == 'version-update:semver-patch')
|
||||||
|
}}
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Enable GitHub auto merge
|
||||||
|
- name: Auto merge
|
||||||
|
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # v2.0.0
|
||||||
|
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && steps.auto_approve.conclusion == 'success' }}
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml
|
||||||
|
index e4fa4e58ff..a1127d8826 100644
|
||||||
|
--- a/.github/workflows/dependabot-approve-merge.yml
|
||||||
|
+++ b/.github/workflows/dependabot-approve-merge.yml
|
||||||
|
@@ -26,6 +26,9 @@ jobs:
|
||||||
|
auto-approve-merge:
|
||||||
|
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]'
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
+ env:
|
||||||
|
+ ALLOW_MINOR: false
|
||||||
|
+ IGNORE_PATTERN: '(webrtc-adapter|\@nextcloud\/vue)'
|
||||||
|
permissions:
|
||||||
|
# for hmarr/auto-approve-action to approve PRs
|
||||||
|
pull-requests: write
|
||||||
|
@@ -42,20 +42,43 @@ jobs:
|
||||||
|
echo 'Can not approve PRs from forks'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- - uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
|
||||||
|
- id: branchname
|
||||||
|
+ - name: Dependabot metadata
|
||||||
|
+ if: github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
+ id: metadata
|
||||||
|
+ uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
|
||||||
|
with:
|
||||||
|
- repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
+ github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
+
|
||||||
|
+ - name: Check allowed dependency update
|
||||||
|
+ if: github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
+ id: validate
|
||||||
|
+ env:
|
||||||
|
+ IGNORE_PATTERN: ${{ env.IGNORE_PATTERN }}
|
||||||
|
+ DEPENDENCY_NAMES: ${{ steps.metadata.outputs.dependency-names }}
|
||||||
|
+ run: |
|
||||||
|
+ if [[ -z ${IGNORE_PATTERN} ]]; then
|
||||||
|
+ echo "ignore=false" >> "$GITHUB_OUTPUT"
|
||||||
|
+ elif [[ -z ${DEPENDENCY_NAMES} ]]; then
|
||||||
|
+ echo "ignore=false" >> "$GITHUB_OUTPUT"
|
||||||
|
+ elif [[ ${DEPENDENCY_NAMES} =~ ${IGNORE_PATTERN} ]]; then
|
||||||
|
+ echo "ignore=true" >> "$GITHUB_OUTPUT"
|
||||||
|
+ fi
|
||||||
|
|
||||||
|
# GitHub actions bot approve
|
||||||
|
- - uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
|
||||||
|
- if: startsWith(steps.branchname.outputs.branch, 'dependabot/')
|
||||||
|
+ - name: Auto approve
|
||||||
|
+ id: auto_approve
|
||||||
|
+ uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
|
||||||
|
+ if: ${{ github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
+ && steps.validate.outputs.ignore != 'true'
|
||||||
|
+ && ((fromJSON(env.ALLOW_MINOR) && steps.metadata.outputs.update-type == 'version-update:semver-minor')
|
||||||
|
+ || steps.metadata.outputs.update-type == 'version-update:semver-patch')
|
||||||
|
+ }}
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Enable GitHub auto merge
|
||||||
|
- name: Auto merge
|
||||||
|
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # v2.0.0
|
||||||
|
- if: startsWith(steps.branchname.outputs.branch, 'dependabot/')
|
||||||
|
+ if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && steps.auto_approve.conclusion == 'success' }}
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# 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: Block fixup and squash commits
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, ready_for_review, reopened, synchronize]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: fixup-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commit-message-check:
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
name: Block fixup and squash commits
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Run check
|
||||||
|
uses: skjnldsv/block-fixup-merge-action@c138ea99e45e186567b64cf065ce90f7158c236a # v2
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,354 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Integration Federation
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: "5 2 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: integration-federation-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/integration/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
integration-federation:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
name: Federation ${{ matrix.host-server-versions }} (${{ matrix.host-db }}) -> ${{ matrix.remote-server-versions }} (${{ matrix.remote-db }})
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- test-suite: 'federation'
|
||||||
|
php-versions: '8.2'
|
||||||
|
host-db: 'oci'
|
||||||
|
host-server-versions: 'stable32'
|
||||||
|
host-spreed-versions: ${{ github.event.pull_request.head.sha }}
|
||||||
|
host-guests-versions: 'main'
|
||||||
|
host-circles-versions: 'stable32'
|
||||||
|
host-notifications-versions: 'stable32'
|
||||||
|
remote-db: 'mysql'
|
||||||
|
remote-server-versions: 'stable31'
|
||||||
|
remote-spreed-versions: 'stable31'
|
||||||
|
remote-guests-versions: 'stable-4.6'
|
||||||
|
remote-circles-versions: 'stable31'
|
||||||
|
remote-notifications-versions: 'stable31'
|
||||||
|
- test-suite: 'federation'
|
||||||
|
php-versions: '8.2'
|
||||||
|
host-db: 'pgsql'
|
||||||
|
host-server-versions: 'stable32'
|
||||||
|
host-spreed-versions: ${{ github.event.pull_request.head.sha }}
|
||||||
|
host-guests-versions: 'main'
|
||||||
|
host-circles-versions: 'stable32'
|
||||||
|
host-notifications-versions: 'stable32'
|
||||||
|
remote-db: 'mysql'
|
||||||
|
remote-server-versions: 'stable31'
|
||||||
|
remote-spreed-versions: 'stable31'
|
||||||
|
remote-guests-versions: 'stable-4.6'
|
||||||
|
remote-circles-versions: 'stable31'
|
||||||
|
remote-notifications-versions: 'stable31'
|
||||||
|
- test-suite: 'federation'
|
||||||
|
php-versions: '8.2'
|
||||||
|
host-db: 'oci'
|
||||||
|
host-server-versions: 'stable31'
|
||||||
|
host-spreed-versions: 'stable31'
|
||||||
|
host-guests-versions: 'stable-4.6'
|
||||||
|
host-circles-versions: 'stable31'
|
||||||
|
host-notifications-versions: 'stable31'
|
||||||
|
remote-db: 'mysql'
|
||||||
|
remote-server-versions: 'stable32'
|
||||||
|
remote-spreed-versions: ${{ github.event.pull_request.head.sha }}
|
||||||
|
remote-guests-versions: 'main'
|
||||||
|
remote-circles-versions: 'stable32'
|
||||||
|
remote-notifications-versions: 'stable32'
|
||||||
|
|
||||||
|
services:
|
||||||
|
oracle:
|
||||||
|
image: ghcr.io/gvenzl/oracle-xe:11
|
||||||
|
|
||||||
|
# Provide passwords and other environment variables to container
|
||||||
|
env:
|
||||||
|
ORACLE_RANDOM_PASSWORD: true
|
||||||
|
APP_USER: autotest
|
||||||
|
APP_USER_PASSWORD: owncloud
|
||||||
|
|
||||||
|
# Forward Oracle port
|
||||||
|
ports:
|
||||||
|
- 1521:1521/tcp
|
||||||
|
|
||||||
|
# Provide healthcheck script options for startup
|
||||||
|
options: >-
|
||||||
|
--health-cmd healthcheck.sh
|
||||||
|
--health-interval 10s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 10
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-mysql-8.4:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4444:3306/tcp
|
||||||
|
env:
|
||||||
|
MYSQL_ROOT_PASSWORD: rootpassword
|
||||||
|
options: --health-cmd="mysqladmin ping" --health-interval 5s --health-timeout 2s --health-retries 10
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-postgres-16:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4445:5432/tcp
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: root
|
||||||
|
POSTGRES_PASSWORD: rootpassword
|
||||||
|
POSTGRES_DB: nextcloud
|
||||||
|
options: --health-cmd pg_isready --health-interval 5s --health-timeout 2s --health-retries 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server - Host
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: host
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.host-server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout spreed app - Host
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: host/apps/spreed
|
||||||
|
ref: ${{ matrix.host-spreed-versions }}
|
||||||
|
|
||||||
|
- name: Checkout circles app - Host
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/circles
|
||||||
|
path: host/apps/circles
|
||||||
|
ref: ${{ matrix.host-circles-versions }}
|
||||||
|
|
||||||
|
- name: Checkout guests app - Host
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/guests
|
||||||
|
path: host/apps/guests
|
||||||
|
ref: ${{ matrix.host-guests-versions }}
|
||||||
|
|
||||||
|
- name: Checkout notifications app - Host
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/notifications
|
||||||
|
path: host/apps/notifications
|
||||||
|
ref: ${{ matrix.host-notifications-versions }}
|
||||||
|
|
||||||
|
- name: Checkout server - Remote
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: remote
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.remote-server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout spreed app - Remote
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: remote/apps/spreed
|
||||||
|
ref: ${{ matrix.remote-spreed-versions }}
|
||||||
|
|
||||||
|
- name: Checkout circles app - Remote
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/circles
|
||||||
|
path: remote/apps/circles
|
||||||
|
ref: ${{ matrix.remote-circles-versions }}
|
||||||
|
|
||||||
|
- name: Checkout guests app - Remote
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/guests
|
||||||
|
path: remote/apps/guests
|
||||||
|
ref: ${{ matrix.remote-guests-versions }}
|
||||||
|
|
||||||
|
- name: Checkout notifications app - Remote
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/notifications
|
||||||
|
path: remote/apps/notifications
|
||||||
|
ref: ${{ matrix.remote-notifications-versions }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql, oci8, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3: ini-values: apc.enable_cli=on
|
||||||
|
ini-values: apc.enable_cli=on, disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up production dependencies - Host
|
||||||
|
working-directory: host/apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i --no-dev
|
||||||
|
|
||||||
|
- name: Set up production dependencies - Remote
|
||||||
|
working-directory: remote/apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i --no-dev
|
||||||
|
|
||||||
|
- name: Set up behat dependencies
|
||||||
|
working-directory: host/apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Host (Postgres)
|
||||||
|
if: ${{ matrix.host-db == 'pgsql' }}
|
||||||
|
env:
|
||||||
|
DB_PORT: 4445
|
||||||
|
working-directory: host/
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=pgsql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Host (Oracle)
|
||||||
|
if: ${{ matrix.host-db == 'oci' }}
|
||||||
|
env:
|
||||||
|
DB_PORT: 1521
|
||||||
|
working-directory: host/
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=oci --database-name=XE --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=owncloud --admin-user admin --admin-pass admin
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Host (MySQL)
|
||||||
|
if: ${{ matrix.host-db == 'mysql' }}
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
working-directory: host/
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Remote (Postgres)
|
||||||
|
if: ${{ matrix.remote-db == 'pgsql' }}
|
||||||
|
env:
|
||||||
|
DB_PORT: 4445
|
||||||
|
working-directory: remote/
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=pgsql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Remote (Oracle)
|
||||||
|
if: ${{ matrix.remote-db == 'oracle' }}
|
||||||
|
env:
|
||||||
|
DB_PORT: 1521
|
||||||
|
working-directory: remote/
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=oci --database-name=XE --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=owncloud --admin-user admin --admin-pass admin
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Remote (MySQL)
|
||||||
|
if: ${{ matrix.remote-db == 'mysql' }}
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
working-directory: remote/
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Host (Shared)
|
||||||
|
working-directory: host/
|
||||||
|
run: |
|
||||||
|
./occ config:system:set debug --value=true --type=boolean
|
||||||
|
./occ config:system:set hashing_default_password --value=true --type=boolean
|
||||||
|
./occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ config:system:set memcache.distributed --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
./occ app:enable --force circles
|
||||||
|
./occ app:enable --force guests
|
||||||
|
./occ app:enable --force notifications
|
||||||
|
|
||||||
|
- name: Set up Nextcloud - Remote (Shared)
|
||||||
|
working-directory: remote/
|
||||||
|
run: |
|
||||||
|
./occ config:system:set debug --value=true --type=boolean
|
||||||
|
./occ config:system:set hashing_default_password --value=true --type=boolean
|
||||||
|
./occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ config:system:set memcache.distributed --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
./occ app:enable --force circles
|
||||||
|
./occ app:enable --force guests
|
||||||
|
./occ app:enable --force notifications
|
||||||
|
echo 'REMOTE_ROOT_DIR='$PWD >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Run integration
|
||||||
|
working-directory: host/apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: REMOTE_ROOT_DIR=${{ env.REMOTE_ROOT_DIR }} bash run.sh features/${{ matrix.test-suite }}
|
||||||
|
|
||||||
|
- name: Print logs - Host
|
||||||
|
if: always()
|
||||||
|
working-directory: host/
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Print logs - Remote
|
||||||
|
if: always()
|
||||||
|
working-directory: remote/
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, integration-federation]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: integration-federation-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-federation.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Integration mariadb
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# Only running on PR for this file to save CI time (otherwise pgsql only)
|
||||||
|
- '.github/workflows/integration-mariadb.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: "5 2 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: integration-mariadb-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/integration/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
integration-mariadb:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
test-suite: ['callapi', 'chat-1', 'chat-2', 'chat-3', 'chat-4', 'command', 'conversation-1', 'conversation-2', 'conversation-3', 'conversation-4', 'conversation-5', 'federation', 'integration', 'sharing-1', 'sharing-2', 'sharing-3', 'sharing-4']
|
||||||
|
php-versions: ['8.2']
|
||||||
|
server-versions: ['stable32']
|
||||||
|
guests-versions: ['main']
|
||||||
|
circles-versions: ['stable32']
|
||||||
|
notifications-versions: ['stable32']
|
||||||
|
|
||||||
|
services:
|
||||||
|
mariadb:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-mariadb-11.4:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4444:3306/tcp
|
||||||
|
env:
|
||||||
|
MARIADB_ROOT_PASSWORD: rootpassword
|
||||||
|
options: --health-cmd="mariadb-admin ping" --health-interval 5s --health-timeout 2s --health-retries 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Checkout circles app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/circles
|
||||||
|
path: apps/circles
|
||||||
|
ref: ${{ matrix.circles-versions }}
|
||||||
|
|
||||||
|
- name: Checkout guests app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/guests
|
||||||
|
path: apps/guests
|
||||||
|
ref: ${{ matrix.guests-versions }}
|
||||||
|
|
||||||
|
- name: Checkout notifications app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/notifications
|
||||||
|
path: apps/notifications
|
||||||
|
ref: ${{ matrix.notifications-versions }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3: ini-values: apc.enable_cli=on
|
||||||
|
ini-values: apc.enable_cli=on, disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Enable ONLY_FULL_GROUP_BY MariaDB option
|
||||||
|
run: |
|
||||||
|
echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
echo 'SELECT @@sql_mode;' | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
|
||||||
|
- name: Set up production dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i --no-dev
|
||||||
|
|
||||||
|
- name: Set up behat dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ config:system:set debug --value=true --type=boolean
|
||||||
|
./occ config:system:set hashing_default_password --value=true --type=boolean
|
||||||
|
./occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ config:system:set memcache.distributed --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
./occ app:enable --force circles
|
||||||
|
./occ app:enable --force guests
|
||||||
|
./occ app:enable --force notifications
|
||||||
|
|
||||||
|
- name: Run integration
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: bash run.sh features/${{ matrix.test-suite }}
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Check Federation log
|
||||||
|
if: always()
|
||||||
|
id: check_federation_log
|
||||||
|
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
|
||||||
|
with:
|
||||||
|
files: "data/tests-talk-real-federated-server/data/nextcloud.log"
|
||||||
|
|
||||||
|
- name: Print federation logs
|
||||||
|
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
|
||||||
|
run: |
|
||||||
|
cat data/tests-talk-real-federated-server/data/nextcloud.log
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, integration-mariadb]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: integration-mariadb-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-mariadb.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Integration mysql
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# Only running on PR for this file to save CI time (otherwise pgsql only)
|
||||||
|
- '.github/workflows/integration-mysql.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: "5 2 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: integration-mysql-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/integration/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
integration-mysql:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
test-suite: ['callapi', 'chat-1', 'chat-2', 'chat-3', 'chat-4', 'command', 'conversation-1', 'conversation-2', 'conversation-3', 'conversation-4', 'conversation-5', 'federation', 'integration', 'sharing-1', 'sharing-2', 'sharing-3', 'sharing-4']
|
||||||
|
php-versions: ['8.2']
|
||||||
|
server-versions: ['stable32']
|
||||||
|
guests-versions: ['main']
|
||||||
|
circles-versions: ['stable32']
|
||||||
|
notifications-versions: ['stable32']
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-mysql-8.4:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4444:3306/tcp
|
||||||
|
env:
|
||||||
|
MYSQL_ROOT_PASSWORD: rootpassword
|
||||||
|
options: --health-cmd="mysqladmin ping" --health-interval 5s --health-timeout 2s --health-retries 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Checkout circles app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/circles
|
||||||
|
path: apps/circles
|
||||||
|
ref: ${{ matrix.circles-versions }}
|
||||||
|
|
||||||
|
- name: Checkout guests app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/guests
|
||||||
|
path: apps/guests
|
||||||
|
ref: ${{ matrix.guests-versions }}
|
||||||
|
|
||||||
|
- name: Checkout notifications app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/notifications
|
||||||
|
path: apps/notifications
|
||||||
|
ref: ${{ matrix.notifications-versions }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3: ini-values: apc.enable_cli=on
|
||||||
|
ini-values: apc.enable_cli=on, disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Enable ONLY_FULL_GROUP_BY MySQL option
|
||||||
|
run: |
|
||||||
|
echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
echo 'SELECT @@sql_mode;' | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
|
||||||
|
- name: Set up production dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i --no-dev
|
||||||
|
|
||||||
|
- name: Set up behat dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ config:system:set debug --value=true --type=boolean
|
||||||
|
./occ config:system:set hashing_default_password --value=true --type=boolean
|
||||||
|
./occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ config:system:set memcache.distributed --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
./occ app:enable --force circles
|
||||||
|
./occ app:enable --force guests
|
||||||
|
./occ app:enable --force notifications
|
||||||
|
|
||||||
|
- name: Run integration
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: bash run.sh features/${{ matrix.test-suite }}
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Check Federation log
|
||||||
|
if: always()
|
||||||
|
id: check_federation_log
|
||||||
|
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
|
||||||
|
with:
|
||||||
|
files: "data/tests-talk-real-federated-server/data/nextcloud.log"
|
||||||
|
|
||||||
|
- name: Print federation logs
|
||||||
|
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
|
||||||
|
run: |
|
||||||
|
cat data/tests-talk-real-federated-server/data/nextcloud.log
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, integration-mysql]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: integration-mysql-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-mysql.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Integration oci
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# Only running on PR for this file to save CI time (otherwise pgsql only)
|
||||||
|
- '.github/workflows/integration-oci.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: "5 2 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: integration-oci-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/integration/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
integration-oci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
test-suite: ['callapi', 'chat-1', 'chat-2', 'chat-3', 'chat-4', 'command', 'conversation-1', 'conversation-2', 'conversation-3', 'conversation-4', 'conversation-5', 'federation', 'integration', 'sharing-1', 'sharing-2', 'sharing-3', 'sharing-4']
|
||||||
|
php-versions: ['8.2']
|
||||||
|
server-versions: ['stable32']
|
||||||
|
guests-versions: ['main']
|
||||||
|
circles-versions: ['stable32']
|
||||||
|
notifications-versions: ['stable32']
|
||||||
|
|
||||||
|
services:
|
||||||
|
oracle:
|
||||||
|
image: ghcr.io/gvenzl/oracle-xe:11
|
||||||
|
|
||||||
|
# Provide passwords and other environment variables to container
|
||||||
|
env:
|
||||||
|
ORACLE_RANDOM_PASSWORD: true
|
||||||
|
APP_USER: autotest
|
||||||
|
APP_USER_PASSWORD: owncloud
|
||||||
|
|
||||||
|
# Forward Oracle port
|
||||||
|
ports:
|
||||||
|
- 1521:1521/tcp
|
||||||
|
|
||||||
|
# Provide healthcheck script options for startup
|
||||||
|
options: >-
|
||||||
|
--health-cmd healthcheck.sh
|
||||||
|
--health-interval 10s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Checkout circles app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/circles
|
||||||
|
path: apps/circles
|
||||||
|
ref: ${{ matrix.circles-versions }}
|
||||||
|
|
||||||
|
- name: Checkout guests app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/guests
|
||||||
|
path: apps/guests
|
||||||
|
ref: ${{ matrix.guests-versions }}
|
||||||
|
|
||||||
|
- name: Checkout notifications app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/notifications
|
||||||
|
path: apps/notifications
|
||||||
|
ref: ${{ matrix.notifications-versions }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, oci8, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3: ini-values: apc.enable_cli=on
|
||||||
|
ini-values: apc.enable_cli=on, disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up production dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i --no-dev
|
||||||
|
|
||||||
|
- name: Set up behat dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 1521
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=oci --database-name=XE --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=owncloud --admin-user admin --admin-pass admin
|
||||||
|
./occ config:system:set debug --value=true --type=boolean
|
||||||
|
./occ config:system:set hashing_default_password --value=true --type=boolean
|
||||||
|
./occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ config:system:set memcache.distributed --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
./occ app:enable --force circles
|
||||||
|
./occ app:enable --force guests
|
||||||
|
./occ app:enable --force notifications
|
||||||
|
|
||||||
|
- name: Run integration
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: bash run.sh features/${{ matrix.test-suite }}
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Check Federation log
|
||||||
|
if: always()
|
||||||
|
id: check_federation_log
|
||||||
|
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
|
||||||
|
with:
|
||||||
|
files: "data/tests-talk-real-federated-server/data/nextcloud.log"
|
||||||
|
|
||||||
|
- name: Print federation logs
|
||||||
|
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
|
||||||
|
run: |
|
||||||
|
cat data/tests-talk-real-federated-server/data/nextcloud.log
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, integration-oci]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: integration-oci-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-oci.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,216 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Integration pgsql
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: "5 2 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: integration-pgsql-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/integration/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
integration-pgsql:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
test-suite:
|
||||||
|
- 'callapi'
|
||||||
|
- 'chat-1'
|
||||||
|
- 'chat-2'
|
||||||
|
- 'chat-3'
|
||||||
|
- 'chat-4'
|
||||||
|
- 'command'
|
||||||
|
- 'conversation-1'
|
||||||
|
- 'conversation-2'
|
||||||
|
- 'conversation-3'
|
||||||
|
- 'conversation-4'
|
||||||
|
- 'conversation-5'
|
||||||
|
- 'federation'
|
||||||
|
- 'integration'
|
||||||
|
- 'scaling'
|
||||||
|
- 'sharing-1'
|
||||||
|
- 'sharing-2'
|
||||||
|
- 'sharing-3'
|
||||||
|
- 'sharing-4'
|
||||||
|
php-versions: ['8.3']
|
||||||
|
server-versions: ['stable32']
|
||||||
|
guests-versions: ['main']
|
||||||
|
circles-versions: ['stable32']
|
||||||
|
notifications-versions: ['stable32']
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-postgres-16:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4444:5432/tcp
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: root
|
||||||
|
POSTGRES_PASSWORD: rootpassword
|
||||||
|
POSTGRES_DB: nextcloud
|
||||||
|
options: --health-cmd pg_isready --health-interval 5s --health-timeout 2s --health-retries 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Patch version check for nightly PHP
|
||||||
|
if: ${{ matrix.php-versions == '8.4' }}
|
||||||
|
run: echo "<?php" > lib/versioncheck.php
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Checkout circles app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/circles
|
||||||
|
path: apps/circles
|
||||||
|
ref: ${{ matrix.circles-versions }}
|
||||||
|
|
||||||
|
- name: Checkout guests app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/guests
|
||||||
|
path: apps/guests
|
||||||
|
ref: ${{ matrix.guests-versions }}
|
||||||
|
|
||||||
|
- name: Checkout notifications app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/notifications
|
||||||
|
path: apps/notifications
|
||||||
|
ref: ${{ matrix.notifications-versions }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3: ini-values: apc.enable_cli=on
|
||||||
|
ini-values: apc.enable_cli=on, disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up production dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i --no-dev
|
||||||
|
|
||||||
|
- name: Set up behat dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=pgsql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ config:system:set debug --value=true --type=boolean
|
||||||
|
./occ config:system:set hashing_default_password --value=true --type=boolean
|
||||||
|
./occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ config:system:set memcache.distributed --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
./occ app:enable --force circles
|
||||||
|
./occ app:enable --force guests
|
||||||
|
./occ app:enable --force notifications
|
||||||
|
|
||||||
|
- name: Run integration
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: bash run.sh features/${{ matrix.test-suite }}
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Print query logs
|
||||||
|
if: matrix.test-suite == 'scaling'
|
||||||
|
run: |
|
||||||
|
cat data/query.log
|
||||||
|
|
||||||
|
- name: Upload query.log
|
||||||
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
|
with:
|
||||||
|
name: query-list.txt
|
||||||
|
path: data/query.log
|
||||||
|
|
||||||
|
- name: Check Federation log
|
||||||
|
if: always()
|
||||||
|
id: check_federation_log
|
||||||
|
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
|
||||||
|
with:
|
||||||
|
files: "data/tests-talk-real-federated-server/data/nextcloud.log"
|
||||||
|
|
||||||
|
- name: Print federation logs
|
||||||
|
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
|
||||||
|
run: |
|
||||||
|
cat data/tests-talk-real-federated-server/data/nextcloud.log
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, integration-pgsql]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: integration-pgsql-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-pgsql.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,175 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Integration sqlite
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# Only running on PR for this file to save CI time (otherwise pgsql only)
|
||||||
|
- '.github/workflows/integration-sqlite.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: "5 2 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: integration-sqlite-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/integration/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
integration-sqlite:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
test-suite: ['callapi', 'chat-1', 'chat-2', 'chat-3', 'chat-4', 'command', 'conversation-1', 'conversation-2', 'conversation-3', 'conversation-4', 'conversation-5', 'federation', 'integration', 'sharing-1', 'sharing-2', 'sharing-3', 'sharing-4']
|
||||||
|
php-versions: ['8.2']
|
||||||
|
server-versions: ['stable32']
|
||||||
|
guests-versions: ['main']
|
||||||
|
circles-versions: ['stable32']
|
||||||
|
notifications-versions: ['stable32']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Checkout circles app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/circles
|
||||||
|
path: apps/circles
|
||||||
|
ref: ${{ matrix.circles-versions }}
|
||||||
|
|
||||||
|
- name: Checkout guests app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/guests
|
||||||
|
path: apps/guests
|
||||||
|
ref: ${{ matrix.guests-versions }}
|
||||||
|
|
||||||
|
- name: Checkout notifications app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
repository: nextcloud/notifications
|
||||||
|
path: apps/notifications
|
||||||
|
ref: ${{ matrix.notifications-versions }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3: ini-values: apc.enable_cli=on
|
||||||
|
ini-values: apc.enable_cli=on, disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up production dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i --no-dev
|
||||||
|
|
||||||
|
- name: Set up behat dependencies
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ config:system:set debug --value=true --type=boolean
|
||||||
|
./occ config:system:set hashing_default_password --value=true --type=boolean
|
||||||
|
./occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ config:system:set memcache.distributed --value="\\OC\\Memcache\\APCu"
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
./occ app:enable --force circles
|
||||||
|
./occ app:enable --force guests
|
||||||
|
./occ app:enable --force notifications
|
||||||
|
|
||||||
|
- name: Run integration
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}/tests/integration
|
||||||
|
run: bash run.sh features/${{ matrix.test-suite }}
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Check Federation log
|
||||||
|
if: always()
|
||||||
|
id: check_federation_log
|
||||||
|
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
|
||||||
|
with:
|
||||||
|
files: "data/tests-talk-real-federated-server/data/nextcloud.log"
|
||||||
|
|
||||||
|
- name: Print federation logs
|
||||||
|
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
|
||||||
|
run: |
|
||||||
|
cat data/tests-talk-real-federated-server/data/nextcloud.log
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, integration-sqlite]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: integration-sqlite-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-sqlite.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
# 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: Lint GitHub Actions
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
action-lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
name: GitHub Actions lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: GitHub action templates lint
|
||||||
|
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
|
||||||
|
with:
|
||||||
|
file_or_dir: .github/workflows
|
||||||
|
config_data: |
|
||||||
|
line-length: warning
|
||||||
|
|
||||||
|
- name: Install the latest version of uv
|
||||||
|
uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
|
||||||
|
|
||||||
|
- name: Check GitHub actions
|
||||||
|
run: uvx zizmor --min-severity medium .github/workflows/*.yml
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
# 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: Lint eslint
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lint-eslint-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'src/**'
|
||||||
|
- 'appinfo/info.xml'
|
||||||
|
- 'package.json'
|
||||||
|
- 'package-lock.json'
|
||||||
|
- 'tsconfig.json'
|
||||||
|
- '.eslintrc.*'
|
||||||
|
- '.eslintignore'
|
||||||
|
- '**.js'
|
||||||
|
- '**.ts'
|
||||||
|
- '**.vue'
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
name: NPM lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
PUPPETEER_SKIP_DOWNLOAD: true
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, lint]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
# This is the summary, we just avoid to rename it so that branch protection rules still match
|
||||||
|
name: eslint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.lint.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# 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: Lint info.xml
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lint-info-xml-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
xml-linters:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
|
||||||
|
name: info.xml lint
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Download schema
|
||||||
|
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd
|
||||||
|
|
||||||
|
- name: Lint info.xml
|
||||||
|
uses: ChristophWurst/xmllint-action@36f2a302f84f8c83fceea0b9c59e1eb4a616d3c1 # v1.2
|
||||||
|
with:
|
||||||
|
xml-file: ./appinfo/info.xml
|
||||||
|
xml-schema-file: ./info.xsd
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# 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: Lint php-cs
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lint-php-cs-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
name: php-cs
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get php version
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
- name: Set up php${{ steps.versions.outputs.php-min }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ steps.versions.outputs.php-min }}
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
composer remove nextcloud/ocp --dev --no-scripts
|
||||||
|
composer i
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
# 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: Lint php
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lint-php-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
matrix:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
outputs:
|
||||||
|
php-min: ${{ steps.versions.outputs.php-min }}
|
||||||
|
php-max: ${{ steps.versions.outputs.php-max }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get version matrix
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
php-lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: matrix
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ['${{ needs.matrix.outputs.php-min }}', '${{ needs.matrix.outputs.php-max }}']
|
||||||
|
|
||||||
|
name: php-lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: composer run lint
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: php-lint
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: php-lint-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# 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: Lint stylelint
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lint-stylelint-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
name: stylelint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: npm run stylelint
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
# 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: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Type checking
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
- stable*
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lint-typescript-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/lint-typescript.yml'
|
||||||
|
- 'package.json'
|
||||||
|
- 'package-lock.json'
|
||||||
|
- 'tsconfig.json'
|
||||||
|
- '**.ts'
|
||||||
|
- '**.vue'
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
- name: Check types
|
||||||
|
run: |
|
||||||
|
npm run --if-present check-types
|
||||||
|
npm run --if-present ts:check
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, test]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: typescript-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.test.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
# 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: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Node tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
- stable*
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: node-tests-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- '__tests__/**'
|
||||||
|
- '__mocks__/**'
|
||||||
|
- 'src/**'
|
||||||
|
- 'appinfo/info.xml'
|
||||||
|
- 'package.json'
|
||||||
|
- 'package-lock.json'
|
||||||
|
- 'tsconfig.json'
|
||||||
|
- '**.js'
|
||||||
|
- '**.ts'
|
||||||
|
- '**.vue'
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
# In contrast to the workflow template, there is no build step here
|
||||||
|
- name: Install dependencies
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
# In contrast to the workflow template, there is no coverage step here
|
||||||
|
- name: Test
|
||||||
|
run: npm run test --if-present
|
||||||
|
|
||||||
|
- name: Collect coverage
|
||||||
|
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
|
||||||
|
with:
|
||||||
|
files: ./coverage/lcov.info
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, test]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: test-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.test.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
diff --git b/.github/workflows/node-test.yml a/.github/workflows/node-test.yml
|
||||||
|
index a61b9cb06..9081c98b6 100644
|
||||||
|
--- b/.github/workflows/node-test.yml
|
||||||
|
+++ a/.github/workflows/node-test.yml
|
||||||
|
@@ -79,19 +79,17 @@ jobs:
|
||||||
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- - name: Install dependencies & build
|
||||||
|
+ # In contrast to the workflow template, there is no build step here
|
||||||
|
+ - name: Install dependencies
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
- npm run build --if-present
|
||||||
|
|
||||||
|
+ # In contrast to the workflow template, there is no coverage step here
|
||||||
|
- name: Test
|
||||||
|
run: npm run test --if-present
|
||||||
|
|
||||||
|
- - name: Test and process coverage
|
||||||
|
- run: npm run test:coverage --if-present
|
||||||
|
-
|
||||||
|
- name: Collect coverage
|
||||||
|
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
|
||||||
|
with:
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
# 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: Node
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: node-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'src/**'
|
||||||
|
- 'appinfo/info.xml'
|
||||||
|
- 'package.json'
|
||||||
|
- 'package-lock.json'
|
||||||
|
- 'tsconfig.json'
|
||||||
|
- '**.js'
|
||||||
|
- '**.ts'
|
||||||
|
- '**.vue'
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
name: NPM build
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- name: Validate package-lock.json # See https://github.com/npm/cli/issues/4460
|
||||||
|
run: |
|
||||||
|
npm i -g npm-package-lock-add-resolved@1.1.4
|
||||||
|
npm-package-lock-add-resolved
|
||||||
|
git --no-pager diff --exit-code
|
||||||
|
|
||||||
|
- name: Install dependencies & build
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
PUPPETEER_SKIP_DOWNLOAD: true
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm run build --if-present
|
||||||
|
|
||||||
|
- name: Check build changes
|
||||||
|
run: |
|
||||||
|
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
|
||||||
|
|
||||||
|
- name: Show changes on failure
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
git status
|
||||||
|
git --no-pager diff
|
||||||
|
exit 1 # make it red to grab attention
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, build]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
# This is the summary, we just avoid to rename it so that branch protection rules still match
|
||||||
|
name: node
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.build.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: occ-commands-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
occ-commands:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ['8.2']
|
||||||
|
server-versions: ['stable32']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check composer file existence
|
||||||
|
id: check_composer
|
||||||
|
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
|
||||||
|
with:
|
||||||
|
files: apps/${{ env.APP_NAME }}/composer.json
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_composer.outputs.files_exists == 'true'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ app:enable ${{ env.APP_NAME }}
|
||||||
|
./occ config:system:set debug --value true --type boolean
|
||||||
|
|
||||||
|
- name: Check if documentation is up to date
|
||||||
|
id: check_documentation
|
||||||
|
run: |
|
||||||
|
./occ talk:developer:update-docs
|
||||||
|
cd apps/${{ env.APP_NAME }}
|
||||||
|
bash -c "[[ ! \"`git status --porcelain `\" ]] || (cat docs/occ.md && echo 'Documentation outdated. Run the command talk:developer:update-docs locally, commit the occ.md file and push the changes.' && exit 1)"
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
# 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: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-FileCopyrightText: 2024 Arthur Schiwon <blizzz@arthur-schiwon.de>
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: OpenAPI
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: openapi-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
openapi:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get php version
|
||||||
|
id: php_versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
- name: Set up php
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ steps.php_versions.outputs.php-available }}
|
||||||
|
extensions: xml
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check Typescript OpenApi types
|
||||||
|
id: check_typescript_openapi
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: "src/types/openapi/openapi*.ts"
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
if: steps.check_typescript_openapi.outputs.files_exists == 'true'
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: node_versions
|
||||||
|
# Continue if no package.json
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
fallbackNode: '^24'
|
||||||
|
fallbackNpm: '^11.3'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
if: ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.node_versions.outputs.npmVersion }}
|
||||||
|
if: ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
run: npm i -g 'npm@${{ steps.node_versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
if: ${{ steps.node_versions.outputs.nodeVersion }}
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
PUPPETEER_SKIP_DOWNLOAD: true
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
run: composer i
|
||||||
|
|
||||||
|
- name: Regenerate OpenAPI
|
||||||
|
run: composer run openapi
|
||||||
|
|
||||||
|
- name: Check openapi*.json and typescript changes
|
||||||
|
run: |
|
||||||
|
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please run \"composer run openapi\" and commit the openapi*.json files and (if applicable) src/types/openapi/openapi*.ts, see the section \"Show changes on failure\" for details' && exit 1)"
|
||||||
|
|
||||||
|
- name: Show changes on failure
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
git status
|
||||||
|
git --no-pager diff
|
||||||
|
exit 1 # make it red to grab attention
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
# 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: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: PHPUnit MariaDB
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: phpunit-mariadb-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
matrix:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
outputs:
|
||||||
|
php-version: ${{ steps.versions.outputs.php-available-list }}
|
||||||
|
server-max: ${{ steps.versions.outputs.branches-max-list }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get version matrix
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
phpunit-mariadb:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: [changes, matrix]
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
|
||||||
|
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
|
||||||
|
mariadb-versions: ['10.6', '11.8']
|
||||||
|
|
||||||
|
name: MariaDB ${{ matrix.mariadb-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
mariadb:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-mariadb-${{ matrix.mariadb-versions }}:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4444:3306/tcp
|
||||||
|
env:
|
||||||
|
MARIADB_ROOT_PASSWORD: rootpassword
|
||||||
|
options: --health-cmd="mariadb-admin ping" --health-interval 5s --health-timeout 2s --health-retries 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
if: ${{ env.APP_NAME == '' }}
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3
|
||||||
|
ini-values: disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Enable ONLY_FULL_GROUP_BY MariaDB option
|
||||||
|
run: |
|
||||||
|
echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
echo 'SELECT @@sql_mode;' | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
|
||||||
|
- name: Check composer file existence
|
||||||
|
id: check_composer
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: apps/${{ env.APP_NAME }}/composer.json
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_composer.outputs.files_exists == 'true'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer remove nextcloud/ocp --dev --no-scripts
|
||||||
|
composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Check PHPUnit script is defined
|
||||||
|
id: check_phpunit
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:unit ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: PHPUnit
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_phpunit.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:unit
|
||||||
|
|
||||||
|
- name: Check PHPUnit integration script is defined
|
||||||
|
id: check_integration
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:integration ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: Run Nextcloud
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
run: php -S localhost:8080 &
|
||||||
|
|
||||||
|
- name: PHPUnit integration
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:integration
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Skipped
|
||||||
|
# Fail the action when neither unit nor integration tests ran
|
||||||
|
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
echo 'Neither PHPUnit nor PHPUnit integration tests are specified in composer.json scripts'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, phpunit-mariadb]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: phpunit-mariadb-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-mariadb.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git b/.github/workflows/phpunit-mariadb.yml a/.github/workflows/phpunit-mariadb.yml
|
||||||
|
index fcc701967..c9c5a4e3e 100644
|
||||||
|
--- b/.github/workflows/phpunit-mariadb.yml
|
||||||
|
+++ a/.github/workflows/phpunit-mariadb.yml
|
||||||
|
@@ -70,7 +70,7 @@ jobs:
|
||||||
|
matrix:
|
||||||
|
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
|
||||||
|
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
|
||||||
|
- mariadb-versions: ['10.6', '11.4']
|
||||||
|
+ mariadb-versions: ['10.6', '11.8']
|
||||||
|
|
||||||
|
name: MariaDB ${{ matrix.mariadb-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
|
||||||
|
|
||||||
@@ -0,0 +1,200 @@
|
|||||||
|
# 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: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: PHPUnit MySQL
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: phpunit-mysql-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
matrix:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
outputs:
|
||||||
|
matrix: ${{ steps.versions.outputs.sparse-matrix }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get version matrix
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
with:
|
||||||
|
matrix: '{"mysql-versions": ["8.4"]}'
|
||||||
|
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
phpunit-mysql:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: [changes, matrix]
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix: ${{ fromJson(needs.matrix.outputs.matrix) }}
|
||||||
|
|
||||||
|
name: MySQL ${{ matrix.mysql-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-mysql-${{ matrix.mysql-versions }}:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4444:3306/tcp
|
||||||
|
env:
|
||||||
|
MYSQL_ROOT_PASSWORD: rootpassword
|
||||||
|
options: --health-cmd="mysqladmin ping" --health-interval 5s --health-timeout 2s --health-retries 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
if: ${{ env.APP_NAME == '' }}
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3
|
||||||
|
ini-values: disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Enable ONLY_FULL_GROUP_BY MySQL option
|
||||||
|
run: |
|
||||||
|
echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
echo 'SELECT @@sql_mode;' | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
|
||||||
|
|
||||||
|
- name: Check composer file existence
|
||||||
|
id: check_composer
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: apps/${{ env.APP_NAME }}/composer.json
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_composer.outputs.files_exists == 'true'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer remove nextcloud/ocp --dev --no-scripts
|
||||||
|
composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Check PHPUnit script is defined
|
||||||
|
id: check_phpunit
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:unit ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: PHPUnit
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_phpunit.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:unit
|
||||||
|
|
||||||
|
- name: Check PHPUnit integration script is defined
|
||||||
|
id: check_integration
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:integration ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: Run Nextcloud
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
run: php -S localhost:8080 &
|
||||||
|
|
||||||
|
- name: PHPUnit integration
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:integration
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Skipped
|
||||||
|
# Fail the action when neither unit nor integration tests ran
|
||||||
|
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
echo 'Neither PHPUnit nor PHPUnit integration tests are specified in composer.json scripts'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, phpunit-mysql]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: phpunit-mysql-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-mysql.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
# 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: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: PHPUnit OCI
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: phpunit-oci-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
matrix:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
outputs:
|
||||||
|
php-version: ${{ steps.versions.outputs.php-available-list }}
|
||||||
|
server-max: ${{ steps.versions.outputs.branches-max-list }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get version matrix
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
phpunit-oci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: [changes, matrix]
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
|
||||||
|
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
|
||||||
|
oci-versions: ['18', '21', '23']
|
||||||
|
|
||||||
|
name: OCI ${{ matrix.oci-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
oracle:
|
||||||
|
image: ghcr.io/gvenzl/oracle-${{ matrix.oci-versions < 23 && 'xe' || 'free' }}:${{ matrix.oci-versions }}
|
||||||
|
|
||||||
|
# Provide passwords and other environment variables to container
|
||||||
|
env:
|
||||||
|
ORACLE_PASSWORD: oracle
|
||||||
|
|
||||||
|
# Forward Oracle port
|
||||||
|
ports:
|
||||||
|
- 1521:1521
|
||||||
|
|
||||||
|
# Provide healthcheck script options for startup
|
||||||
|
options: >-
|
||||||
|
--health-cmd healthcheck.sh
|
||||||
|
--health-interval 20s
|
||||||
|
--health-timeout 10s
|
||||||
|
--health-retries 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
if: ${{ env.APP_NAME == '' }}
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, oci8
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3
|
||||||
|
ini-values: disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check composer file existence
|
||||||
|
id: check_composer
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: apps/${{ env.APP_NAME }}/composer.json
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_composer.outputs.files_exists == 'true'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer remove nextcloud/ocp --dev --no-scripts
|
||||||
|
composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 1521
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=oci --database-name=${{ matrix.oci-versions < 23 && 'XE' || 'FREE' }} --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=system --database-pass=oracle --admin-user admin --admin-pass admin
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Check PHPUnit script is defined
|
||||||
|
id: check_phpunit
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:unit ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: PHPUnit
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_phpunit.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:unit
|
||||||
|
|
||||||
|
- name: Check PHPUnit integration script is defined
|
||||||
|
id: check_integration
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:integration ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: Run Nextcloud
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
run: php -S localhost:8080 &
|
||||||
|
|
||||||
|
- name: PHPUnit integration
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:integration
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Skipped
|
||||||
|
# Fail the action when neither unit nor integration tests ran
|
||||||
|
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
echo 'Neither PHPUnit nor PHPUnit integration tests are specified in composer.json scripts'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, phpunit-oci]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: phpunit-oci-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-oci.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
# 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: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: PHPUnit PostgreSQL
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: phpunit-pgsql-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
matrix:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
outputs:
|
||||||
|
php-version: ${{ steps.versions.outputs.php-available-list }}
|
||||||
|
server-max: ${{ steps.versions.outputs.branches-max-list }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get version matrix
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
phpunit-pgsql:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: [changes, matrix]
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
|
||||||
|
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
|
||||||
|
|
||||||
|
name: PostgreSQL PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: ghcr.io/nextcloud/continuous-integration-postgres-16:latest # zizmor: ignore[unpinned-images]
|
||||||
|
ports:
|
||||||
|
- 4444:5432/tcp
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: root
|
||||||
|
POSTGRES_PASSWORD: rootpassword
|
||||||
|
POSTGRES_DB: nextcloud
|
||||||
|
options: --health-cmd pg_isready --health-interval 5s --health-timeout 2s --health-retries 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
if: ${{ env.APP_NAME == '' }}
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3
|
||||||
|
ini-values: disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check composer file existence
|
||||||
|
id: check_composer
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: apps/${{ env.APP_NAME }}/composer.json
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_composer.outputs.files_exists == 'true'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer remove nextcloud/ocp --dev --no-scripts
|
||||||
|
composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=pgsql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Check PHPUnit script is defined
|
||||||
|
id: check_phpunit
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:unit ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: PHPUnit
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_phpunit.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:unit
|
||||||
|
|
||||||
|
- name: Check PHPUnit integration script is defined
|
||||||
|
id: check_integration
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:integration ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: Run Nextcloud
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
run: php -S localhost:8080 &
|
||||||
|
|
||||||
|
- name: PHPUnit integration
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:integration
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Skipped
|
||||||
|
# Fail the action when neither unit nor integration tests ran
|
||||||
|
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
echo 'Neither PHPUnit nor PHPUnit integration tests are specified in composer.json scripts'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, phpunit-pgsql]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: phpunit-pgsql-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-pgsql.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
# 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: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: PHPUnit SQLite
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: phpunit-sqlite-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
matrix:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
outputs:
|
||||||
|
php-version: ${{ steps.versions.outputs.php-available-list }}
|
||||||
|
server-max: ${{ steps.versions.outputs.branches-max-list }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get version matrix
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
src: ${{ steps.changes.outputs.src}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
||||||
|
id: changes
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
src:
|
||||||
|
- '.github/workflows/**'
|
||||||
|
- 'appinfo/**'
|
||||||
|
- 'lib/**'
|
||||||
|
- 'templates/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'vendor/**'
|
||||||
|
- 'vendor-bin/**'
|
||||||
|
- '.php-cs-fixer.dist.php'
|
||||||
|
- 'composer.json'
|
||||||
|
- 'composer.lock'
|
||||||
|
|
||||||
|
phpunit-sqlite:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs: [changes, matrix]
|
||||||
|
if: needs.changes.outputs.src != 'false'
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
|
||||||
|
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
|
||||||
|
|
||||||
|
name: SQLite PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
if: ${{ env.APP_NAME == '' }}
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.server-versions }}
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Set up php ${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3
|
||||||
|
ini-values: disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check composer file existence
|
||||||
|
id: check_composer
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: apps/${{ env.APP_NAME }}/composer.json
|
||||||
|
|
||||||
|
- name: Set up dependencies
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_composer.outputs.files_exists == 'true'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer remove nextcloud/ocp --dev --no-scripts
|
||||||
|
composer i
|
||||||
|
|
||||||
|
- name: Set up Nextcloud
|
||||||
|
env:
|
||||||
|
DB_PORT: 4444
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
|
||||||
|
./occ app:enable --force ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
- name: Check PHPUnit script is defined
|
||||||
|
id: check_phpunit
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:unit ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: PHPUnit
|
||||||
|
# Only run if phpunit config file exists
|
||||||
|
if: steps.check_phpunit.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:unit
|
||||||
|
|
||||||
|
- name: Check PHPUnit integration script is defined
|
||||||
|
id: check_integration
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: |
|
||||||
|
composer run --list | grep '^ test:integration ' | wc -l | grep 1
|
||||||
|
|
||||||
|
- name: Run Nextcloud
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
run: php -S localhost:8080 &
|
||||||
|
|
||||||
|
- name: PHPUnit integration
|
||||||
|
# Only run if phpunit integration config file exists
|
||||||
|
if: steps.check_integration.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
run: composer run test:integration
|
||||||
|
|
||||||
|
- name: Print logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
cat data/nextcloud.log
|
||||||
|
|
||||||
|
- name: Skipped
|
||||||
|
# Fail the action when neither unit nor integration tests ran
|
||||||
|
if: steps.check_phpunit.outcome == 'failure' && steps.check_integration.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
echo 'Neither PHPUnit nor PHPUnit integration tests are specified in composer.json scripts'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
summary:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
needs: [changes, phpunit-sqlite]
|
||||||
|
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
name: phpunit-sqlite-summary
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Summary status
|
||||||
|
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-sqlite.result != 'success' }}; then exit 1; fi
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
# 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: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-FileCopyrightText: 2023 Marcel Klehr <mklehr@gmx.net>
|
||||||
|
# SPDX-FileCopyrightText: 2023 Joas Schilling <213943+nickvergessen@users.noreply.github.com>
|
||||||
|
# SPDX-FileCopyrightText: 2023 Daniel Kesselberg <mail@danielkesselberg.de>
|
||||||
|
# SPDX-FileCopyrightText: 2023 Florian Steffens <florian.steffens@nextcloud.com>
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: 'Ask for feedback on PRs'
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '30 1 * * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pr-feedback:
|
||||||
|
if: ${{ github.repository_owner == 'nextcloud' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: The get-github-handles-from-website action
|
||||||
|
uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1
|
||||||
|
id: scrape
|
||||||
|
with:
|
||||||
|
website: 'https://nextcloud.com/team/'
|
||||||
|
|
||||||
|
- name: Get blocklist
|
||||||
|
id: blocklist
|
||||||
|
run: |
|
||||||
|
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
|
||||||
|
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- uses: nextcloud/pr-feedback-action@f0cab224dea8e1f282f9451de322f323c78fc7a5 # main
|
||||||
|
with:
|
||||||
|
feedback-message: |
|
||||||
|
Hello there,
|
||||||
|
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.
|
||||||
|
|
||||||
|
Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6
|
||||||
|
|
||||||
|
Thank you for contributing to Nextcloud and we hope to hear from you soon!
|
||||||
|
|
||||||
|
(If you believe you should not receive this message, you can add yourself to the [blocklist](https://github.com/nextcloud/.github/blob/master/non-community-usernames.txt).)
|
||||||
|
days-before-feedback: 14
|
||||||
|
start-date: '2025-06-12'
|
||||||
|
exempt-authors: '${{ steps.blocklist.outputs.blocklist }},${{ steps.scrape.outputs.users }}'
|
||||||
|
exempt-bots: true
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# 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: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Static analysis
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: psalm-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
static-analysis:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
name: static-psalm-analysis
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Get php version
|
||||||
|
id: versions
|
||||||
|
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
|
||||||
|
|
||||||
|
- name: Check enforcement of minimum PHP version ${{ steps.versions.outputs.php-min }} in psalm.xml
|
||||||
|
run: grep 'phpVersion="${{ steps.versions.outputs.php-min }}' psalm.xml
|
||||||
|
|
||||||
|
- name: Set up php${{ steps.versions.outputs.php-available }}
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: ${{ steps.versions.outputs.php-available }}
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
ini-file: development
|
||||||
|
# Temporary workaround for missing pcntl_* in PHP 8.3
|
||||||
|
ini-values: disable_functions=
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
composer remove nextcloud/ocp --dev --no-scripts
|
||||||
|
composer i
|
||||||
|
|
||||||
|
- name: Check for vulnerable PHP dependencies
|
||||||
|
run: composer require --dev roave/security-advisories:dev-latest
|
||||||
|
|
||||||
|
- name: Install nextcloud/ocp
|
||||||
|
run: composer require --dev nextcloud/ocp:dev-${{ steps.versions.outputs.branches-max }} --ignore-platform-reqs --with-dependencies
|
||||||
|
|
||||||
|
- name: Run coding standards check
|
||||||
|
run: composer run psalm -- --threads=1 --monochrome --no-progress --output-format=github
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# 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: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
name: REUSE Compliance Check
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
reuse-compliance-check:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: REUSE Compliance Check
|
||||||
|
uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
diff --git a/.github/workflows/sync-workflow-templates.yml b/.github/workflows/sync-workflow-templates.yml
|
||||||
|
index 2dbd84b71f..304796d10c 100644
|
||||||
|
--- a/.github/workflows/sync-workflow-templates.yml
|
||||||
|
+++ b/.github/workflows/sync-workflow-templates.yml
|
||||||
|
@@ -132,4 +132,3 @@ jobs:
|
||||||
|
${{ env.SUMMARY }}
|
||||||
|
labels: |
|
||||||
|
dependencies
|
||||||
|
- 3. to review
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
# 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: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Auto approve nextcloud/ocp
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target: # zizmor: ignore[dangerous-triggers]
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
- stable*
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: update-nextcloud-ocp-approve-merge-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-approve-merge:
|
||||||
|
if: github.actor == 'nextcloud-command'
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
# for hmarr/auto-approve-action to approve PRs
|
||||||
|
pull-requests: write
|
||||||
|
# for alexwilson/enable-github-automerge-action to approve PRs
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Disabled on forks
|
||||||
|
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
||||||
|
run: |
|
||||||
|
echo 'Can not approve PRs from forks'
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
|
||||||
|
id: branchname
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# GitHub actions bot approve
|
||||||
|
- uses: hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2
|
||||||
|
if: startsWith(steps.branchname.outputs.branch, 'automated/noid/') && endsWith(steps.branchname.outputs.branch, 'update-nextcloud-ocp')
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Enable GitHub auto merge
|
||||||
|
- name: Auto merge
|
||||||
|
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # v2.0.0
|
||||||
|
if: startsWith(steps.branchname.outputs.branch, 'automated/noid/') && endsWith(steps.branchname.outputs.branch, 'update-nextcloud-ocp')
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
# 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: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Update nextcloud/ocp
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "5 2 * * 0"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-nextcloud-ocp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
branches:
|
||||||
|
- ${{ github.event.repository.default_branch }}
|
||||||
|
- 'stable33'
|
||||||
|
- 'stable32'
|
||||||
|
|
||||||
|
name: update-nextcloud-ocp-${{ matrix.branches }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- id: checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
ref: ${{ matrix.branches }}
|
||||||
|
submodules: true
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Set up php8.2
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||||
|
with:
|
||||||
|
php-version: 8.2
|
||||||
|
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
|
||||||
|
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
|
||||||
|
coverage: none
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Read codeowners
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
id: codeowners
|
||||||
|
run: |
|
||||||
|
grep '/appinfo/info.xml' .github/CODEOWNERS | cut -f 2- -d ' ' | xargs | awk '{ print "codeowners="$0 }' >> $GITHUB_OUTPUT
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Composer install
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
run: composer install
|
||||||
|
|
||||||
|
- name: Check composer bin for nextcloud/ocp exists
|
||||||
|
id: check_composer_bin
|
||||||
|
uses: andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1.0
|
||||||
|
with:
|
||||||
|
files: vendor-bin/nextcloud-ocp/composer.json
|
||||||
|
|
||||||
|
- name: Composer update nextcloud/ocp
|
||||||
|
id: update_branch
|
||||||
|
env:
|
||||||
|
USE_COMPOSER_BIN: ${{ steps.check_composer_bin.outputs.files_exists }}
|
||||||
|
BRANCH_NAME: ${{ matrix.branches }}
|
||||||
|
run: |
|
||||||
|
COMPOSER_CMD='composer'
|
||||||
|
if [[ "$USE_COMPOSER_BIN" == 'true' ]]; then
|
||||||
|
COMPOSER_CMD='composer bin nextcloud-ocp'
|
||||||
|
fi
|
||||||
|
|
||||||
|
PACKAGE_VERSION="nextcloud/ocp:dev-$BRANCH_NAME"
|
||||||
|
if [[ "$BRANCH_NAME" == 'main' ]]; then
|
||||||
|
PACKAGE_VERSION='nextcloud/ocp:dev-master'
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $COMPOSER_CMD require --dev $PACKAGE_VERSION
|
||||||
|
$COMPOSER_CMD require --dev $PACKAGE_VERSION
|
||||||
|
|
||||||
|
- name: Raise on issue on failure
|
||||||
|
uses: dacbd/create-issue-action@cdb57ab6ff8862aa09fee2be6ba77a59581921c2 # v2.0.0
|
||||||
|
if: ${{ steps.checkout.outcome == 'success' && failure() && steps.update_branch.conclusion == 'failure' }}
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
title: 'Failed to update nextcloud/ocp package on branch ${{ matrix.branches }}'
|
||||||
|
body: 'Please check the output of the GitHub action and manually resolve the issues<br>${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}<br>${{ steps.codeowners.outputs.codeowners }}'
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
|
||||||
|
commit-message: 'chore(dev-deps): Bump nextcloud/ocp package'
|
||||||
|
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'
|
||||||
|
add-path: |
|
||||||
|
composer.json
|
||||||
|
composer.lock
|
||||||
|
vendor-bin/nextcloud-ocp/composer.json
|
||||||
|
vendor-bin/nextcloud-ocp/composer.lock
|
||||||
|
body: |
|
||||||
|
Auto-generated update of [nextcloud/ocp](https://github.com/nextcloud-deps/ocp/) dependency
|
||||||
|
labels: |
|
||||||
|
dependencies
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
diff --git a/.github/workflows/update-nextcloud-ocp.yml b/.github/workflows/update-nextcloud-ocp.yml
|
||||||
|
index 5dc5f9a596..81d4279c1b 100644
|
||||||
|
--- a/.github/workflows/update-nextcloud-ocp.yml
|
||||||
|
+++ b/.github/workflows/update-nextcloud-ocp.yml
|
||||||
|
@@ -124,4 +124,3 @@ jobs:
|
||||||
|
Auto-generated update of [nextcloud/ocp](https://github.com/nextcloud-deps/ocp/) dependency
|
||||||
|
labels: |
|
||||||
|
dependencies
|
||||||
|
- 3. to review
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Update nextcloud/openapi
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "5 4 * * 0"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-nextcloud-openapi:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
branches: ['main', 'master', 'stable31', 'stable30']
|
||||||
|
|
||||||
|
name: Update Nextcloud OpenAPI types from core
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set app env
|
||||||
|
run: |
|
||||||
|
# Split and keep last
|
||||||
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout server
|
||||||
|
if: ${{ matrix.branches != 'main' }}
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: ${{ matrix.branches }}
|
||||||
|
|
||||||
|
- name: Checkout server (Main)
|
||||||
|
if: ${{ matrix.branches == 'main' }}
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
submodules: true
|
||||||
|
repository: nextcloud/server
|
||||||
|
ref: master
|
||||||
|
|
||||||
|
- name: Checkout app
|
||||||
|
id: checkout
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
ref: ${{ matrix.branches }}
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Read package.json node and npm engines version
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^20'
|
||||||
|
fallbackNpm: '^10'
|
||||||
|
|
||||||
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
|
||||||
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
|
|
||||||
|
- name: Install dependencies & generate types
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
|
env:
|
||||||
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
PUPPETEER_SKIP_DOWNLOAD: true
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm run ts:generate-core-types --if-present
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
if: steps.checkout.outcome == 'success'
|
||||||
|
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
||||||
|
with:
|
||||||
|
path: apps/${{ env.APP_NAME }}
|
||||||
|
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
|
||||||
|
commit-message: 'chore(ts): update OpenAPI types from core'
|
||||||
|
committer: GitHub <noreply@github.com>
|
||||||
|
author: nextcloud-command <nextcloud-command@users.noreply.github.com>
|
||||||
|
signoff: true
|
||||||
|
branch: 'automated/noid/${{ matrix.branches }}-update-nextcloud-openapi'
|
||||||
|
title: '[${{ matrix.branches }}] Update Nextcloud OpenAPI types'
|
||||||
|
body: |
|
||||||
|
Auto-generated update of Nextcloud OpenAPI types
|
||||||
|
labels: |
|
||||||
|
dependencies
|
||||||
|
3. to review
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
diff --git a/.github/workflows/update-nextcloud-openapi.yml b/.github/workflows/update-nextcloud-openapi.yml
|
||||||
|
index 8bb2d794c0..2d4befebab 100644
|
||||||
|
--- a/.github/workflows/update-nextcloud-openapi.yml
|
||||||
|
+++ b/.github/workflows/update-nextcloud-openapi.yml
|
||||||
|
@@ -99,4 +99,3 @@ jobs:
|
||||||
|
Auto-generated update of Nextcloud OpenAPI types
|
||||||
|
labels: |
|
||||||
|
dependencies
|
||||||
|
- 3. to review
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
name: Update PRs titles on stable branches
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, edited]
|
||||||
|
branches:
|
||||||
|
- "stable*"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: stable-pr-title-${{ github.event.pull_request.number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-pr-title:
|
||||||
|
runs-on: ubuntu-latest-low
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Wait for potential title edits
|
||||||
|
run: sleep 15
|
||||||
|
|
||||||
|
- name: Get PR details and update title
|
||||||
|
# Renovate already have target branch in the title
|
||||||
|
if: github.event.pull_request.user.login != 'renovate[bot]'
|
||||||
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
const { data: pr } = await github.rest.pulls.get({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: context.issue.number,
|
||||||
|
});
|
||||||
|
|
||||||
|
const baseBranch = pr.base.ref;
|
||||||
|
const currentTitle = pr.title;
|
||||||
|
|
||||||
|
// Check if this is a stable branch
|
||||||
|
// Should not happen as we only trigger on stable* branches 🤷♀️
|
||||||
|
if (!baseBranch.startsWith('stable')) {
|
||||||
|
console.log(`Not a stable branch: ${baseBranch}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const prefix = `[${baseBranch}]`;
|
||||||
|
|
||||||
|
// Check if title already has the correct prefix and no other stable tags
|
||||||
|
const correctTagRegex = new RegExp(`^\\[${baseBranch}\\]\\s*`);
|
||||||
|
const hasOtherStableTags = /\[stable[\d.]*\]/.test(currentTitle.replace(correctTagRegex, ''));
|
||||||
|
|
||||||
|
if (correctTagRegex.test(currentTitle) && !hasOtherStableTags) {
|
||||||
|
console.log(`Title already has correct prefix only: ${currentTitle}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove all stable tags and add the correct one
|
||||||
|
const cleanTitle = currentTitle.replace(/\[stable[\d.]*\]\s*/g, '').trim();
|
||||||
|
const newTitle = `${prefix} ${cleanTitle}`;
|
||||||
|
|
||||||
|
console.log(`Updating title from: "${currentTitle}" to: "${newTitle}"`);
|
||||||
|
|
||||||
|
await github.rest.pulls.update({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: context.issue.number,
|
||||||
|
title: newTitle,
|
||||||
|
});
|
||||||
+39
@@ -0,0 +1,39 @@
|
|||||||
|
# Exclude npm stuff
|
||||||
|
/build
|
||||||
|
/node_modules
|
||||||
|
|
||||||
|
# PHP Code Sniffer
|
||||||
|
/vendor
|
||||||
|
/vendor-bin/*/vendor
|
||||||
|
/lib/Vendor
|
||||||
|
/.php-cs-fixer.cache
|
||||||
|
|
||||||
|
# Local docs
|
||||||
|
/site
|
||||||
|
|
||||||
|
# Karma/jasmine coverage data
|
||||||
|
/coverage
|
||||||
|
/tests/php/coverage-html
|
||||||
|
/tests/php/clover.xml
|
||||||
|
/tests/php/.phpunit.result.cache
|
||||||
|
/tests/integration/vendor
|
||||||
|
/tests/integration/output
|
||||||
|
/drone
|
||||||
|
/findings.sarif
|
||||||
|
|
||||||
|
# PHP Dev server output (integration tests)
|
||||||
|
/tests/integration/phpserver*.log
|
||||||
|
|
||||||
|
# Compiled frontend assets
|
||||||
|
/css
|
||||||
|
/js
|
||||||
|
|
||||||
|
# VScode settings
|
||||||
|
/.vscode
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
|
# JetBrains IDEs settings
|
||||||
|
/.idea
|
||||||
|
|
||||||
|
# JetBrains Fleet settings
|
||||||
|
/.fleet
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
js/
|
||||||
|
build/
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once './vendor-bin/csfixer/vendor/autoload.php';
|
||||||
|
|
||||||
|
use Nextcloud\CodingStandard\Config;
|
||||||
|
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
|
||||||
|
|
||||||
|
$config = new Config();
|
||||||
|
$config
|
||||||
|
->setParallelConfig(ParallelConfigFactory::detect())
|
||||||
|
->getFinder()
|
||||||
|
->ignoreVCSIgnored(true)
|
||||||
|
->notPath('build')
|
||||||
|
->notPath('l10n')
|
||||||
|
->notPath('src')
|
||||||
|
->notPath('lib/Vendor')
|
||||||
|
->notPath('vendor')
|
||||||
|
->notPath('vendor-bin')
|
||||||
|
->in(__DIR__);
|
||||||
|
return $config;
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
build:
|
||||||
|
os: ubuntu-22.04
|
||||||
|
tools:
|
||||||
|
python: "3"
|
||||||
|
|
||||||
|
mkdocs:
|
||||||
|
configuration: mkdocs.yml
|
||||||
|
fail_on_warning: false
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
/src/utils/webrtc/simplewebrtc/*
|
||||||
|
/src/**/*.spec.js
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
[main]
|
||||||
|
host = https://www.transifex.com
|
||||||
|
lang_map = hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja, bg_BG: bg, cs_CZ: cs, fi_FI: fi
|
||||||
|
|
||||||
|
[o:nextcloud:p:nextcloud:r:spreed]
|
||||||
|
file_filter = translationfiles/<lang>/spreed.po
|
||||||
|
source_file = translationfiles/templates/spreed.pot
|
||||||
|
source_lang = en
|
||||||
|
type = PO
|
||||||
|
|
||||||
+42
@@ -0,0 +1,42 @@
|
|||||||
|
<!--
|
||||||
|
- SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
- SPDX-License-Identifier: CC0-1.0
|
||||||
|
-->
|
||||||
|
# Authors
|
||||||
|
|
||||||
|
- Arthur Schiwon <blizzz@arthur-schiwon.de>
|
||||||
|
- Bjoern Schiessle <bjoern@schiessle.org>
|
||||||
|
- Carl Schwan <carl@carlschwan.eu>
|
||||||
|
- Christoph Wurst <christoph@winzerhof-wurst.at>
|
||||||
|
- Christopher Ng <chrng8@gmail.com>
|
||||||
|
- Daniel Calviño Sánchez <danxuliu@gmail.com>
|
||||||
|
- Daniel Rudolf <nextcloud.com@daniel-rudolf.de>
|
||||||
|
- Denis Mosolov <denismosolov@gmail.com>
|
||||||
|
- Dorra Jaouad <dorra.jaoued1@gmail.com>
|
||||||
|
- Elmer Miroslav Mosher Golovin <miroslav@mishamosher.com>
|
||||||
|
- Fon E. Noel NFEBE <me@nfebe.com>
|
||||||
|
- Gary Kim <gary@garykim.dev>
|
||||||
|
- Grigorii K. Shartsev <me@shgk.me>
|
||||||
|
- Immanuel Pasanec <immanuel.pasanec@compaso.de>
|
||||||
|
- Informatyka Boguslawski sp. z o.o. sp.k., http://www.ib.pl/
|
||||||
|
- Ivan Sein <ivan@nextcloud.com>
|
||||||
|
- Joachim Bauch <mail@joachim-bauch.de>
|
||||||
|
- Joas Schilling <coding@schilljs.com>
|
||||||
|
- John Molakvoæ <skjnldsv@protonmail.com>
|
||||||
|
- Julien Veyssier <eneiluj@posteo.net>
|
||||||
|
- Julius Härtl <jus@bitgrid.net>
|
||||||
|
- Kate Döen <kate.doeen@nextcloud.com>
|
||||||
|
- Lukas Reschke <lukas@statuscode.ch>
|
||||||
|
- Maksim Sukharev <antreesy.web@gmail.com>
|
||||||
|
- Marcel Müller <marcel.mueller@nextcloud.com>
|
||||||
|
- Marco Ambrosini <marcoambrosini@proton.me>
|
||||||
|
- Mario Danic <mario@lovelyhq.com>
|
||||||
|
- Morris Jobke <hey@morrisjobke.de>
|
||||||
|
- Richard Steinmetz <richard@steinmetz.cloud>
|
||||||
|
- Robin Appelman <robin@icewind.nl>
|
||||||
|
- Roeland Jago Douma <roeland@famdouma.nl>
|
||||||
|
- Sergio Bertolín <sbertolin@solidgear.es>
|
||||||
|
- Thomas Müller <thomas.mueller@tmit.eu>
|
||||||
|
- Vincent Petry
|
||||||
|
- Vitor Mattos <vitor@php.rio>
|
||||||
|
- ownCloud, Inc.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<!--
|
||||||
|
- SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
- SPDX-License-Identifier: CC0-1.0
|
||||||
|
-->
|
||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in docs/changelogs/ at release time.
|
||||||
|
A readable version is available in the [Nextcloud Talk Documentation](https://nextcloud-talk.readthedocs.io/en/latest/changelog/).
|
||||||
@@ -0,0 +1,661 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
@@ -0,0 +1,235 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
|
||||||
@@ -0,0 +1,235 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
Creative Commons Attribution 4.0 International
|
||||||
|
|
||||||
|
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
|
||||||
|
|
||||||
|
Using Creative Commons Public Licenses
|
||||||
|
|
||||||
|
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
|
||||||
|
|
||||||
|
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
|
||||||
|
|
||||||
|
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
|
||||||
|
|
||||||
|
Creative Commons Attribution 4.0 International Public License
|
||||||
|
|
||||||
|
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||||
|
|
||||||
|
Section 1 – Definitions.
|
||||||
|
|
||||||
|
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||||
|
|
||||||
|
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||||
|
|
||||||
|
d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||||
|
|
||||||
|
e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||||
|
|
||||||
|
f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||||
|
|
||||||
|
g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||||
|
|
||||||
|
h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
|
||||||
|
|
||||||
|
i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||||
|
|
||||||
|
j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||||
|
|
||||||
|
k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||||
|
|
||||||
|
Section 2 – Scope.
|
||||||
|
|
||||||
|
a. License grant.
|
||||||
|
|
||||||
|
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||||
|
|
||||||
|
A. reproduce and Share the Licensed Material, in whole or in part; and
|
||||||
|
|
||||||
|
B. produce, reproduce, and Share Adapted Material.
|
||||||
|
|
||||||
|
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||||
|
|
||||||
|
3. Term. The term of this Public License is specified in Section 6(a).
|
||||||
|
|
||||||
|
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||||
|
|
||||||
|
5. Downstream recipients.
|
||||||
|
|
||||||
|
A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||||
|
|
||||||
|
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||||
|
|
||||||
|
b. Other rights.
|
||||||
|
|
||||||
|
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||||
|
|
||||||
|
2. Patent and trademark rights are not licensed under this Public License.
|
||||||
|
|
||||||
|
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
|
||||||
|
|
||||||
|
Section 3 – License Conditions.
|
||||||
|
|
||||||
|
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||||
|
|
||||||
|
a. Attribution.
|
||||||
|
|
||||||
|
1. If You Share the Licensed Material (including in modified form), You must:
|
||||||
|
|
||||||
|
A. retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||||
|
|
||||||
|
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||||
|
|
||||||
|
ii. a copyright notice;
|
||||||
|
|
||||||
|
iii. a notice that refers to this Public License;
|
||||||
|
|
||||||
|
iv. a notice that refers to the disclaimer of warranties;
|
||||||
|
|
||||||
|
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||||
|
|
||||||
|
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||||
|
|
||||||
|
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||||
|
|
||||||
|
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||||
|
|
||||||
|
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||||
|
|
||||||
|
4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
|
||||||
|
|
||||||
|
Section 4 – Sui Generis Database Rights.
|
||||||
|
|
||||||
|
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||||
|
|
||||||
|
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
|
||||||
|
|
||||||
|
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
|
||||||
|
|
||||||
|
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||||
|
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||||
|
|
||||||
|
Section 5 – Disclaimer of Warranties and Limitation of Liability.
|
||||||
|
|
||||||
|
a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
|
||||||
|
|
||||||
|
b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
|
||||||
|
|
||||||
|
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||||
|
|
||||||
|
Section 6 – Term and Termination.
|
||||||
|
|
||||||
|
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||||
|
|
||||||
|
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||||
|
|
||||||
|
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||||
|
|
||||||
|
2. upon express reinstatement by the Licensor.
|
||||||
|
|
||||||
|
c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||||
|
|
||||||
|
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||||
|
|
||||||
|
e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||||
|
|
||||||
|
Section 7 – Other Terms and Conditions.
|
||||||
|
|
||||||
|
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||||
|
|
||||||
|
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
Section 8 – Interpretation.
|
||||||
|
|
||||||
|
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||||
|
|
||||||
|
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||||
|
|
||||||
|
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||||
|
|
||||||
|
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||||
|
|
||||||
|
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||||
|
|
||||||
|
Creative Commons may be contacted at creativecommons.org.
|
||||||
@@ -0,0 +1,170 @@
|
|||||||
|
Creative Commons Attribution-ShareAlike 4.0 International
|
||||||
|
|
||||||
|
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
|
||||||
|
|
||||||
|
Using Creative Commons Public Licenses
|
||||||
|
|
||||||
|
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
|
||||||
|
|
||||||
|
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
|
||||||
|
|
||||||
|
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described.
|
||||||
|
|
||||||
|
Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
|
||||||
|
|
||||||
|
Creative Commons Attribution-ShareAlike 4.0 International Public License
|
||||||
|
|
||||||
|
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||||
|
|
||||||
|
Section 1 – Definitions.
|
||||||
|
|
||||||
|
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||||
|
|
||||||
|
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
|
||||||
|
|
||||||
|
d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||||
|
|
||||||
|
e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||||
|
|
||||||
|
f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||||
|
|
||||||
|
g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
|
||||||
|
|
||||||
|
h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||||
|
|
||||||
|
i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||||
|
|
||||||
|
j. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
|
||||||
|
|
||||||
|
k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||||
|
|
||||||
|
l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||||
|
|
||||||
|
m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||||
|
|
||||||
|
Section 2 – Scope.
|
||||||
|
|
||||||
|
a. License grant.
|
||||||
|
|
||||||
|
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||||
|
|
||||||
|
A. reproduce and Share the Licensed Material, in whole or in part; and
|
||||||
|
|
||||||
|
B. produce, reproduce, and Share Adapted Material.
|
||||||
|
|
||||||
|
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||||
|
|
||||||
|
3. Term. The term of this Public License is specified in Section 6(a).
|
||||||
|
|
||||||
|
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||||
|
|
||||||
|
5. Downstream recipients.
|
||||||
|
|
||||||
|
A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
|
||||||
|
|
||||||
|
C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||||
|
|
||||||
|
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||||
|
|
||||||
|
b. Other rights.
|
||||||
|
|
||||||
|
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||||
|
|
||||||
|
2. Patent and trademark rights are not licensed under this Public License.
|
||||||
|
|
||||||
|
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
|
||||||
|
|
||||||
|
Section 3 – License Conditions.
|
||||||
|
|
||||||
|
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||||
|
|
||||||
|
a. Attribution.
|
||||||
|
|
||||||
|
1. If You Share the Licensed Material (including in modified form), You must:
|
||||||
|
|
||||||
|
A. retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||||
|
|
||||||
|
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||||
|
|
||||||
|
ii. a copyright notice;
|
||||||
|
|
||||||
|
iii. a notice that refers to this Public License;
|
||||||
|
|
||||||
|
iv. a notice that refers to the disclaimer of warranties;
|
||||||
|
|
||||||
|
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||||
|
|
||||||
|
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||||
|
|
||||||
|
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||||
|
|
||||||
|
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||||
|
|
||||||
|
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||||
|
|
||||||
|
b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
|
||||||
|
|
||||||
|
1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
|
||||||
|
|
||||||
|
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
|
||||||
|
|
||||||
|
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
|
||||||
|
|
||||||
|
Section 4 – Sui Generis Database Rights.
|
||||||
|
|
||||||
|
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||||
|
|
||||||
|
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
|
||||||
|
|
||||||
|
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
|
||||||
|
|
||||||
|
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||||
|
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||||
|
|
||||||
|
Section 5 – Disclaimer of Warranties and Limitation of Liability.
|
||||||
|
|
||||||
|
a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
|
||||||
|
|
||||||
|
b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
|
||||||
|
|
||||||
|
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||||
|
|
||||||
|
Section 6 – Term and Termination.
|
||||||
|
|
||||||
|
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||||
|
|
||||||
|
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||||
|
|
||||||
|
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||||
|
|
||||||
|
2. upon express reinstatement by the Licensor.
|
||||||
|
|
||||||
|
c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||||
|
|
||||||
|
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||||
|
|
||||||
|
e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||||
|
|
||||||
|
Section 7 – Other Terms and Conditions.
|
||||||
|
|
||||||
|
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||||
|
|
||||||
|
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
Section 8 – Interpretation.
|
||||||
|
|
||||||
|
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||||
|
|
||||||
|
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||||
|
|
||||||
|
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||||
|
|
||||||
|
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||||
|
|
||||||
|
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||||
|
|
||||||
|
Creative Commons may be contacted at creativecommons.org.
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
Creative Commons Legal Code
|
||||||
|
|
||||||
|
CC0 1.0 Universal
|
||||||
|
|
||||||
|
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||||
|
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||||
|
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||||
|
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||||
|
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||||
|
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||||
|
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||||
|
HEREUNDER.
|
||||||
|
|
||||||
|
Statement of Purpose
|
||||||
|
|
||||||
|
The laws of most jurisdictions throughout the world automatically confer
|
||||||
|
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||||
|
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||||
|
authorship and/or a database (each, a "Work").
|
||||||
|
|
||||||
|
Certain owners wish to permanently relinquish those rights to a Work for
|
||||||
|
the purpose of contributing to a commons of creative, cultural and
|
||||||
|
scientific works ("Commons") that the public can reliably and without fear
|
||||||
|
of later claims of infringement build upon, modify, incorporate in other
|
||||||
|
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||||
|
and for any purposes, including without limitation commercial purposes.
|
||||||
|
These owners may contribute to the Commons to promote the ideal of a free
|
||||||
|
culture and the further production of creative, cultural and scientific
|
||||||
|
works, or to gain reputation or greater distribution for their Work in
|
||||||
|
part through the use and efforts of others.
|
||||||
|
|
||||||
|
For these and/or other purposes and motivations, and without any
|
||||||
|
expectation of additional consideration or compensation, the person
|
||||||
|
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||||
|
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||||
|
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||||
|
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||||
|
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||||
|
|
||||||
|
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||||
|
protected by copyright and related or neighboring rights ("Copyright and
|
||||||
|
Related Rights"). Copyright and Related Rights include, but are not
|
||||||
|
limited to, the following:
|
||||||
|
|
||||||
|
i. the right to reproduce, adapt, distribute, perform, display,
|
||||||
|
communicate, and translate a Work;
|
||||||
|
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||||
|
iii. publicity and privacy rights pertaining to a person's image or
|
||||||
|
likeness depicted in a Work;
|
||||||
|
iv. rights protecting against unfair competition in regards to a Work,
|
||||||
|
subject to the limitations in paragraph 4(a), below;
|
||||||
|
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||||
|
in a Work;
|
||||||
|
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||||
|
European Parliament and of the Council of 11 March 1996 on the legal
|
||||||
|
protection of databases, and under any national implementation
|
||||||
|
thereof, including any amended or successor version of such
|
||||||
|
directive); and
|
||||||
|
vii. other similar, equivalent or corresponding rights throughout the
|
||||||
|
world based on applicable law or treaty, and any national
|
||||||
|
implementations thereof.
|
||||||
|
|
||||||
|
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||||
|
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||||
|
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||||
|
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||||
|
of action, whether now known or unknown (including existing as well as
|
||||||
|
future claims and causes of action), in the Work (i) in all territories
|
||||||
|
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||||
|
treaty (including future time extensions), (iii) in any current or future
|
||||||
|
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||||
|
including without limitation commercial, advertising or promotional
|
||||||
|
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||||
|
member of the public at large and to the detriment of Affirmer's heirs and
|
||||||
|
successors, fully intending that such Waiver shall not be subject to
|
||||||
|
revocation, rescission, cancellation, termination, or any other legal or
|
||||||
|
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||||
|
as contemplated by Affirmer's express Statement of Purpose.
|
||||||
|
|
||||||
|
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||||
|
be judged legally invalid or ineffective under applicable law, then the
|
||||||
|
Waiver shall be preserved to the maximum extent permitted taking into
|
||||||
|
account Affirmer's express Statement of Purpose. In addition, to the
|
||||||
|
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||||
|
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||||
|
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||||
|
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||||
|
maximum duration provided by applicable law or treaty (including future
|
||||||
|
time extensions), (iii) in any current or future medium and for any number
|
||||||
|
of copies, and (iv) for any purpose whatsoever, including without
|
||||||
|
limitation commercial, advertising or promotional purposes (the
|
||||||
|
"License"). The License shall be deemed effective as of the date CC0 was
|
||||||
|
applied by Affirmer to the Work. Should any part of the License for any
|
||||||
|
reason be judged legally invalid or ineffective under applicable law, such
|
||||||
|
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||||
|
of the License, and in such case Affirmer hereby affirms that he or she
|
||||||
|
will not (i) exercise any of his or her remaining Copyright and Related
|
||||||
|
Rights in the Work or (ii) assert any associated claims and causes of
|
||||||
|
action with respect to the Work, in either case contrary to Affirmer's
|
||||||
|
express Statement of Purpose.
|
||||||
|
|
||||||
|
4. Limitations and Disclaimers.
|
||||||
|
|
||||||
|
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||||
|
surrendered, licensed or otherwise affected by this document.
|
||||||
|
b. Affirmer offers the Work as-is and makes no representations or
|
||||||
|
warranties of any kind concerning the Work, express, implied,
|
||||||
|
statutory or otherwise, including without limitation warranties of
|
||||||
|
title, merchantability, fitness for a particular purpose, non
|
||||||
|
infringement, or the absence of latent or other defects, accuracy, or
|
||||||
|
the present or absence of errors, whether or not discoverable, all to
|
||||||
|
the greatest extent permissible under applicable law.
|
||||||
|
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||||
|
that may apply to the Work or any use thereof, including without
|
||||||
|
limitation any person's Copyright and Related Rights in the Work.
|
||||||
|
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||||
|
consents, permissions or other rights required for any use of the
|
||||||
|
Work.
|
||||||
|
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||||
|
party to this document and has no duty or obligation with respect to
|
||||||
|
this CC0 or use of the Work.
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
The Discord logo
|
||||||
|
|
||||||
|
The Discord logo consists of two elements; the icon (Clyde)
|
||||||
|
and the wordmark. It’s an instantly recognisable brand
|
||||||
|
element and should be represented consistently throughout
|
||||||
|
our product and marketing efforts. The logo should always
|
||||||
|
try to exist with the symbol and wordmark together. In no
|
||||||
|
way should the logo be modified, distorted, or redrawn
|
||||||
|
|
||||||
|
https://discord.com/branding
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
The Mattermost logomark
|
||||||
|
|
||||||
|
The logos below are available for use in your integrations and applications that
|
||||||
|
connect to Mattermost. Use of the logo is permitted as long as it’s used in a
|
||||||
|
non-commercial way and does not imply endorsement by Mattermost, Inc.
|
||||||
|
|
||||||
|
https://handbook.mattermost.com/operations/operations/company-processes/publishing/publishing-guidelines/brand-and-visual-design-guidelines
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The picture https://images.nasa.gov/details/iss036e005944 is licensed under https://www.nasa.gov/multimedia/guidelines/index.html
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
The Nextcloud marks
|
||||||
|
Nextcloud and the Nextcloud logo is a registered trademark of Nextcloud GmbH in Germany and/or other countries.
|
||||||
|
These guidelines cover the following marks pertaining both to the product names and the logo: “Nextcloud”
|
||||||
|
and the blue/white cloud logo with or without the word Nextcloud; the service “Nextcloud Enterprise”;
|
||||||
|
and our products: “Nextcloud Files”; “Nextcloud Groupware” and “Nextcloud Talk”.
|
||||||
|
This set of marks is collectively referred to as the “Nextcloud marks.”
|
||||||
|
|
||||||
|
Use of Nextcloud logos and other marks is only permitted under the guidelines provided by the Nextcloud GmbH.
|
||||||
|
A copy can be found at https://discord.com/branding
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
The Rocket.Chat logo
|
||||||
|
|
||||||
|
Read our brand guidelines at: https://docs.rocket.chat/guides/brand-and-visual-guidelines
|
||||||
|
Find more elements for your content at: https://drive.google.com/drive/folders/1gaRMmpX2iuc8x9x5szbqdDSfaArjb19e?usp=sharing
|
||||||
|
Find more icons at: https://drive.google.com/drive/folders/1m097stjSL7k8FSYpbKV3_gvu83sPfeE2?usp=sharing
|
||||||
|
|
||||||
|
Rocket.Chat
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) <year> <copyright holders>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
# Makefile for building the project
|
||||||
|
|
||||||
|
app_name=spreed
|
||||||
|
|
||||||
|
project_dir=$(CURDIR)/../$(app_name)
|
||||||
|
build_dir=$(CURDIR)/build/artifacts
|
||||||
|
appstore_dir=$(build_dir)/appstore
|
||||||
|
source_dir=$(build_dir)/source
|
||||||
|
sign_dir=$(build_dir)/sign
|
||||||
|
package_name=$(app_name)
|
||||||
|
cert_dir=$(HOME)/.nextcloud/certificates
|
||||||
|
version+=main
|
||||||
|
|
||||||
|
all: dev-setup build-production
|
||||||
|
|
||||||
|
dev-setup: clean-dev npm-init build-dev
|
||||||
|
|
||||||
|
production-setup: clean-dev npm-init build-production
|
||||||
|
|
||||||
|
release: appstore create-tag
|
||||||
|
|
||||||
|
build-dev: composer-install-dev build-js
|
||||||
|
|
||||||
|
build-production: composer-install-production build-js-production
|
||||||
|
|
||||||
|
composer-install-dev:
|
||||||
|
composer install
|
||||||
|
|
||||||
|
composer-install-production:
|
||||||
|
composer install --no-dev --classmap-authoritative
|
||||||
|
|
||||||
|
build-js:
|
||||||
|
npm run dev
|
||||||
|
|
||||||
|
build-js-production:
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
watch-js:
|
||||||
|
npm run watch
|
||||||
|
|
||||||
|
test:
|
||||||
|
npm run test
|
||||||
|
|
||||||
|
lint:
|
||||||
|
npm run lint
|
||||||
|
|
||||||
|
lint-fix:
|
||||||
|
npm run lint:fix
|
||||||
|
|
||||||
|
npm-init:
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
npm-update:
|
||||||
|
npm update
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf js/*
|
||||||
|
rm -rf $(build_dir)
|
||||||
|
|
||||||
|
clean-dev: clean
|
||||||
|
rm -rf node_modules
|
||||||
|
rm -rf vendor
|
||||||
|
|
||||||
|
create-tag:
|
||||||
|
git tag -a v$(version) -m "Tagging the $(version) release."
|
||||||
|
git push origin v$(version)
|
||||||
|
|
||||||
|
appstore:
|
||||||
|
rm -rf $(build_dir)
|
||||||
|
mkdir -p $(sign_dir)
|
||||||
|
rsync -a \
|
||||||
|
--exclude=/build \
|
||||||
|
--exclude=composer.patches.json \
|
||||||
|
--exclude=docs \
|
||||||
|
--exclude=.drone.jsonnet \
|
||||||
|
--exclude=.drone.yml \
|
||||||
|
--exclude=.editorconfig \
|
||||||
|
--exclude=eslint.config.mjs \
|
||||||
|
--exclude=.git \
|
||||||
|
--exclude=.git-blame-ignore-revs \
|
||||||
|
--exclude=.gitattributes \
|
||||||
|
--exclude=.github \
|
||||||
|
--exclude=.gitignore \
|
||||||
|
--exclude=vitest.config.js \
|
||||||
|
--exclude=.l10nignore \
|
||||||
|
--exclude=mkdocs.yml \
|
||||||
|
--exclude=Makefile \
|
||||||
|
--exclude=node_modules \
|
||||||
|
--exclude=.patches \
|
||||||
|
--exclude=.php-cs-fixer.cache \
|
||||||
|
--exclude=.php-cs-fixer.dist.php \
|
||||||
|
--exclude=.php_cs.cache \
|
||||||
|
--exclude=.php_cs.dist \
|
||||||
|
--exclude=psalm.xml \
|
||||||
|
--exclude=README.md \
|
||||||
|
--exclude=.readthedocs.yaml \
|
||||||
|
--exclude=/recording \
|
||||||
|
--exclude=/rector.php \
|
||||||
|
--exclude=/redocly.yaml \
|
||||||
|
--exclude=/rspack.config.js \
|
||||||
|
--exclude=/site \
|
||||||
|
--exclude=/src \
|
||||||
|
--exclude=.stylelintignore \
|
||||||
|
--exclude=stylelint.config.js \
|
||||||
|
--exclude=.tx \
|
||||||
|
--exclude=tests \
|
||||||
|
--exclude=tsconfig.json \
|
||||||
|
--exclude=vendor/bamarni \
|
||||||
|
--exclude=vendor/cweagans \
|
||||||
|
--exclude=vendor/bin \
|
||||||
|
--exclude=vendor-bin \
|
||||||
|
--exclude=webpack.common.config.js \
|
||||||
|
--exclude=webpack.config.js \
|
||||||
|
$(project_dir)/ $(sign_dir)/$(app_name)
|
||||||
|
@if [ -f $(project_dir)/docs/changelogs/changelog-$(firstword $(subst ., ,$(version))).md ]; then \
|
||||||
|
cp $(project_dir)/docs/changelogs/changelog-$(firstword $(subst ., ,$(version))).md $(sign_dir)/$(app_name)/CHANGELOG.md; \
|
||||||
|
fi
|
||||||
|
@if [ -f $(cert_dir)/$(app_name).key ]; then \
|
||||||
|
echo "Signing app files…"; \
|
||||||
|
php ../../occ integrity:sign-app \
|
||||||
|
--privateKey=$(cert_dir)/$(app_name).key\
|
||||||
|
--certificate=$(cert_dir)/$(app_name).crt\
|
||||||
|
--path=$(sign_dir)/$(app_name); \
|
||||||
|
fi
|
||||||
|
tar -czf $(build_dir)/$(app_name).tar.gz \
|
||||||
|
-C $(sign_dir) $(app_name)
|
||||||
|
@if [ -f $(cert_dir)/$(app_name).key ]; then \
|
||||||
|
echo "Signing package…"; \
|
||||||
|
openssl dgst -sha512 -sign $(cert_dir)/$(app_name).key $(build_dir)/$(app_name).tar.gz | openssl base64; \
|
||||||
|
fi
|
||||||
@@ -0,0 +1,136 @@
|
|||||||
|
<!--
|
||||||
|
- SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
- SPDX-License-Identifier: CC0-1.0
|
||||||
|
-->
|
||||||
|
# Nextcloud Talk
|
||||||
|
|
||||||
|
[](https://api.reuse.software/info/github.com/nextcloud/spreed)
|
||||||
|
|
||||||
|
**A video & audio conferencing app for Nextcloud**
|
||||||
|
|
||||||
|
| Elevator |
|
||||||
|
|-------------------------------------------------------|
|
||||||
|
| [✨ Why is this so awesome?](#-why-is-this-so-awesome) |
|
||||||
|
| [📚 Documentation](#-documentation) |
|
||||||
|
| [🚧 Development Setup](#-development-setup) |
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## ✨ Why is this so awesome?
|
||||||
|
|
||||||
|
* 💬 **Chat** Nextcloud Talk comes with a simple text chat, allowing you to share or upload files from your Nextcloud Files app or local device and mention other participants.
|
||||||
|
* 👥 **Private, group, public and password protected calls!** Invite someone, a whole group or send a public link to invite to a call.
|
||||||
|
* 🌐 **Federated chats** Chat with other Nextcloud users on their servers
|
||||||
|
* 💻 **Screen sharing!** Share your screen with the participants of your call.
|
||||||
|
* 🚀 **Integration with other Nextcloud apps** like Files, Calendar, User status, Dashboard, Flow, Maps, Smart picker, Contacts, Deck, and many more.
|
||||||
|
* 🌉 **Sync with other chat solutions** With [Matterbridge](https://github.com/42wim/matterbridge/) being integrated in Talk, you can easily sync a lot of other chat solutions to Nextcloud Talk and vice-versa.
|
||||||
|
|
||||||
|
More in the works for the [coming versions](https://github.com/nextcloud/spreed/milestones/).
|
||||||
|
|
||||||
|
If you have suggestions or problems, please [open an issue](https://github.com/nextcloud/spreed/issues) or contribute directly 🤓
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📚 Documentation
|
||||||
|
|
||||||
|
* **[👤 User system requirements](https://nextcloud-talk.readthedocs.io/en/latest/user-requirements/)**
|
||||||
|
* **[📙 User documentation](https://docs.nextcloud.com/server/latest/user_manual/en/talk/index.html)**
|
||||||
|
* **[💻 Server system requirements](https://nextcloud-talk.readthedocs.io/en/latest/system-requirements/)**
|
||||||
|
* **[📗 Administration documentation](https://nextcloud-talk.readthedocs.io/en/latest/#administration-documentation)**
|
||||||
|
* **[🤖 Bots/Webhooks documentation](https://nextcloud-talk.readthedocs.io/en/latest/bots/)**
|
||||||
|
* **[⚙️ API documentation](https://nextcloud-talk.readthedocs.io/en/latest/#talk-api)**
|
||||||
|
|
||||||
|
### 📦 Installing for Production
|
||||||
|
|
||||||
|
Nextcloud Talk is really easy to install. You just need to enable the app from the [Nextcloud App Store](https://apps.nextcloud.com/apps/spreed) and everything will work out of the box.
|
||||||
|
|
||||||
|
There are some scenarios (users behind strict firewalls / symmetric NATs) where a TURN server is needed. That's a bit more tricky to install. You can [find instructions in our documentation](https://nextcloud-talk.readthedocs.io/en/latest/TURN/) and the team behind the Nextcloud VM has developed a script that takes care of everything for you ([vm-talk.sh](https://github.com/nextcloud/vm/blob/master/apps/talk.sh)). The script is tested on the recent Ubuntu Server LTS. Please keep in mind that it's developed for the VM specifically and any issues should be reported in that repository, not here.
|
||||||
|
|
||||||
|
Here's a short [video](https://youtu.be/KdTsWIy4eN0) on how it's done.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🚧 Development Setup
|
||||||
|
|
||||||
|
1. Simply clone this repository into the `apps` folder of your Nextcloud development instance.
|
||||||
|
2. Run `make dev-setup` to install the dependencies.
|
||||||
|
3. Run `make build-js`.
|
||||||
|
4. Then activate it through the apps management. 🎉
|
||||||
|
5. To build the docs locally, install mkdocs locally: `apt install mkdocs mkdocs-bootstrap`.
|
||||||
|
|
||||||
|
Also see our **[step by step guide](https://nextcloud-talk.readthedocs.io/en/latest/developer-setup/)** on how to set up a full development environment.
|
||||||
|
|
||||||
|
### 🏎️ Faster frontend developing with HMR
|
||||||
|
|
||||||
|
You can enable HMR (Hot module replacement) to avoid page reloads when working on the frontend:
|
||||||
|
|
||||||
|
1. Install and enable [`hmr_enabler` app](https://github.com/nextcloud/hmr_enabler)
|
||||||
|
2. Run `npm run serve`
|
||||||
|
3. Open the normal Nextcloud server URL (not the URL given by above command)
|
||||||
|
|
||||||
|
We are also available on [our public Talk team conversation](https://cloud.nextcloud.com/call/c7fz9qpr), if you want to join the discussion.
|
||||||
|
|
||||||
|
### 🙈 Ignore code style updates in git blame
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||||
|
```
|
||||||
|
|
||||||
|
### 🌏 Testing federation locally
|
||||||
|
|
||||||
|
When testing federated conversations locally, some additional steps might be needed,
|
||||||
|
to improve the behaviour and allowing the servers to talk to each others:
|
||||||
|
|
||||||
|
1. Allow self-signed certificates
|
||||||
|
```shell
|
||||||
|
occ config:system:set sharing.federation.allowSelfSignedCertificates --value true --type bool
|
||||||
|
occ security:certificates:import /path/to/the/nextcloud.crt
|
||||||
|
occ security:certificates
|
||||||
|
```
|
||||||
|
2. Allow local servers to be remote servers
|
||||||
|
```shell
|
||||||
|
occ config:system:set allow_local_remote_servers --value true --type bool
|
||||||
|
```
|
||||||
|
|
||||||
|
Additionally you can enable debug mode that will list local users as federated users options
|
||||||
|
allowing you to federate with accounts on the same instance. Federation will still work
|
||||||
|
and use the full federation experience and opposed to the federated files sharing **not**
|
||||||
|
create a local share instead.
|
||||||
|
|
||||||
|
### 🪄 Useful tricks for testing video calls
|
||||||
|
|
||||||
|
#### 👥 Joining a test call with multiple users
|
||||||
|
|
||||||
|
* Send fake-stream (audio and video) in Firefox:
|
||||||
|
1. Open `about:config`
|
||||||
|
2. Search for `fake`
|
||||||
|
3. Toggle `media.navigator.streams.fake` to **true**
|
||||||
|
4. Set `media.navigator.audio.fake_frequency` to **60** for more pleasant sound experience
|
||||||
|
* Afterwards install the [Firefox Multi-Account Containers](https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/) addon
|
||||||
|
* Now you can create multiple account containers, log in with a different Nextcloud account on each of them and join the same call with multiple different users
|
||||||
|
|
||||||
|
#### 📸 Modifying available media devices
|
||||||
|
|
||||||
|
* Disable camera until reboot: `sudo modprobe -r uvcvideo`
|
||||||
|
* Re-enable camera: `sudo modprobe uvcvideo`
|
||||||
|
|
||||||
|
### 🔃 Milestones and Branches
|
||||||
|
|
||||||
|
#### Branches
|
||||||
|
|
||||||
|
In the Talk app we have one branch per Nextcloud server version. `stable*` branches of the app should always work with the same branch of the Nextcloud server.
|
||||||
|
This is only off close to releases of the server, to allow easier finishing of features, so we don't have to backport them.
|
||||||
|
|
||||||
|
#### Milestones
|
||||||
|
|
||||||
|
* `v17.0.0` - *Numeric* milestones are settled and waiting for their release or some final polishing
|
||||||
|
* `💛 Next Patch (27)` - The **next patch** milestone is for issues/PR that go into the next Dot-Release for the given Nextcloud version (in the example 27 - e.g. 17.0.1)
|
||||||
|
* `💚 Next Major (28)` - The **next major** milestone is for issues/PR that go into the next feature release for the new Major Nextcloud version (as there are Patch releases for 27, this would be 28)
|
||||||
|
* `💔 Backlog` - The **backlog** milestone is assigned to all remaining issues
|
||||||
|
|
||||||
|
You can always pick a task of any milestone, and we will help you to get it into the assigned milestone or also an earlier one if time permits. It's just a matter of having an overview and better visibility what we think should be worked on, but it's not exclusive.
|
||||||
|
|
||||||
|
### 💙 Contribution Guidelines
|
||||||
|
|
||||||
|
For more information please see the [guidelines for contributing](https://github.com/nextcloud/spreed/blob/main/.github/contributing.md) to this repository.
|
||||||
+204
@@ -0,0 +1,204 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
version = 1
|
||||||
|
SPDX-PackageName = "talk"
|
||||||
|
SPDX-PackageSupplier = "Nextcloud <info@nextcloud.com>"
|
||||||
|
SPDX-PackageDownloadLocation = "https://github.com/nextcloud/spreed/"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["l10n/**.js", "l10n/**.json"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2016 Nextcloud GmbH and Nextcloud contributors"
|
||||||
|
SPDX-License-Identifier = "AGPL-3.0-or-later"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["js/**.js.map", "js/**.js"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2016 Nextcloud GmbH and Nextcloud contributors"
|
||||||
|
SPDX-License-Identifier = "AGPL-3.0-or-later"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["openapi.json", "openapi-**.json", "src/types/openapi/**.ts"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2023 Nextcloud GmbH and Nextcloud contributors"
|
||||||
|
SPDX-License-Identifier = "AGPL-3.0-or-later"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = [".github/CODEOWNERS", ".github/ISSUE_TEMPLATE/1_bug_report.md", ".github/ISSUE_TEMPLATE/2_feature_request.md", ".github/ISSUE_TEMPLATE/3_bot_list.yml", ".github/contributing.md", ".github/dependabot.yml", ".github/pull_request_template.md", ".github/workflows/*.patch"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "none"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "docs/**.md"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2016 Nextcloud GmbH and Nextcloud contributors"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "tests/integration/features/**/**.feature"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2016 Nextcloud GmbH and Nextcloud contributors"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "tests/integration/spreedcheats/calendars/**.txt"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "none"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["package.json", "package-lock.json", ".git-blame-ignore-revs", "**/package.json", "**/package-lock.json", "composer.json", "composer.patches.json", "composer.lock", "**/composer.json", "**/composer.lock", ".gitignore", ".l10nignore", "psalm.xml", "tests/psalm-baseline.xml", "vendor-bin/**/composer.json", "vendor-bin/**/composer.lock", ".tx/config", "**/phpunit.xml", "tsconfig.json", "redocly.yaml"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "none"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["src/utils/media/effects/virtual-background/vendor/models/selfie_segmenter.tflite", "src/utils/media/effects/virtual-background/vendor/models/Model Card MediaPipe Selfie Segmentation.pdf", "src/utils/media/effects/virtual-background/vendor/README.md"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2019-2022 The MediaPipe Authors"
|
||||||
|
SPDX-License-Identifier = "Apache-2.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["img/app.svg", "img/app-dark.png", "img/app-dark.svg", "img/changelog.svg", "img/favicon.ico", "img/favicon.png", "img/favicon.svg", "img/favicon-mask.svg", "img/favicon-touch.png", "img/favicon-touch.svg"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Nextcloud GmbH <https://nextcloud.com/trademarks/>"
|
||||||
|
SPDX-License-Identifier = "LicenseRef-NextcloudTrademarks"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["img/bridge-bot.png", "img/bridge-services/irc.svg", "img/bridge-services/msteams.svg", "img/bridge-services/slack.svg", "img/bridge-services/steam.svg", "img/bridge-services/xmpp.svg", "img/icon-contacts-white.svg", "img/icon-conversation-event-bright.svg", "img/icon-conversation-event-dark.svg", "img/icon-conversation-federation-bright.svg", "img/icon-conversation-federation-dark.svg", "img/icon-conversation-group-bright.svg", "img/icon-conversation-group-dark.svg", "img/icon-conversation-mail-bright.svg", "img/icon-conversation-mail-dark.svg", "img/icon-conversation-password-bright.svg", "img/icon-conversation-password-dark.svg", "img/icon-conversation-phone-bright.svg", "img/icon-conversation-phone-dark.svg", "img/icon-conversation-public-bright.svg", "img/icon-conversation-public-dark.svg", "img/icon-conversation-text-bright.svg", "img/icon-conversation-text-dark.svg", "img/icon-conversation-user-bright.svg", "img/icon-conversation-user-dark.svg", "img/icon-event-white.svg", "img/icon-mail-white.svg", "img/icon-password-white.svg", "img/icon-phone-white.svg", "img/icon-public-white.svg", "img/icon-team-white.svg", "img/icon-text-white.svg", "img/icon-user-white.svg", "img/phone.png", "img/material-icons/*.svg"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2018-2025 Google LLC"
|
||||||
|
SPDX-License-Identifier = "Apache-2.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/dashboard/**.png"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Nextcloud GmbH <https://nextcloud.com/trademarks/>"
|
||||||
|
SPDX-License-Identifier = "LicenseRef-NextcloudTrademarks"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/emojis/**.gif"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Google LLC"
|
||||||
|
SPDX-License-Identifier = "CC-BY-4.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/bridge-services/discord.svg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Discord Inc."
|
||||||
|
SPDX-License-Identifier = "LicenseRef-Discord"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/bridge-services/matrix.svg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Matrix.org"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/bridge-services/mattermost.svg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Mattermost, Inc"
|
||||||
|
SPDX-License-Identifier = "LicenseRef-Mattermost"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/bridge-services/rocketchat.svg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Mattermost, Inc"
|
||||||
|
SPDX-License-Identifier = "LicenseRef-RocketChat"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/bridge-services/telegram.svg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Telegram"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/bridge-services/zulip.svg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "The Zulip team"
|
||||||
|
SPDX-License-Identifier = "MIT"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["docs/screenshotplaceholders/placeholder-1.jpeg", "docs/screenshotplaceholders/placeholder-2.jpeg", "docs/screenshotplaceholders/placeholder-4.jpeg", "docs/screenshotplaceholders/placeholder-5.jpeg", "docs/screenshotplaceholders/placeholder-7.jpeg"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Nextcloud GmbH and Nextcloud contributors"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "docs/screenshotplaceholders/placeholder-0.jpeg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2021 Mart Production"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "docs/screenshotplaceholders/placeholder-3.jpeg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2019 Sound On"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["docs/screenshotplaceholders/placeholder-6.jpeg", "docs/screenshotplaceholders/placeholder-8.jpeg"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2021 Antoni Shkraba"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["img/join_call.flac", "img/join_call.ogg", "img/leave_call.flac", "img/leave_call.ogg"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Marco Ambrosini <marcoambrosini@proton.me>"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["img/LibremPhoneCall.flac", "img/LibremPhoneCall.ogg"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2017 Feandesign https://soundcloud.com/feandesign"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/1_office.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Breather, https://stocksnap.io/author/746"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/2_home.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Naomi Hébert, https://stocksnap.io/author/40931"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/3_abstract.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "HD Wallpapers, https://stocksnap.io/author/hdwallpapers"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/4_beach.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Flo Dahm, https://stocksnap.io/author/flodahm"
|
||||||
|
SPDX-License-Identifier = "CC-BY-SA-4.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/5_park.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Basile Morin, https://commons.wikimedia.org/wiki/User:Basile_Morin"
|
||||||
|
SPDX-License-Identifier = "CC-BY-SA-4.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/6_theater.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Pietro Tessarin"
|
||||||
|
SPDX-License-Identifier = "CC-BY-SA-4.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/7_library.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Diliff, https://commons.wikimedia.org/wiki/User:Diliff"
|
||||||
|
SPDX-License-Identifier = "CC-BY-SA-4.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "img/backgrounds/8_space_station.jpg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Karen Nyberg"
|
||||||
|
SPDX-License-Identifier = "LicenseRef-Nasa"
|
||||||
@@ -0,0 +1,169 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
- SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
- SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||||
|
<id>spreed</id>
|
||||||
|
<name>Talk</name>
|
||||||
|
<summary><![CDATA[Chat, video & audio-conferencing using WebRTC]]></summary>
|
||||||
|
<description>< being integrated in Talk, you can easily sync a lot of other chat solutions to Nextcloud Talk and vice-versa.
|
||||||
|
]]></description>
|
||||||
|
|
||||||
|
<version>22.0.12</version>
|
||||||
|
<licence>agpl</licence>
|
||||||
|
|
||||||
|
<author>Anna Larch</author>
|
||||||
|
<author>Daniel Calviño Sánchez</author>
|
||||||
|
<author>Dorra Jaouad</author>
|
||||||
|
<author>Grigorii Shartsev</author>
|
||||||
|
<author>Ivan Sein</author>
|
||||||
|
<author>Joas Schilling</author>
|
||||||
|
<author>Julius Linus</author>
|
||||||
|
<author>Maksim Sukharev</author>
|
||||||
|
<author>Marcel Hibbe</author>
|
||||||
|
<author>Marcel Müller</author>
|
||||||
|
<author>Sowjanya Kota</author>
|
||||||
|
|
||||||
|
<namespace>Talk</namespace>
|
||||||
|
|
||||||
|
<types>
|
||||||
|
<dav />
|
||||||
|
<prevent_group_restriction />
|
||||||
|
</types>
|
||||||
|
|
||||||
|
<documentation>
|
||||||
|
<user>https://docs.nextcloud.com/server/latest/user_manual/en/talk/index.html</user>
|
||||||
|
<admin>https://nextcloud-talk.readthedocs.io/en/latest/#administration-documentation</admin>
|
||||||
|
<developer>https://nextcloud-talk.readthedocs.io/en/latest/#developer-documentation</developer>
|
||||||
|
</documentation>
|
||||||
|
|
||||||
|
<category>multimedia</category>
|
||||||
|
<category>social</category>
|
||||||
|
<category>workflow</category>
|
||||||
|
|
||||||
|
<website>https://github.com/nextcloud/spreed</website>
|
||||||
|
<discussion>https://help.nextcloud.com/c/support/talk/52</discussion>
|
||||||
|
<bugs>https://github.com/nextcloud/spreed/issues</bugs>
|
||||||
|
<repository>https://github.com/nextcloud/spreed.git</repository>
|
||||||
|
|
||||||
|
<screenshot>https://raw.githubusercontent.com/nextcloud/spreed/main/docs/call-in-action.jpg</screenshot>
|
||||||
|
<screenshot>https://raw.githubusercontent.com/nextcloud/spreed/main/docs/chat.png</screenshot>
|
||||||
|
<screenshot>https://raw.githubusercontent.com/nextcloud/spreed/main/docs/file-darg-and-drop.png</screenshot>
|
||||||
|
<screenshot>https://raw.githubusercontent.com/nextcloud/spreed/main/docs/screensharing.png</screenshot>
|
||||||
|
<screenshot>https://raw.githubusercontent.com/nextcloud/spreed/main/docs/video-verfication.png</screenshot>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<nextcloud min-version="32" max-version="32" />
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<background-jobs>
|
||||||
|
<job>OCA\Talk\BackgroundJob\CheckCertificates</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\CheckHostedSignalingServer</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\CheckMatterbridges</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\ExpireChatMessages</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\ExpireObjectRooms</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\ExpireSignalingMessage</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\LockInactiveRooms</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\MaximumCallDuration</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\Reminder</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\RemoveEmptyRooms</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\ResetAssignedSignalingServer</job>
|
||||||
|
<job>OCA\Talk\BackgroundJob\RetryNotificationsJob</job>
|
||||||
|
</background-jobs>
|
||||||
|
|
||||||
|
<repair-steps>
|
||||||
|
<pre-migration>
|
||||||
|
<step>OCA\Talk\Migration\FixNamespaceInDatabaseTables</step>
|
||||||
|
</pre-migration>
|
||||||
|
<post-migration>
|
||||||
|
<step>OCA\Talk\Migration\ClearResourceAccessCache</step>
|
||||||
|
<step>OCA\Talk\Migration\CacheUserDisplayNames</step>
|
||||||
|
<step>OCA\Talk\Migration\FixLastReadMessageZero</step>
|
||||||
|
<step>OCA\Talk\Migration\RegenerateSignalingKeys</step>
|
||||||
|
</post-migration>
|
||||||
|
</repair-steps>
|
||||||
|
|
||||||
|
<commands>
|
||||||
|
<command>OCA\Talk\Command\Bot\Install</command>
|
||||||
|
<command>OCA\Talk\Command\Bot\Create</command>
|
||||||
|
<command>OCA\Talk\Command\Bot\ListBots</command>
|
||||||
|
<command>OCA\Talk\Command\Bot\Remove</command>
|
||||||
|
<command>OCA\Talk\Command\Bot\State</command>
|
||||||
|
<command>OCA\Talk\Command\Bot\Setup</command>
|
||||||
|
<command>OCA\Talk\Command\Bot\Uninstall</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\Developer\AgeChatMessages</command>
|
||||||
|
<command>OCA\Talk\Command\Developer\UpdateDocs</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\Monitor\Calls</command>
|
||||||
|
<command>OCA\Talk\Command\Monitor\HasActiveCalls</command>
|
||||||
|
<command>OCA\Talk\Command\Monitor\Room</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\PhoneNumber\AddPhoneNumber</command>
|
||||||
|
<command>OCA\Talk\Command\PhoneNumber\FindPhoneNumber</command>
|
||||||
|
<command>OCA\Talk\Command\PhoneNumber\ImportPhoneNumbers</command>
|
||||||
|
<command>OCA\Talk\Command\PhoneNumber\RemoveUser</command>
|
||||||
|
<command>OCA\Talk\Command\PhoneNumber\RemovePhoneNumber</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\Recording\Consent</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\Room\Add</command>
|
||||||
|
<command>OCA\Talk\Command\Room\Create</command>
|
||||||
|
<command>OCA\Talk\Command\Room\Delete</command>
|
||||||
|
<command>OCA\Talk\Command\Room\Demote</command>
|
||||||
|
<command>OCA\Talk\Command\Room\Promote</command>
|
||||||
|
<command>OCA\Talk\Command\Room\Remove</command>
|
||||||
|
<command>OCA\Talk\Command\Room\Update</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\Signaling\Add</command>
|
||||||
|
<command>OCA\Talk\Command\Signaling\Delete</command>
|
||||||
|
<command>OCA\Talk\Command\Signaling\ListCommand</command>
|
||||||
|
<command>OCA\Talk\Command\Signaling\VerifyKeys</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\Stun\Add</command>
|
||||||
|
<command>OCA\Talk\Command\Stun\Delete</command>
|
||||||
|
<command>OCA\Talk\Command\Stun\ListCommand</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\Turn\Add</command>
|
||||||
|
<command>OCA\Talk\Command\Turn\Delete</command>
|
||||||
|
<command>OCA\Talk\Command\Turn\ListCommand</command>
|
||||||
|
|
||||||
|
<command>OCA\Talk\Command\User\Remove</command>
|
||||||
|
<command>OCA\Talk\Command\User\TransferOwnership</command>
|
||||||
|
</commands>
|
||||||
|
|
||||||
|
<settings>
|
||||||
|
<admin>OCA\Talk\Settings\Admin\AdminSettings</admin>
|
||||||
|
<admin-section>OCA\Talk\Settings\Admin\Section</admin-section>
|
||||||
|
</settings>
|
||||||
|
|
||||||
|
<activity>
|
||||||
|
<settings>
|
||||||
|
<setting>OCA\Talk\Activity\Setting</setting>
|
||||||
|
</settings>
|
||||||
|
|
||||||
|
<providers>
|
||||||
|
<provider>OCA\Talk\Activity\Provider\Invitation</provider>
|
||||||
|
<provider>OCA\Talk\Activity\Provider\Call</provider>
|
||||||
|
</providers>
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
<contactsmenu>
|
||||||
|
<provider>OCA\Talk\ContactsMenu\Providers\CallProvider</provider>
|
||||||
|
</contactsmenu>
|
||||||
|
|
||||||
|
<collaboration>
|
||||||
|
<plugins>
|
||||||
|
<plugin type="collaborator-search" share-type="SHARE_TYPE_ROOM">OCA\Talk\Collaboration\Collaborators\RoomPlugin</plugin>
|
||||||
|
</plugins>
|
||||||
|
</collaboration>
|
||||||
|
</info>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
return array_merge_recursive(
|
||||||
|
include(__DIR__ . '/routes/routesAvatarController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesBanController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesBotController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesBreakoutRoomController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesCalendarIntegrationController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesCallController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesCertificateController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesFederationController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesFilesIntegrationController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesGuestController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesHostedSignalingServerController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesMatterbridgeController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesMatterbridgeSettingsController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesPageController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesPollController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesPublicShareAuthController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesReactionController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesRecordingController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesRoomController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesSettingsController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesSignalingController.php'),
|
||||||
|
include(__DIR__ . '/routes/routesTempAvatarController.php'),
|
||||||
|
);
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '^[a-z0-9]{4,30}$',
|
||||||
|
];
|
||||||
|
$requirementsWithSize = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '^[a-z0-9]{4,30}$',
|
||||||
|
'size' => '(64|512)',
|
||||||
|
];
|
||||||
|
$requirementsNewWithSize = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'size' => '(64|512)',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::uploadAvatar() */
|
||||||
|
['name' => 'Avatar#uploadAvatar', 'url' => '/api/{apiVersion}/room/{token}/avatar', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::emojiAvatar() */
|
||||||
|
['name' => 'Avatar#emojiAvatar', 'url' => '/api/{apiVersion}/room/{token}/avatar/emoji', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::getAvatar() */
|
||||||
|
['name' => 'Avatar#getAvatar', 'url' => '/api/{apiVersion}/room/{token}/avatar', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::getAvatarDark() */
|
||||||
|
['name' => 'Avatar#getAvatarDark', 'url' => '/api/{apiVersion}/room/{token}/avatar/dark', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::deleteAvatar() */
|
||||||
|
['name' => 'Avatar#deleteAvatar', 'url' => '/api/{apiVersion}/room/{token}/avatar', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::getUserProxyAvatarWithoutRoom() */
|
||||||
|
['name' => 'Avatar#getUserProxyAvatarWithoutRoom', 'url' => '/api/{apiVersion}/proxy/new/user-avatar/{size}', 'verb' => 'GET', 'requirements' => $requirementsNewWithSize],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::getUserProxyAvatarDarkWithoutRoom() */
|
||||||
|
['name' => 'Avatar#getUserProxyAvatarDarkWithoutRoom', 'url' => '/api/{apiVersion}/proxy/new/user-avatar/{size}/dark', 'verb' => 'GET', 'requirements' => $requirementsNewWithSize],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::getUserProxyAvatar() */
|
||||||
|
['name' => 'Avatar#getUserProxyAvatar', 'url' => '/api/{apiVersion}/proxy/{token}/user-avatar/{size}', 'verb' => 'GET', 'requirements' => $requirementsWithSize],
|
||||||
|
/** @see \OCA\Talk\Controller\AvatarController::getUserProxyAvatarDark() */
|
||||||
|
['name' => 'Avatar#getUserProxyAvatarDark', 'url' => '/api/{apiVersion}/proxy/{token}/user-avatar/{size}/dark', 'verb' => 'GET', 'requirements' => $requirementsWithSize],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\BanController::banActor() */
|
||||||
|
['name' => 'Ban#banActor', 'url' => '/api/{apiVersion}/ban/{token}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BanController::listBans() */
|
||||||
|
['name' => 'Ban#listBans', 'url' => '/api/{apiVersion}/ban/{token}', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BanController::unbanActor() */
|
||||||
|
['name' => 'Ban#unbanActor', 'url' => '/api/{apiVersion}/ban/{token}/{banId}', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
$requirementsWithToken = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
$requirementsWithMessageId = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
'messageId' => '[0-9]+',
|
||||||
|
];
|
||||||
|
|
||||||
|
$requirementsWithBotId = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
'botId' => '[0-9]+',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\BotController::sendMessage() */
|
||||||
|
['name' => 'Bot#sendMessage', 'url' => '/api/{apiVersion}/bot/{token}/message', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\BotController::react() */
|
||||||
|
['name' => 'Bot#react', 'url' => '/api/{apiVersion}/bot/{token}/reaction/{messageId}', 'verb' => 'POST', 'requirements' => $requirementsWithMessageId],
|
||||||
|
/** @see \OCA\Talk\Controller\BotController::deleteReaction() */
|
||||||
|
['name' => 'Bot#deleteReaction', 'url' => '/api/{apiVersion}/bot/{token}/reaction/{messageId}', 'verb' => 'DELETE', 'requirements' => $requirementsWithMessageId],
|
||||||
|
/** @see \OCA\Talk\Controller\BotController::adminListBots() */
|
||||||
|
['name' => 'Bot#adminListBots', 'url' => '/api/{apiVersion}/bot/admin', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BotController::listBots() */
|
||||||
|
['name' => 'Bot#listBots', 'url' => '/api/{apiVersion}/bot/{token}', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\BotController::enableBot() */
|
||||||
|
['name' => 'Bot#enableBot', 'url' => '/api/{apiVersion}/bot/{token}/{botId}', 'verb' => 'POST', 'requirements' => $requirementsWithBotId],
|
||||||
|
/** @see \OCA\Talk\Controller\BotController::disableBot() */
|
||||||
|
['name' => 'Bot#disableBot', 'url' => '/api/{apiVersion}/bot/{token}/{botId}', 'verb' => 'DELETE', 'requirements' => $requirementsWithBotId],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::configureBreakoutRooms() */
|
||||||
|
['name' => 'BreakoutRoom#configureBreakoutRooms', 'url' => '/api/{apiVersion}/breakout-rooms/{token}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::removeBreakoutRooms() */
|
||||||
|
['name' => 'BreakoutRoom#removeBreakoutRooms', 'url' => '/api/{apiVersion}/breakout-rooms/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::broadcastChatMessage() */
|
||||||
|
['name' => 'BreakoutRoom#broadcastChatMessage', 'url' => '/api/{apiVersion}/breakout-rooms/{token}/broadcast', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::applyAttendeeMap() */
|
||||||
|
['name' => 'BreakoutRoom#applyAttendeeMap', 'url' => '/api/{apiVersion}/breakout-rooms/{token}/attendees', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::requestAssistance() */
|
||||||
|
['name' => 'BreakoutRoom#requestAssistance', 'url' => '/api/{apiVersion}/breakout-rooms/{token}/request-assistance', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::resetRequestForAssistance() */
|
||||||
|
['name' => 'BreakoutRoom#resetRequestForAssistance', 'url' => '/api/{apiVersion}/breakout-rooms/{token}/request-assistance', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::startBreakoutRooms() */
|
||||||
|
['name' => 'BreakoutRoom#startBreakoutRooms', 'url' => '/api/{apiVersion}/breakout-rooms/{token}/rooms', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::stopBreakoutRooms() */
|
||||||
|
['name' => 'BreakoutRoom#stopBreakoutRooms', 'url' => '/api/{apiVersion}/breakout-rooms/{token}/rooms', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\BreakoutRoomController::switchBreakoutRoom() */
|
||||||
|
['name' => 'BreakoutRoom#switchBreakoutRoom', 'url' => '/api/{apiVersion}/breakout-rooms/{token}/switch', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v4)',
|
||||||
|
];
|
||||||
|
|
||||||
|
$requirementsWithToken = [
|
||||||
|
'apiVersion' => '(v4)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\CalendarIntegrationController::getDashboardEvents() */
|
||||||
|
['name' => 'CalendarIntegration#getDashboardEvents', 'url' => '/api/{apiVersion}/dashboard/events', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CalendarIntegrationController::getMutualEvents() */
|
||||||
|
['name' => 'CalendarIntegration#getMutualEvents', 'url' => '/api/{apiVersion}/room/{token}/mutual-events', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v4)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::getPeersForCall() */
|
||||||
|
['name' => 'Call#getPeersForCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallNotificationController::state() */
|
||||||
|
['name' => 'CallNotification#state', 'url' => '/api/{apiVersion}/call/{token}/notification-state', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::downloadParticipantsForCall() */
|
||||||
|
['name' => 'Call#downloadParticipantsForCall', 'url' => '/api/{apiVersion}/call/{token}/download', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::joinCall() */
|
||||||
|
['name' => 'Call#joinCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::joinFederatedCall() */
|
||||||
|
['name' => 'Call#joinFederatedCall', 'url' => '/api/{apiVersion}/call/{token}/federation', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::ringAttendee() */
|
||||||
|
['name' => 'Call#ringAttendee', 'url' => '/api/{apiVersion}/call/{token}/ring/{attendeeId}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::sipDialOut() */
|
||||||
|
['name' => 'Call#sipDialOut', 'url' => '/api/{apiVersion}/call/{token}/dialout/{attendeeId}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::updateCallFlags() */
|
||||||
|
['name' => 'Call#updateCallFlags', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'PUT', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::updateFederatedCallFlags() */
|
||||||
|
['name' => 'Call#updateFederatedCallFlags', 'url' => '/api/{apiVersion}/call/{token}/federation', 'verb' => 'PUT', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::leaveCall() */
|
||||||
|
['name' => 'Call#leaveCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\CallController::leaveFederatedCall() */
|
||||||
|
['name' => 'Call#leaveFederatedCall', 'url' => '/api/{apiVersion}/call/{token}/federation', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\CertificateController::getCertificateExpiration() */
|
||||||
|
['name' => 'Certificate#getCertificateExpiration', 'url' => '/api/{apiVersion}/certificate/expiration', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\FederationController::acceptShare() */
|
||||||
|
['name' => 'Federation#acceptShare', 'url' => 'api/{apiVersion}/federation/invitation/{id}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\FederationController::rejectShare() */
|
||||||
|
['name' => 'Federation#rejectShare', 'url' => 'api/{apiVersion}/federation/invitation/{id}', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\FederationController::getShares() */
|
||||||
|
['name' => 'Federation#getShares', 'url' => 'api/{apiVersion}/federation/invitation', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirementsFile = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'fileId' => '.+',
|
||||||
|
];
|
||||||
|
$requirementsShare = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'shareToken' => '.+',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\FilesIntegrationController::getRoomByFileId() */
|
||||||
|
['name' => 'FilesIntegration#getRoomByFileId', 'url' => '/api/{apiVersion}/file/{fileId}', 'verb' => 'GET', 'requirements' => $requirementsFile],
|
||||||
|
/** @see \OCA\Talk\Controller\FilesIntegrationController::getRoomByShareToken() */
|
||||||
|
['name' => 'FilesIntegration#getRoomByShareToken', 'url' => '/api/{apiVersion}/publicshare/{shareToken}', 'verb' => 'GET', 'requirements' => $requirementsShare],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\GuestController::setDisplayName() */
|
||||||
|
['name' => 'Guest#setDisplayName', 'url' => '/api/{apiVersion}/guest/{token}/name', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\HostedSignalingServerController::requestTrial() */
|
||||||
|
['name' => 'HostedSignalingServer#requestTrial', 'url' => '/api/{apiVersion}/hostedsignalingserver/requesttrial', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\HostedSignalingServerController::auth() */
|
||||||
|
['name' => 'HostedSignalingServer#auth', 'url' => '/api/{apiVersion}/hostedsignalingserver/auth', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\HostedSignalingServerController::deleteAccount() */
|
||||||
|
['name' => 'HostedSignalingServer#deleteAccount', 'url' => '/api/{apiVersion}/hostedsignalingserver/delete', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\MatterbridgeController::getBridgeOfRoom() */
|
||||||
|
['name' => 'Matterbridge#getBridgeOfRoom', 'url' => '/api/{apiVersion}/bridge/{token}', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\MatterbridgeController::getBridgeProcessState() */
|
||||||
|
['name' => 'Matterbridge#getBridgeProcessState', 'url' => '/api/{apiVersion}/bridge/{token}/process', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\MatterbridgeController::editBridgeOfRoom() */
|
||||||
|
['name' => 'Matterbridge#editBridgeOfRoom', 'url' => '/api/{apiVersion}/bridge/{token}', 'verb' => 'PUT', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\MatterbridgeController::deleteBridgeOfRoom() */
|
||||||
|
['name' => 'Matterbridge#deleteBridgeOfRoom', 'url' => '/api/{apiVersion}/bridge/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\MatterbridgeSettingsController::stopAllBridges() */
|
||||||
|
['name' => 'MatterbridgeSettings#stopAllBridges', 'url' => '/api/{apiVersion}/bridge', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\MatterbridgeSettingsController::getMatterbridgeVersion() */
|
||||||
|
['name' => 'MatterbridgeSettings#getMatterbridgeVersion', 'url' => '/api/{apiVersion}/bridge/version', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'routes' => [
|
||||||
|
/** @see \OCA\Talk\Controller\PageController::index() */
|
||||||
|
['name' => 'Page#index', 'url' => '/', 'verb' => 'GET'],
|
||||||
|
/** @see \OCA\Talk\Controller\PageController::notFound() */
|
||||||
|
['name' => 'Page#notFound', 'url' => '/not-found', 'verb' => 'GET'],
|
||||||
|
/** @see \OCA\Talk\Controller\PageController::duplicateSession() */
|
||||||
|
['name' => 'Page#duplicateSession', 'url' => '/duplicate-session', 'verb' => 'GET'],
|
||||||
|
/** @see \OCA\Talk\Controller\PageController::showCall() */
|
||||||
|
['name' => 'Page#showCall', 'url' => '/call/{token}', 'root' => '', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\PageController::authenticatePassword() */
|
||||||
|
['name' => 'Page#authenticatePassword', 'url' => '/call/{token}', 'root' => '', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\PageController::recording() */
|
||||||
|
['name' => 'Page#recording', 'url' => '/call/{token}/recording', 'root' => '', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
$requirementsWithPollId = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
'pollId' => '\d+',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\PollController::createPoll() */
|
||||||
|
['name' => 'Poll#createPoll', 'url' => '/api/{apiVersion}/poll/{token}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\PollController::updateDraftPoll() */
|
||||||
|
['name' => 'Poll#updateDraftPoll', 'url' => '/api/{apiVersion}/poll/{token}/draft/{pollId}', 'verb' => 'POST', 'requirements' => $requirementsWithPollId],
|
||||||
|
/** @see \OCA\Talk\Controller\PollController::getAllDraftPolls() */
|
||||||
|
['name' => 'Poll#getAllDraftPolls', 'url' => '/api/{apiVersion}/poll/{token}/drafts', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\PollController::showPoll() */
|
||||||
|
['name' => 'Poll#showPoll', 'url' => '/api/{apiVersion}/poll/{token}/{pollId}', 'verb' => 'GET', 'requirements' => $requirementsWithPollId],
|
||||||
|
/** @see \OCA\Talk\Controller\PollController::votePoll() */
|
||||||
|
['name' => 'Poll#votePoll', 'url' => '/api/{apiVersion}/poll/{token}/{pollId}', 'verb' => 'POST', 'requirements' => $requirementsWithPollId],
|
||||||
|
/** @see \OCA\Talk\Controller\PollController::closePoll() */
|
||||||
|
['name' => 'Poll#closePoll', 'url' => '/api/{apiVersion}/poll/{token}/{pollId}', 'verb' => 'DELETE', 'requirements' => $requirementsWithPollId],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\PublicShareAuthController::createRoom() */
|
||||||
|
['name' => 'PublicShareAuth#createRoom', 'url' => '/api/{apiVersion}/publicshareauth', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
'messageId' => '[0-9]+',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\ReactionController::react() */
|
||||||
|
['name' => 'Reaction#react', 'url' => '/api/{apiVersion}/reaction/{token}/{messageId}', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\ReactionController::delete() */
|
||||||
|
['name' => 'Reaction#delete', 'url' => '/api/{apiVersion}/reaction/{token}/{messageId}', 'verb' => 'DELETE', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\ReactionController::getReactions() */
|
||||||
|
['name' => 'Reaction#getReactions', 'url' => '/api/{apiVersion}/reaction/{token}/{messageId}', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
$requirementsWithToken = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\RecordingController::getWelcomeMessage() */
|
||||||
|
['name' => 'Recording#getWelcomeMessage', 'url' => '/api/{apiVersion}/recording/welcome/{serverId}', 'verb' => 'GET', 'requirements' => array_merge($requirements, [
|
||||||
|
'serverId' => '\d+',
|
||||||
|
])],
|
||||||
|
/** @see \OCA\Talk\Controller\RecordingController::backend() */
|
||||||
|
['name' => 'Recording#backend', 'url' => '/api/{apiVersion}/recording/backend', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\RecordingController::start() */
|
||||||
|
['name' => 'Recording#start', 'url' => '/api/{apiVersion}/recording/{token}', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RecordingController::stop() */
|
||||||
|
['name' => 'Recording#stop', 'url' => '/api/{apiVersion}/recording/{token}', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RecordingController::store() */
|
||||||
|
['name' => 'Recording#store', 'url' => '/api/{apiVersion}/recording/{token}/store', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RecordingController::notificationDismiss() */
|
||||||
|
['name' => 'Recording#notificationDismiss', 'url' => '/api/{apiVersion}/recording/{token}/notification', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RecordingController::shareToChat() */
|
||||||
|
['name' => 'Recording#shareToChat', 'url' => '/api/{apiVersion}/recording/{token}/share-chat', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,135 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v4)',
|
||||||
|
];
|
||||||
|
|
||||||
|
$requirementsWithToken = [
|
||||||
|
'apiVersion' => '(v4)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getRooms() */
|
||||||
|
['name' => 'Room#getRooms', 'url' => '/api/{apiVersion}/room', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getListedRooms() */
|
||||||
|
['name' => 'Room#getListedRooms', 'url' => '/api/{apiVersion}/listed-room', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::createRoom() */
|
||||||
|
['name' => 'Room#createRoom', 'url' => '/api/{apiVersion}/room', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getNoteToSelfConversation() */
|
||||||
|
['name' => 'Room#getNoteToSelfConversation', 'url' => '/api/{apiVersion}/room/note-to-self', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getSingleRoom() */
|
||||||
|
['name' => 'Room#getSingleRoom', 'url' => '/api/{apiVersion}/room/{token}', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getBreakoutRooms() */
|
||||||
|
['name' => 'Room#getBreakoutRooms', 'url' => '/api/{apiVersion}/room/{token}/breakout-rooms', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::renameRoom() */
|
||||||
|
['name' => 'Room#renameRoom', 'url' => '/api/{apiVersion}/room/{token}', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::deleteRoom() */
|
||||||
|
['name' => 'Room#deleteRoom', 'url' => '/api/{apiVersion}/room/{token}', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::unbindRoomFromObject() */
|
||||||
|
['name' => 'Room#unbindRoomFromObject', 'url' => '/api/{apiVersion}/room/{token}/object', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::makePublic() */
|
||||||
|
['name' => 'Room#makePublic', 'url' => '/api/{apiVersion}/room/{token}/public', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::makePrivate() */
|
||||||
|
['name' => 'Room#makePrivate', 'url' => '/api/{apiVersion}/room/{token}/public', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setDescription() */
|
||||||
|
['name' => 'Room#setDescription', 'url' => '/api/{apiVersion}/room/{token}/description', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setReadOnly() */
|
||||||
|
['name' => 'Room#setReadOnly', 'url' => '/api/{apiVersion}/room/{token}/read-only', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setListable() */
|
||||||
|
['name' => 'Room#setListable', 'url' => '/api/{apiVersion}/room/{token}/listable', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setPassword() */
|
||||||
|
['name' => 'Room#setPassword', 'url' => '/api/{apiVersion}/room/{token}/password', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setPermissions() */
|
||||||
|
['name' => 'Room#setPermissions', 'url' => '/api/{apiVersion}/room/{token}/permissions/{mode}', 'verb' => 'PUT', 'requirements' => array_merge($requirementsWithToken, [
|
||||||
|
'mode' => '(call|default)',
|
||||||
|
])],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getParticipants() */
|
||||||
|
['name' => 'Room#getParticipants', 'url' => '/api/{apiVersion}/room/{token}/participants', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getBreakoutRoomParticipants() */
|
||||||
|
['name' => 'Room#getBreakoutRoomParticipants', 'url' => '/api/{apiVersion}/room/{token}/breakout-rooms/participants', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::addParticipantToRoom() */
|
||||||
|
['name' => 'Room#addParticipantToRoom', 'url' => '/api/{apiVersion}/room/{token}/participants', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::removeSelfFromRoom() */
|
||||||
|
['name' => 'Room#removeSelfFromRoom', 'url' => '/api/{apiVersion}/room/{token}/participants/self', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::removeAttendeeFromRoom() */
|
||||||
|
['name' => 'Room#removeAttendeeFromRoom', 'url' => '/api/{apiVersion}/room/{token}/attendees', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setAttendeePermissions() */
|
||||||
|
['name' => 'Room#setAttendeePermissions', 'url' => '/api/{apiVersion}/room/{token}/attendees/permissions', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setAllAttendeesPermissions() */
|
||||||
|
['name' => 'Room#setAllAttendeesPermissions', 'url' => '/api/{apiVersion}/room/{token}/attendees/permissions/all', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::joinRoom() */
|
||||||
|
['name' => 'Room#joinRoom', 'url' => '/api/{apiVersion}/room/{token}/participants/active', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::joinFederatedRoom() */
|
||||||
|
['name' => 'Room#joinFederatedRoom', 'url' => '/api/{apiVersion}/room/{token}/federation/active', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::resendInvitations() */
|
||||||
|
['name' => 'Room#resendInvitations', 'url' => '/api/{apiVersion}/room/{token}/participants/resend-invitations', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::leaveRoom() */
|
||||||
|
['name' => 'Room#leaveRoom', 'url' => '/api/{apiVersion}/room/{token}/participants/active', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::leaveFederatedRoom() */
|
||||||
|
['name' => 'Room#leaveFederatedRoom', 'url' => '/api/{apiVersion}/room/{token}/federation/active', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setSessionState() */
|
||||||
|
['name' => 'Room#setSessionState', 'url' => '/api/{apiVersion}/room/{token}/participants/state', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::promoteModerator() */
|
||||||
|
['name' => 'Room#promoteModerator', 'url' => '/api/{apiVersion}/room/{token}/moderators', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::demoteModerator() */
|
||||||
|
['name' => 'Room#demoteModerator', 'url' => '/api/{apiVersion}/room/{token}/moderators', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::addToFavorites() */
|
||||||
|
['name' => 'Room#addToFavorites', 'url' => '/api/{apiVersion}/room/{token}/favorite', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::removeFromFavorites() */
|
||||||
|
['name' => 'Room#removeFromFavorites', 'url' => '/api/{apiVersion}/room/{token}/favorite', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::markConversationAsImportant() */
|
||||||
|
['name' => 'Room#markConversationAsImportant', 'url' => '/api/{apiVersion}/room/{token}/important', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::markConversationAsUnimportant() */
|
||||||
|
['name' => 'Room#markConversationAsUnimportant', 'url' => '/api/{apiVersion}/room/{token}/important', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::markConversationAsSensitive() */
|
||||||
|
['name' => 'Room#markConversationAsSensitive', 'url' => '/api/{apiVersion}/room/{token}/sensitive', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::markConversationAsInsensitive() */
|
||||||
|
['name' => 'Room#markConversationAsInsensitive', 'url' => '/api/{apiVersion}/room/{token}/sensitive', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::verifyDialInPin() */
|
||||||
|
['name' => 'Room#verifyDialInPin', 'url' => '/api/{apiVersion}/room/{token}/pin/{pin}', 'verb' => 'GET', 'requirements' => array_merge($requirementsWithToken, [
|
||||||
|
'pin' => '\d{7,32}',
|
||||||
|
]), 'postfix' => 'deprecated'],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::verifyDialInPin() */
|
||||||
|
['name' => 'Room#verifyDialInPin', 'url' => '/api/{apiVersion}/room/{token}/verify-dialin', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::verifyDialOutNumber() */
|
||||||
|
['name' => 'Room#verifyDialOutNumber', 'url' => '/api/{apiVersion}/room/{token}/verify-dialout', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::directDialIn() */
|
||||||
|
['name' => 'Room#directDialIn', 'url' => '/api/{apiVersion}/room/direct-dial-in', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::createGuestByDialIn() */
|
||||||
|
['name' => 'Room#createGuestByDialIn', 'url' => '/api/{apiVersion}/room/{token}/open-dial-in', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::rejectedDialOutRequest() */
|
||||||
|
['name' => 'Room#rejectedDialOutRequest', 'url' => '/api/{apiVersion}/room/{token}/rejected-dialout', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setNotificationLevel() */
|
||||||
|
['name' => 'Room#setNotificationLevel', 'url' => '/api/{apiVersion}/room/{token}/notify', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setNotificationCalls() */
|
||||||
|
['name' => 'Room#setNotificationCalls', 'url' => '/api/{apiVersion}/room/{token}/notify-calls', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setLobby() */
|
||||||
|
['name' => 'Room#setLobby', 'url' => '/api/{apiVersion}/room/{token}/webinar/lobby', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setSIPEnabled() */
|
||||||
|
['name' => 'Room#setSIPEnabled', 'url' => '/api/{apiVersion}/room/{token}/webinar/sip', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setRecordingConsent() */
|
||||||
|
['name' => 'Room#setRecordingConsent', 'url' => '/api/{apiVersion}/room/{token}/recording-consent', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setMessageExpiration() */
|
||||||
|
['name' => 'Room#setMessageExpiration', 'url' => '/api/{apiVersion}/room/{token}/message-expiration', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::getCapabilities() */
|
||||||
|
['name' => 'Room#getCapabilities', 'url' => '/api/{apiVersion}/room/{token}/capabilities', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::setMentionPermissions() */
|
||||||
|
['name' => 'Room#setMentionPermissions', 'url' => '/api/{apiVersion}/room/{token}/mention-permissions', 'verb' => 'PUT', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::archiveConversation() */
|
||||||
|
['name' => 'Room#archiveConversation', 'url' => '/api/{apiVersion}/room/{token}/archive', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::unarchiveConversation() */
|
||||||
|
['name' => 'Room#unarchiveConversation', 'url' => '/api/{apiVersion}/room/{token}/archive', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::importEmailsAsParticipants() */
|
||||||
|
['name' => 'Room#importEmailsAsParticipants', 'url' => '/api/{apiVersion}/room/{token}/import-emails', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\RoomController::scheduleMeeting() */
|
||||||
|
['name' => 'Room#scheduleMeeting', 'url' => '/api/{apiVersion}/room/{token}/meeting', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v1)',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\SettingsController::setSIPSettings() */
|
||||||
|
['name' => 'Settings#setSIPSettings', 'url' => '/api/{apiVersion}/settings/sip', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\SettingsController::setUserSetting() */
|
||||||
|
['name' => 'Settings#setUserSetting', 'url' => '/api/{apiVersion}/settings/user', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
$requirements = [
|
||||||
|
'apiVersion' => '(v3)',
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
$requirementsWithToken = [
|
||||||
|
'apiVersion' => '(v3)',
|
||||||
|
'token' => '[a-z0-9]{4,30}',
|
||||||
|
];
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\SignalingController::getSettings() */
|
||||||
|
['name' => 'Signaling#getSettings', 'url' => '/api/{apiVersion}/signaling/settings', 'verb' => 'GET', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\SignalingController::getWelcomeMessage() */
|
||||||
|
['name' => 'Signaling#getWelcomeMessage', 'url' => '/api/{apiVersion}/signaling/welcome/{serverId}', 'verb' => 'GET', 'requirements' => array_merge($requirements, [
|
||||||
|
'serverId' => '\d+',
|
||||||
|
])],
|
||||||
|
/** @see \OCA\Talk\Controller\SignalingController::backend() */
|
||||||
|
['name' => 'Signaling#backend', 'url' => '/api/{apiVersion}/signaling/backend', 'verb' => 'POST', 'requirements' => $requirements],
|
||||||
|
/** @see \OCA\Talk\Controller\SignalingController::sendMessages() */
|
||||||
|
['name' => 'Signaling#sendMessages', 'url' => '/api/{apiVersion}/signaling/{token}', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
|
||||||
|
/** @see \OCA\Talk\Controller\SignalingController::pullMessages() */
|
||||||
|
['name' => 'Signaling#pullMessages', 'url' => '/api/{apiVersion}/signaling/{token}', 'verb' => 'GET', 'requirements' => $requirementsWithToken],
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'ocs' => [
|
||||||
|
/** @see \OCA\Talk\Controller\TempAvatarController::postAvatar() */
|
||||||
|
['name' => 'TempAvatar#postAvatar', 'url' => '/temp-user-avatar', 'verb' => 'POST'],
|
||||||
|
/** @see \OCA\Talk\Controller\TempAvatarController::deleteAvatar() */
|
||||||
|
['name' => 'TempAvatar#deleteAvatar', 'url' => '/temp-user-avatar', 'verb' => 'DELETE'],
|
||||||
|
],
|
||||||
|
];
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user