File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ` ` `
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
Original file line number Diff line number Diff line change 2323from library .clientclass import BaseClient
2424from library .jma_amesh import jma_amesh
2525logger = getLogger (__name__ )
26- VERSION = "2.2.1"
2726
2827
2928def 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 ]} )"
Original file line number Diff line number Diff 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
142142def main ():
Original file line number Diff line number Diff line change 3535PLUGINS = ['plugins' ]
3636
3737GIT_COMMIT_HASH = os .environ .get ('GIT_COMMIT_HASH' )
38+
39+ VERSION = "2.2.2"
You can’t perform that action at this time.
0 commit comments