Skip to content

Commit

Permalink
chore(java): allow overriding the versioning section of the Java READ…
Browse files Browse the repository at this point in the history
…ME (#495)

Allows setting a `versioning` section in `.readme-partials.yaml` to override the versioning section.
  • Loading branch information
chingor13 authored Apr 17, 2020
1 parent 5ff2afc commit f8a9933
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions synthtool/gcp/templates/java_library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ Java 7 or above is required for using this client.

## Versioning

{% if 'partials' in metadata and metadata['partials']['versioning'] -%}
{{ metadata['partials']['versioning'] }}
{% else %}
This library follows [Semantic Versioning](http://semver.org/).

{% if metadata['repo']['release_level'] in ['alpha', 'beta'] %}
It is currently in major version zero (``0.y.z``), which means that anything may change at any time
and the public API should not be considered stable.
{% endif %}

{% endif %}{% endif %}
## Contributing

{% if 'partials' in metadata and metadata['partials']['contributing'] -%}
Expand Down

0 comments on commit f8a9933

Please sign in to comment.