Skip to content

No system webhook triggered for repository migration #13996

Closed
@kasbah

Description

@kasbah
  • Gitea version (or commit ref): 980b0df
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (need admin access)
  • Log gist:

Description

System webhooks (added with #10546) trigger when you create a new repository but not when you migrate a repository.

Steps to reproduce

  • Compile and run a local Gitea
  • Start a web server that will log webhook attempts, e.g.
$ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

image

  • Add a new repository, see that the web server logs them (the 501 error is expected)
127.0.0.1 - - [15/Dec/2020 14:30:05] code 501, message Unsupported method ('POST')
127.0.0.1 - - [15/Dec/2020 14:30:05] "POST / HTTP/1.1" 501 -
  • Migrate a repository and observe that no request is sent and nothing is logged on the webserver.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions