Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S swh-web
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 84
    • Issues 84
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Platform
  • Development
  • swh-web
  • Issues
  • #4548
Closed
Open
Issue created Sep 22, 2022 by vlorentz@vlorentzMaintainer

Add a public API endpoint and documentation to trigger Save Code Now from webhook

Idea from @rdicosmo:

As an alternative to the "save to SWH" github action, we could provide an API endpoint that can be called by forges (github, gitlab, gitea/gogs, ...) to notify us of a push or new tag.

Motivation:

  1. less wasteful on the forge's side (it's just an HTTPS request, not a container with its own nodejs process, ...)
  2. easier to setup for users (a few clicks in the forge's UI)
  3. more secure (no need to trust the action's author)
  4. works for all forges
  5. might allow us to extract information from the webhook payload, in the future
  6. ...

Migrated from T4548 (view on Phabricator)

Assignee
Assign to
Time tracking