Skip to content

Update metadata #2

@katucker

Description

@katucker

Related feature or enhancement: #1

Design idea

Use the wiki to hold source code inventory entries - one entry per wiki page.

For any entry that contains a URL to a GitHub organization account, use the GitHub APIs to retrieve metadata for all repositories in that organization to which the authenticated user initiating the update has read access. For any repository found that already has a corresponding wiki page, update the wiki page's content in a branch named "update". For any repository found that does not have a corresponding wiki page, add a new wiki page for the repository in a branch named "pending". Create a new commit for each added wiki page, with a message indicating the date of the addition and text describing the commit is for a metadata addition.

For any entry that contains a URL to an online repository, other than GitHub, that has an associated API, use the API to retrieve the most current metadata for that repository and update the wiki page in a branch named "update".

When all wiki pages have been processed, commit the branch named "update" with a comment indicating the date of the update and text indicating the update was for a metadata update.

Merge the branch named "update" into the wiki's master, published branch.

Leave the "pending" branch un-merged, so that an administrator can review each pending entry and cherry-pick which are merged into the published wiki, and thus included in the published source code inventory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions