Skip to content

Commit

Permalink
Merge pull request #1973 from dev-hato/develop
Browse files Browse the repository at this point in the history
リリース
  • Loading branch information
nakkaa authored Nov 29, 2022
2 parents 542d8c3 + f132e7a commit 5cbcb96
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ updates:
schedule:
interval: "daily"
open-pull-requests-limit: 1
ignore:
- dependency-name: "postgres"
update-types:
- "version-update:semver-major"
- package-ecosystem: github-actions
directory: "/"
schedule:
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@

## Unreleased - 20XX-XX-XX

## v2.4.3 - 2022-11-29

### Fixed

* textlintコマンドが動作しない問題を修正しました。(#1970)

## v2.4.2 - 2022-11-28

### Added

* textlintコマンドが追加しました。 (#1919)
* textlintコマンドを追加しました。 (#1919)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ python_version = "3.11"
[dev-packages]
autopep8 = "==2.0.0"
requests-mock = "==1.10.0"
pylint = "==2.15.6"
pylint = "==2.15.7"
sqlfluff = "==1.4.2"
mypy = "==0.991"
flake8 = "==6.0.0"
Expand Down
22 changes: 11 additions & 11 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@textlint-ja/textlint-rule-no-insert-dropping-sa": "2.0.1",
"js-yaml": "4.1.0",
"markdownlint-cli": "0.32.2",
"renovate": "34.40.2",
"renovate": "34.41.1",
"textlint": "12.2.3",
"textlint-filter-rule-comments": "1.2.2",
"textlint-rule-abbr-within-parentheses": "1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion plugins/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def analyze_message(message: str) -> Callable[[BaseClient], None]:
"help": lambda m: hato.help_message,
"eq": lambda m: hato.earth_quake,
"地震": lambda m: hato.earth_quake,
"textlint": lambda m: hato.textlint(m[len("textlint ") :]),
"textlint": lambda m: partial(hato.textlint, text=m[len("textlint ") :]),
"text list": lambda m: hato.get_text_list,
"text add ": lambda m: partial(hato.add_text, word=m[len("text add ") :]),
"text show ": lambda m: partial(
Expand Down
14 changes: 6 additions & 8 deletions plugins/hato.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,17 @@ def earth_quake():
return msg


@action("textlint")
def textlint(text: str):
"""文章を校正する"""

def ret(client: BaseClient):
msg = "完璧な文章っぽ!"
res = get_textlint_result(text)
msg = "完璧な文章っぽ!"
res = get_textlint_result(text)

if res:
msg = "文章の修正点をリストアップしたっぽ!\n" + res
if res:
msg = "文章の修正点をリストアップしたっぽ!\n" + res

client.post(msg)

return ret
return msg


@action("text list")
Expand Down
11 changes: 11 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{
"extends": [
"github>dev-hato/renovate-config"
],
"packageRules": [
{
"matchPackageNames": [
"postgres"
],
"matchUpdateTypes": [
"major"
],
"enabled": false
}
]
}
2 changes: 1 addition & 1 deletion slackbot_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@

GIT_COMMIT_HASH = os.environ.get("GIT_COMMIT_HASH")

VERSION = "2.4.2"
VERSION = "2.4.3"

0 comments on commit 5cbcb96

Please sign in to comment.