Skip to content

Commit

Permalink
new iteration(starting 0.0.26) (#45)
Browse files Browse the repository at this point in the history
Added branch protection rules

---------

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 authored Jul 25, 2023
1 parent df33a11 commit 506958a
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ body:
description: |
Paste or describe the configuration setting, including software versions, to help diagnose the problem more quickly.
placeholder: >
Example: nc_py_apy = 0.15.0, nextcloud = 28.0.4, etc.
Example: nc_py_api = 0.15.0, nextcloud = 28.0.4, etc.
validations:
required: true
- type: markdown
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/analysis-coverage-unrelated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Analysis & Coverage

on:
pull_request:
paths-ignore:
- '.github/workflows/analysis-coverage.yml'
- 'nc_py_api/*.*'
- 'tests/**'
- 'setup.*'
- 'pyproject.toml'
- '.pre-commit-config.yaml'

permissions:
contents: read

concurrency:
group: ana_cov-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
tests-success:
permissions:
contents: none
runs-on: ubuntu-22.04
name: Tests-OK
steps:
- run: echo "No Tests required"
17 changes: 16 additions & 1 deletion .github/workflows/analysis-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ on:
- 'setup.*'
- 'pyproject.toml'
- '.pre-commit-config.yaml'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ana_cov-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
NEXTCLOUD_URL: "http://localhost:8080"
Expand Down Expand Up @@ -626,3 +632,12 @@ jobs:
name: nc_log_sqlite_${{ matrix.nextcloud }}
path: data/nextcloud.log
if-no-files-found: warn

tests-success:
permissions:
contents: none
runs-on: ubuntu-22.04
needs: [tests-maria, tests-pgsql, tests-oci, tests-latest, tests-sqlite]
name: Tests-OK
steps:
- run: echo "Tests passed successfully"
3 changes: 3 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Docs check
on:
pull_request:

permissions:
contents: read

jobs:
build_docs:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches: [ main ]

permissions:
contents: read

jobs:
build_push_docs:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file.

## [0.0.26 - 2023-0x-xx]

### Added

- First Examples.
- More documentation.
- First `Notifications` APIs.

## [0.0.25 - 2023-07-25]

### Added
Expand Down
2 changes: 1 addition & 1 deletion nc_py_api/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" Version of nc_py_api"""

__version__ = "0.0.25"
__version__ = "0.0.26-dev"
23 changes: 10 additions & 13 deletions nc_py_api/files_sharing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,18 @@ def create(
:param permissions: combination of the :py:class:`~nc_py_api.SharePermissions` object values.
:param share_type: :py:class:`~nc_py_api.ShareType` value.
:param share_with: the recipient of the shared object.
:param kwargs: *Additionally supported arguments*
:param kwargs: See below.
Additionally supported arguments:
``public`` - boolean indicating should share be available for non-registered users.
default = ``False``
``password`` - string with password to protect share.
default = ``""``
``send_password_by_talk`` - boolean indicating should password be automatically delivered using Talk.
default = ``False``
``expire_date`` - py:class:`datetime` time when share should expire. `hours, minutes, seconds` are ignored.
default = None
``note`` - string with note, if any.
default = ``""``
``label`` - string with label, if any.
default = ``""``
* ``public`` - boolean indicating should share be available for non-registered users. default = ``False``
* ``password`` - string with password to protect share. default = ``""``
* ``send_password_by_talk`` - boolean indicating should password be automatically delivered using Talk.
default = ``False``
* ``expire_date`` - py:class:`~datetime` time when share should expire.
`hours, minutes, seconds` are ignored. default = ``None``
* ``note`` - string with note, if any. default = ``""``
* ``label`` - string with label, if any. default = ``""``
"""

require_capabilities("files_sharing", self._session.capabilities)
Expand Down

0 comments on commit 506958a

Please sign in to comment.