Skip to content

Search by arbitrary metadata #567

@vmiklos

Description

@vmiklos

In case a bug is imported (e.g. from github), then git-bug knows that url, e.g.:

$ git show refs/bugs/016b3f0c56c1724c0230919ce3218b5cfa19f8ce:root|python3 -m json.tool
{
    "version": 2,
    "ops": [
        {
            "type": 1,
            "author": {
                "id": "e256bc3329691afb0ed3f7d3b9675ef8cecd1a16"
            },
            "timestamp": 1583555863,
            "metadata": {
                "github-id": "MDU6SXNzdWU1NzcyNzY4MTY=",
                "github-url": "https://github.com/author/myproject/issues/6",
                "origin": "github"
            },

It would be nice if e.g. git bug ls could search in this metadata. So let's say I'm offline and I would like to look up https://github.com/author/myproject/issues/6, then that would be possible. Perhaps something like:

git bug ls --metadata github-url=https://github.com/author/myproject/issues/6

could list all matching bugs, typically just one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions