Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit #1

Merged
merged 12 commits into from
Dec 31, 2024
Merged

Conversation

sevenc-nanashi
Copy link
Member

内容

https://github.com/sevenc-nanashi/approve-counter から持ってきます。

関連 Issue

スクリーンショット・動画など

(なし)

その他

(なし)

@@ -0,0 +1 @@
dist/*.js linguist-generated binary
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gitのdiffが鬱陶しかったのでbinary扱いにしています。

@@ -0,0 +1 @@
20.18.1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionで使えるのがnode20までだったので20で止めています。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

非常にわかりやすいコードだと感じました!!!!
コメントの粒度が良い感じだし、コードも読みやすい。

ほぼLGTMです!!

.github/workflows/approve_check.yml Outdated Show resolved Hide resolved
.github/workflows/approve_check.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
src/events/checksRequested.json Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
export type ScoreRule = {
target: "team" | "user";
slug: string;
users: string[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

targetがuserのときはusersじゃなくuserのが良いかも。Union型にする感じで。
…とか思ったけどちょっと気にしすぎですかね!まあそのままでも!

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

まだもしかしたら完璧じゃないかもですが、一旦マージ!!

Comment on lines +42 to +49
score_rules: |
// チームの場合は#から始めてください。
#maintainer: 2
#reviewer: 1
// ユーザーの場合は@から始めてください。
@sevenc-nanashi: 2
// それ以外の行は無視されます。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そういえば今の仕様だと同じユーザーが複数チームやユーザー指定されていた場合、ここに書かれてる中でヒットした最初のチームのポイントが選ばれて、ユーザー指定されてる場合は更にそちらが優先される感じになりますかね?
どこかに仕様をメモっておいても良いかも!

@Hiroshiba Hiroshiba merged commit 6fa22ea into VOICEVOX:main Dec 31, 2024
@sevenc-nanashi
Copy link
Member Author

そういえば現時点でちゃんと動くかどうか確認したい気持ちがあります。

@Hiroshiba 多分これらをやれば動くと思います:

  • OrgのSecretsにGATEKEEPER_TOKENという名前でトークンを入力
    • Orgnizationとして作成、権限はMembersのreadで動きます
  • このリポのRulesetを有効化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants