shields icon indicating copy to clipboard operation
shields copied to clipboard

[REQ] More useful badges for Sourcefoge

Open MarcoRavich opened this issue 2 years ago • 4 comments

:clipboard: Description

Need more useful badges for SF like (example JSON here):

Data field Suggested build-URL Proposed badge
License [id] https://img.shields.io/sourceforge/license:1/scorchcrafter?style=flat-square
Language [id] https://img.shields.io/sourceforge/language:0/scorchcrafter?style=flat-square
Status https://img.shields.io/sourceforge/status/scorchcrafter?style=flat-square
Last update [format] https://img.shields.io/sourceforge/last-update:yyyymm/scorchcrafter?style=flat-square

Hope that inspires !

MarcoRavich avatar Jun 22 '23 09:06 MarcoRavich

I've already added a few sourceforge badges and I think I can add these.

Av32000 avatar Jun 28 '23 16:06 Av32000

Bump.

Any news about these ?

MarcoRavich avatar Apr 30 '24 10:04 MarcoRavich

Bump.

Dunno if it can help in any way, but here's what SF's API outputs probing a project - dvbcut specifically - they host:

Array
(
    [shortname] => dvbcut
    [name] => dvbcut
    [_id] => 51af712b34309d7561380c8d
    [url] => https://sourceforge.net/p/dvbcut/
    [private] => 
    [short_description] => dvbcut is a Qt application that enables you to select frame-precise parts of an mpeg transport stream (as received from Digial Video Broadcasting) and save them as independent mpeg files.
    [creation_date] => 2005-11-10
    [summary] => 
    [external_homepage] => http://dvbcut.sourceforge.net
    [video_url] => 
    [socialnetworks] => Array
        (
        )

    [status] => active
    [moved_to_url] => 
    [preferred_support_tool] => 
    [preferred_support_url] => 
    [developers] => Array
        (
            [0] => Array
                (
                    [username] => svenor
                    [name] => Sven Over
                    [url] => https://sourceforge.net/u/svenor/
                )

            [1] => Array
                (
                    [username] => too-tired
                    [name] => Michael Riepe
                    [url] => https://sourceforge.net/u/too-tired/
                )

        )

    [tools] => Array
        (
            [0] => Array
                (
                    [name] => summary
                    [mount_point] => summary
                    [url] => https://sourceforge.net/p/dvbcut/summary/
                    [mount_label] => Summary
                    [sourceforge_group_id] => 152807
                )

            [1] => Array
                (
                    [name] => mailman
                    [mount_point] => mailman
                    [url] => https://sourceforge.net/p/dvbcut/mailman/
                    [mount_label] => Mailing Lists
                )

            [2] => Array
                (
                    [name] => support
                    [mount_point] => support
                    [url] => https://sourceforge.net/p/dvbcut/support/
                    [mount_label] => Support
                )

            [3] => Array
                (
                    [name] => tickets
                    [mount_point] => bugs
                    [url] => https://sourceforge.net/p/dvbcut/bugs/
                    [mount_label] => Bugs
                    [api_url] => https://sourceforge.net/rest/p/dvbcut/bugs/
                )

            [4] => Array
                (
                    [name] => reviews
                    [mount_point] => reviews
                    [url] => https://sourceforge.net/p/dvbcut/reviews/
                    [mount_label] => Reviews
                )

            [5] => Array
                (
                    [name] => files-sf
                    [mount_point] => files
                    [url] => https://sourceforge.net/p/dvbcut/files/
                    [mount_label] => Files
                )

            [6] => Array
                (
                    [name] => svn
                    [mount_point] => code
                    [url] => https://sourceforge.net/p/dvbcut/code/
                    [mount_label] => Code
                    [api_url] => https://sourceforge.net/rest/p/dvbcut/code/
                    [clone_url_https_anon] => https://svn.code.sf.net/p/dvbcut/code/trunk
                    [clone_url_ro] => svn://svn.code.sf.net/p/dvbcut/code/trunk
                )

            [7] => Array
                (
                    [name] => link
                    [mount_point] => donate
                    [url] => https://sourceforge.net/p/dvbcut/donate/
                    [mount_label] => Donate
                    [api_url] => https://sourceforge.net/rest/p/dvbcut/donate/
                )

            [8] => Array
                (
                    [name] => activity
                    [mount_point] => activity
                    [url] => https://sourceforge.net/p/dvbcut/activity/
                    [mount_label] => Activity
                    [api_url] => https://sourceforge.net/rest/p/dvbcut/activity/
                )

        )

    [labels] => Array
        (
        )

    [categories] => Array
        (
            [audience] => Array
                (
                    [0] => Array
                        (
                            [id] => 2
                            [shortname] => end-users-desktop
                            [fullname] => End Users/Desktop
                            [fullpath] => Intended Audience :: by End-User Class :: End Users/Desktop
                        )

                )

            [developmentstatus] => Array
                (
                    [0] => Array
                        (
                            [id] => 9
                            [shortname] => 3-alpha
                            [fullname] => 3 - Alpha
                            [fullpath] => Development Status :: 3 - Alpha
                        )

                )

            [environment] => Array
                (
                    [0] => Array
                        (
                            [id] => 479
                            [shortname] => qt
                            [fullname] => Qt
                            [fullpath] => User Interface :: Toolkits/Libraries :: Qt
                        )

                )

            [language] => Array
                (
                    [0] => Array
                        (
                            [id] => 165
                            [shortname] => c-plus-plus
                            [fullname] => C++
                            [fullpath] => Programming Language :: C++
                        )

                )

            [license] => Array
                (
                    [0] => Array
                        (
                            [id] => 15
                            [shortname] => gnu-general-public-license-version-2.0-gplv2
                            [fullname] => GNU General Public License version 2.0 (GPLv2)
                            [fullpath] => License :: OSI-Approved Open Source :: GNU General Public License version 2.0 (GPLv2)
                        )

                )

            [translation] => Array
                (
                )

            [os] => Array
                (
                    [0] => Array
                        (
                            [id] => 201
                            [shortname] => linux
                            [fullname] => Linux
                            [fullpath] => Operating System :: Linux
                        )

                )

            [database] => Array
                (
                )

            [topic] => Array
                (
                    [0] => Array
                        (
                            [id] => 125
                            [shortname] => video
                            [fullname] => Video
                            [fullpath] => Topic :: Multimedia :: Video
                        )

                )

        )

    [icon_url] => 
    [screenshots] => Array
        (
            [0] => Array
                (
                    [url] => https://sourceforge.net/p/dvbcut/screenshot/47238.jpg
                    [thumbnail_url] => https://sourceforge.net/p/dvbcut/screenshot/47238.jpg/thumb
                    [caption] => dvbcut as of 14 Nov 2005
                )

            [1] => Array
                (
                    [url] => https://sourceforge.net/p/dvbcut/screenshot/48241.jpg
                    [thumbnail_url] => https://sourceforge.net/p/dvbcut/screenshot/48241.jpg/thumb
                    [caption] => dvbcut's "display difference" feature
                )

        )

)

Anyway unfortunally no useful data to display for "latest release" (since last-commit don't work - anymore ? - at all), but I've discovered this other SF's JSON:

https://sourceforge.net/projects/<project_name>/best_release.json

Esample: https://sourceforge.net/projects/dvbcut/best_release.json

Hope that inspires.

MarcoRavich avatar May 28 '24 06:05 MarcoRavich

It's unlikely that anyone from the maintainer team will work on this in the foreseeable future. We've got very little bandwidth, and to the best of my knowledge, none of us use SourceForge and consequently we wouldn't have any personal motivation for working on such an integration.

But the good news is that this is an open source project, and we've got a great tutorial explaining how to add a new badge. Anyone is free to contribute. 😉

PyvesB avatar May 30 '24 20:05 PyvesB