Page MenuHomeSoftware Heritage

assets/save: Ensure to use canonical github repo URL as origin URL
ClosedPublic

Authored by anlambert on Jun 15 2021, 5:58 PM.

Details

Summary

When a save code now request is submitted for a github repository,
ensure to use the canonical repository URL by getting it from the
github Web API.

The purpose is to avoid adding duplicated github origins in the
archive.

Related to T1110
Related to T2187

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont added a subscriber: ardumont.

Great.

This revision is now accepted and ready to land.Jun 15 2021, 6:03 PM

Build is green

Patch application report for D5877 (id=21051)

Rebasing onto 01ffb31ff7...

Current branch diff-target is up to date.
Changes applied before test
commit 1bd55d031ec8fb360ba4a2fe652862fe4dabb0ac
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Jun 15 17:53:42 2021 +0200

    assets/save: Ensure to use canonical github repo URL as origin URL
    
    When a save code now request is submitted for a github repository,
    ensure to use the canonical repository URL by getting it from the
    github Web API.
    
    The purpose is to avoid adding duplicated github origins in the
    archive.
    
    Related to T1110
    Related to T2187

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/879/ for more details.