Skip to content

Commit 506958a

Browse files
authored
new iteration(starting 0.0.26) (#45)
Added branch protection rules --------- Signed-off-by: Alexander Piskun <[email protected]>
1 parent df33a11 commit 506958a

File tree

8 files changed

+69
-16
lines changed

8 files changed

+69
-16
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ body:
5353
description: |
5454
Paste or describe the configuration setting, including software versions, to help diagnose the problem more quickly.
5555
placeholder: >
56-
Example: nc_py_apy = 0.15.0, nextcloud = 28.0.4, etc.
56+
Example: nc_py_api = 0.15.0, nextcloud = 28.0.4, etc.
5757
validations:
5858
required: true
5959
- type: markdown
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Analysis & Coverage
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '.github/workflows/analysis-coverage.yml'
7+
- 'nc_py_api/*.*'
8+
- 'tests/**'
9+
- 'setup.*'
10+
- 'pyproject.toml'
11+
- '.pre-commit-config.yaml'
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ana_cov-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
tests-success:
22+
permissions:
23+
contents: none
24+
runs-on: ubuntu-22.04
25+
name: Tests-OK
26+
steps:
27+
- run: echo "No Tests required"

.github/workflows/analysis-coverage.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ on:
1818
- 'setup.*'
1919
- 'pyproject.toml'
2020
- '.pre-commit-config.yaml'
21-
workflow_dispatch:
21+
22+
permissions:
23+
contents: read
24+
25+
concurrency:
26+
group: ana_cov-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
2228

2329
env:
2430
NEXTCLOUD_URL: "http://localhost:8080"
@@ -626,3 +632,12 @@ jobs:
626632
name: nc_log_sqlite_${{ matrix.nextcloud }}
627633
path: data/nextcloud.log
628634
if-no-files-found: warn
635+
636+
tests-success:
637+
permissions:
638+
contents: none
639+
runs-on: ubuntu-22.04
640+
needs: [tests-maria, tests-pgsql, tests-oci, tests-latest, tests-sqlite]
641+
name: Tests-OK
642+
steps:
643+
- run: echo "Tests passed successfully"

.github/workflows/docs-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Docs check
22
on:
33
pull_request:
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build_docs:
710
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches: [ main ]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
build_push_docs:
811
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

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

5+
## [0.0.26 - 2023-0x-xx]
6+
7+
### Added
8+
9+
- First Examples.
10+
- More documentation.
11+
- First `Notifications` APIs.
12+
513
## [0.0.25 - 2023-07-25]
614

715
### Added

nc_py_api/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
""" Version of nc_py_api"""
22

3-
__version__ = "0.0.25"
3+
__version__ = "0.0.26-dev"

nc_py_api/files_sharing.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,18 @@ def create(
9696
:param permissions: combination of the :py:class:`~nc_py_api.SharePermissions` object values.
9797
:param share_type: :py:class:`~nc_py_api.ShareType` value.
9898
:param share_with: the recipient of the shared object.
99-
:param kwargs: *Additionally supported arguments*
99+
:param kwargs: See below.
100100
101101
Additionally supported arguments:
102-
``public`` - boolean indicating should share be available for non-registered users.
103-
default = ``False``
104-
``password`` - string with password to protect share.
105-
default = ``""``
106-
``send_password_by_talk`` - boolean indicating should password be automatically delivered using Talk.
107-
default = ``False``
108-
``expire_date`` - py:class:`datetime` time when share should expire. `hours, minutes, seconds` are ignored.
109-
default = None
110-
``note`` - string with note, if any.
111-
default = ``""``
112-
``label`` - string with label, if any.
113-
default = ``""``
102+
103+
* ``public`` - boolean indicating should share be available for non-registered users. default = ``False``
104+
* ``password`` - string with password to protect share. default = ``""``
105+
* ``send_password_by_talk`` - boolean indicating should password be automatically delivered using Talk.
106+
default = ``False``
107+
* ``expire_date`` - py:class:`~datetime` time when share should expire.
108+
`hours, minutes, seconds` are ignored. default = ``None``
109+
* ``note`` - string with note, if any. default = ``""``
110+
* ``label`` - string with label, if any. default = ``""``
114111
"""
115112

116113
require_capabilities("files_sharing", self._session.capabilities)

0 commit comments

Comments
 (0)