#701 RFE: search for brew builds by git hash
Closed: Fixed Opened by dgregor.

Once https://pagure.io/koji/issue/550 is implemented, the git hash for brew builds will be stored in the metadata (when available). It would be useful to have an API that can query Brew for the list of builds that were built from a particular git hash.


Note that in #550, we will use the build.source field to record the adjusted source url that includes the git hash. We could add a text query on that field, but it may not be as clean a check as you may want.

Also, #550 will only affect builds going forward. It will not retroactively populate that field for earlier builds.

Not retroactively populating the field would be fine. This API would still be useful for builds going forward.

What might a text query on the field look like?

@dgregor query would be full git reference, e.g.: git://pkgs.fedoraproject.org/rpms/php-pecl-memcached?#73e973fe562a67d9333bf947fc792a4b7fe9a892

PR #765 for testing

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.16

Metadata Update from @mikem:
- Issue tagged with: feature

Commit 50d02cdc fixes this issue

Commit f468aeb1 fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/701

Please continue any further discussion there.

Metadata