commit-email activity https://gitlab.com/commit-email 2025-04-08T05:15:24Z tag:gitlab.com,2025-04-08:4167621734 Sutou Kouhei pushed to project branch main at commit-email / github-event-watcher 2025-04-08T05:15:24Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (45e56374) at 08 Apr 05:15

webhook-sender: add repository.private

tag:gitlab.com,2025-04-08:4167201537 Sutou Kouhei pushed to project branch main at commit-email / github-event-watcher 2025-04-08T00:12:09Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (b263e939) at 08 Apr 00:12

webhook-sender: add repository.private

tag:gitlab.com,2025-04-08:4167199350 Sutou Kouhei deleted project branch master at commit-email / github-event-watcher 2025-04-08T00:10:39Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (0aee8c5b) at 08 Apr 00:10

tag:gitlab.com,2025-04-08:4167198198 Sutou Kouhei pushed new project branch main at commit-email / github-event-watcher 2025-04-08T00:09:49Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (0aee8c5b) at 08 Apr 00:09

tag:gitlab.com,2024-08-29:3602365832 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-08-29T05:18:35Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (f0e03483) at 29 Aug 05:18

Require Rack middlewares explicitly for Rack 3

tag:gitlab.com,2024-08-29:3602364215 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-08-29T05:17:24Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (809c4b4d) at 29 Aug 05:17

Require rack/response explicitly for Rack 3

tag:gitlab.com,2024-07-22:3515797383 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T02:15:28Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (ad0a215a) at 22 Jul 02:15

ci: fix label

tag:gitlab.com,2024-07-22:3515796533 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T02:14:26Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (4dac5830) at 22 Jul 02:14

Add net-smtp dependency

tag:gitlab.com,2024-07-22:3515778783 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T01:54:57Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (e2cd68bf) at 22 Jul 01:54

ci: use latest Rubies

tag:gitlab.com,2024-07-22:3515731838 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T00:57:22Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (eadde3ad) at 22 Jul 00:57

Accept aliases in configuration

tag:gitlab.com,2024-07-22:3515730427 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T00:55:12Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (36a217cd) at 22 Jul 00:55

Suppress warnings

tag:gitlab.com,2024-07-22:3515730357 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T00:55:06Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (04fb513b) at 22 Jul 00:55

Don't use WEBrick

tag:gitlab.com,2024-07-22:3515730308 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T00:55:02Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (8bc73a05) at 22 Jul 00:55

Don't use WEBrick

tag:gitlab.com,2024-07-22:3515723936 Sutou Kouhei pushed to project branch master at commit-email / Webhook mailer 2024-07-22T00:45:39Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (34fdbbd9) at 22 Jul 00:45

Don't use WEBrick

tag:gitlab.com,2023-04-04:2509622809 Daijiro Fukuda commented on merge request !2 at commit-email / github-event-watcher 2023-04-04T08:14:08Z daipom Daijiro Fukuda [email protected]

Thanks for your review and merging!

tag:gitlab.com,2023-04-04:2509619183 Sutou Kouhei pushed to project branch master at commit-email / github-event-watcher 2023-04-04T08:13:03Z ktou Sutou Kouhei [email protected]

Sutou Kouhei (0aee8c5b) at 04 Apr 08:13

Add support for multiple webhook-end-points

tag:gitlab.com,2023-04-04:2509619175 Sutou Kouhei accepted merge request !2: Add support for multiple webhook-end-points at commit-email / github-event-watcher 2023-04-04T08:13:03Z ktou Sutou Kouhei [email protected]

複数のwebhook-end-pointを設定可能にしました。

設定ファイルの互換性がなくなります。新しいフォーマットは次のようになります。

"https://example.com/webhook1":
  events:
    - PushEvent
    - PullRequestEvent
  repositories:
    - apache/arrow
    - apache/arrow-julia
"https://example.com/webhook2":
  events:
    - PushEvent
    - PullRequestEvent
  repositories:
    - fluent/fluentd

また動作未確認ですが、従来はEventの種類ごとにRepositoryを登録する設定が期待通り動かないように見えます。 従来の設定で次のようなものを例として考えると、

events:
  PushEvent:
    repositories:
      - repo-A
    webhook-end-point: end-point-A
  PullRequestEvent:
    repositories:
      - repo-B
    webhook-end-point: end-point-B

end-point-Aへの送信にrepo-Bのイベントも含まれる可能性があるように思います。

今回の修正でこの問題も解決するはずです。

tag:gitlab.com,2023-04-04:2509527378 Daijiro Fukuda commented on merge request !2 at commit-email / github-event-watcher 2023-04-04T07:39:56Z daipom Daijiro Fukuda [email protected]

Fixed at 96cec57c

Thanks!

tag:gitlab.com,2023-04-04:2509503715 Daijiro Fukuda commented on merge request !2 at commit-email / github-event-watcher 2023-04-04T07:30:29Z daipom Daijiro Fukuda [email protected]

I see!

That makes the code more readable and manageable!

I will fix it.

tag:gitlab.com,2023-04-03:2506625051 Sutou Kouhei commented on merge request !2 at commit-email / github-event-watcher 2023-04-03T06:38:01Z ktou Sutou Kouhei [email protected]

How about using instance variables instead of Hash?

        @xmlua_events = Events.new([], [])
        http_server.mount("/repos/clear-code/xmlua/events", Handler, @xmlua_events)