Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Release 0.2.0

See merge request prod-manager/prod-manager-api!2

Signed-off-by: Lunik <[email protected]>
  • Loading branch information
Lunik committed Feb 5, 2023
2 parents 667decd + 4f7eaaa commit dd55562
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ stages:
- rm -rf poetry.lock
- poetry --version
- poetry install
- poetry update

test:
stage: test
Expand Down
21 changes: 21 additions & 0 deletions .gitlab/merge_request_templates/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Release X.Y.Z

# CHANGELOG

_Copy the full changelog here_

# MR acceptance checklist

- [ ] The [CONTRIBUTING][contributing-manifest] file is up to date
- [ ] The [CHANGELOG][changelog] file is up to date
- [ ] `[Unreleased]` have been replaced with the release version
- [ ] The [CODEOWNERS][codeowners] file is up to date
- [ ] `version` in `pyproject.toml` have been replaced with the release version

<!-- Links -->

[pylint]: https://pylint.pycqa.org/

[contributing-manifest]: CONTRIBUTING.md
[changelog]: CHANGELOG.md
[codeowners]: .gitlab/CODEOWNERS
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

## 0.2.0

## Added

- chore: Add new Merge Request template for release
- doc: Add documentation about Announcement (!3)
- ci: Force update on dependencies in CI (!4)


## 0.1.3

### Added:
Expand Down
44 changes: 44 additions & 0 deletions docs/api-objects/announcement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Announcement

## Examples

### List announcements

```python
announcements = pm.announcement.list()
```

### Get a single announcement

```python
# Get a announcement by ID
announcement_id = 11
announcement = pm.announcement.get(announcement_id)
```

### Create a announcement

```python
announcement = pm.announcement.create(
name="My announcement",
description="Demonstration announcement",
service=service.id,
scope=scope.id,
level="medium",
)
```

### Updating a announcement

```python
announcement = announcement.update(
description="Updated announcement",
level="low",
)
```

### Deleting a announcement

```python
announcement.delete()
```
6 changes: 6 additions & 0 deletions docs/api-objects/weather.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ incident_weather = pm.weather.incident()
```python
maintenance_weather = pm.weather.maintenance()
```

### Get announcement weather

```python
announcement_weather = pm.weather.announcement()
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "prod-manager"
version = "0.1.3"
version = "0.2.0"
description = "Interact with a ProdManager instance"
homepage = "https://gitlab.com/prod-manager/prod-manager-api"
repository = "https://gitlab.com/prod-manager/prod-manager-api"
Expand Down

0 comments on commit dd55562

Please sign in to comment.