Skip to content

Commit

Permalink
Port 4327 change camelcase kinds to kebab (#25)
Browse files Browse the repository at this point in the history
* mergeRequest kind to merge-request
  • Loading branch information
yairsimantov20 authored Jul 23, 2023
1 parent bf9d344 commit 60f86e4
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 5 deletions.
2 changes: 1 addition & 1 deletion integrations/gitlab/.port/resources/port-app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
description: .description
namespace: .namespace.name
full_path: .namespace.full_path
- kind: mergeRequest
- kind: merge-request
selector:
query: 'true'
port:
Expand Down
2 changes: 1 addition & 1 deletion integrations/gitlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ The mapping should refer to on of the merge requests from the example response:

```yaml
resources:
- kind: mergeRequest
- kind: merge-request
selector:
query: 'true'
port:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions integrations/gitlab/changelog/PORT-4327.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changed the mergeRequest kind to merge-request
2 changes: 1 addition & 1 deletion integrations/gitlab/gitlab_integration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def get_all_services() -> List[GitlabService]:
class ObjectKind:
ISSUE = "issue"
JOB = "job"
MERGE_REQUEST = "mergeRequest"
MERGE_REQUEST = "merge-request"
PIPELINE = "pipeline"
PROJECT = "project"
33 changes: 32 additions & 1 deletion integrations/gitlab/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,39 @@ types-pyyaml = "^6.0.12.10"
towncrier = "^23.6.0"

[tool.towncrier]
directory = "changelog_fragments"
directory = "changelog"
filename = "CHANGELOG.md"
package = "port_ocean"

[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true

[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true

[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true

[[tool.towncrier.type]]
directory = "improvement"
name = "Improvements"
showcontent = true

[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true

[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true

[build-system]
requires = ["poetry>=0.12"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,39 @@ pylint = "^2.17.4"
towncrier = "^23.6.0"

[tool.towncrier]
directory = "changelog_fragments"
directory = "changelog"
filename = "CHANGELOG.md"
package = "port_ocean"

[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true

[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true

[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true

[[tool.towncrier.type]]
directory = "improvement"
name = "Improvements"
showcontent = true

[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true

[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true

[build-system]
requires = ["poetry>=0.12"]
Expand Down

0 comments on commit 60f86e4

Please sign in to comment.