-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.age.toml
56 lines (45 loc) · 1.16 KB
/
.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
47
48
49
50
51
52
53
54
55
56
current_version = "0.8.0"
[[files]]
path = "oembedpy/__init__.py"
search = "__version__ = \"{{current_version}}\""
replace = "__version__ = \"{{new_version}}\""
[[files]]
path = "pyproject.toml"
search = "version = \"{{current_version}}\""
replace = "version = \"{{new_version}}\""
[[files]]
path = "pyproject.toml"
search = "Documentation = \"https://oembedpy.readthedocs.io/en/v{{current_version}}/\""
replace = "Documentation = \"https://oembedpy.readthedocs.io/en/v{{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 }}
"""