Skip to content

Commit cca6dee

Browse files
authored
Merge pull request #803 from dev-hato/develop
リリース
2 parents bc85e9a + a16ad16 commit cca6dee

5 files changed

Lines changed: 16 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
* `Removed` 削除された機能について。
88
* `Fixed` バグ修正について。
99

10+
## v2.2.2 - 2022-02-11
11+
12+
### Changed
13+
14+
* 死活監視のためのページにバージョン情報を追加しました。(#804)
15+
16+
### Fixed
17+
18+
* docker compose時の `TAG_NAME` を指定する際のコマンドを修正しました。(#802)
19+
1020
## v2.2.1 - 2022-02-11
1121

1222
### Fixed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
```sh
6767
cd ./setup
68-
TAG_NAME=$(git symbolic-ref --short HEAD | sed -e "s:/:-:g")
68+
export TAG_NAME=$(git symbolic-ref --short HEAD | sed -e "s:/:-:g")
6969
docker-compose up -d
7070
cd ..
7171
```
@@ -74,7 +74,7 @@
7474

7575
```sh
7676
cd ./setup
77-
TAG_NAME=$(git symbolic-ref --short HEAD | sed -e "s:/:-:g")
77+
export TAG_NAME=$(git symbolic-ref --short HEAD | sed -e "s:/:-:g")
7878
docker-compose restart
7979
```
8080

plugins/hato.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from library.clientclass import BaseClient
2424
from library.jma_amesh import jma_amesh
2525
logger = getLogger(__name__)
26-
VERSION = "2.2.1"
2726

2827

2928
def split_command(command: str, maxsplit: int = 0) -> List[str]:
@@ -251,7 +250,7 @@ def version(client: BaseClient):
251250
user = client.get_send_user_name()
252251
logger.debug("%s called 'hato version'", user)
253252
str_ver = "バージョン情報\n```" \
254-
f"Version {VERSION}"
253+
f"Version {conf.VERSION}"
255254

256255
if conf.GIT_COMMIT_HASH:
257256
str_ver += f" (Commit {conf.GIT_COMMIT_HASH[:7]})"

run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def status():
136136
"""
137137
死活監視のためのレスポンスをJSON形式で返します
138138
"""
139-
return jsonify({'message': 'hato-bot is running'}), 200
139+
return jsonify({'message': 'hato-bot is running', 'version': conf.VERSION}), 200
140140

141141

142142
def main():

slackbot_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@
3535
PLUGINS = ['plugins']
3636

3737
GIT_COMMIT_HASH = os.environ.get('GIT_COMMIT_HASH')
38+
39+
VERSION = "2.2.2"

0 commit comments

Comments
 (0)