-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.age.toml
46 lines (37 loc) · 861 Bytes
/
.age.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
current_version = "0.6.0"
[[files]]
path = "oembedpy/__init__.py"
search = "__version__ = \"{{current_version}}\""
replace = "__version__ = \"{{new_version}}\""
[[files]]
path = "CHANGES.rst"
search = """
Change logs
===========
"""
replace = """
Change logs
===========
v{{ new_version }}
={% for _ in new_version %}={% endfor %}
:date: {{ now|date }} (JST)
Breaking changes
----------------
Features
--------
Fixes
-----
Others
------
"""
[[files]]
path = ".github/release-body.md"
regex = true
search = """
- Changelog is https://github.com/attakei/oEmbedPy/blob/v{{ current_version }}/CHANGES.rst
- You can source diff to (.+)
"""
replace = """
- Changelog is https://github.com/attakei/oEmbedPy/blob/v{{ new_version }}/CHANGES.rst
- You can source diff to https://github.com/attakei/oembedPy/compare/v{{ current_version }}..v{{ new_version }}
"""