#3040 Make it possible to use custom PR/commit flags based on instance configuration
Merged by pingou. Opened by bkabrda.
bkabrda/pagure customizable-flags  into  master

Download 3040.patch

Just as a note, the change in doc_utils.py is a bit naive, but we can always iterate on that in the future if we need to.

rebased onto a39d420c24a75375b30219a087e521d691578ca7

Should we make these defaults lists?

One generic question, the rest of the code looks fine.

We'll need some tests for this though :)

Very good point, I'll work on that.

Thanks, for the reivew I'll work on the minor improvement and then also provide some tests.

OTOH I'm not sure how this would work with https://pagure.io/pagure/pull-request/3040#_2,33, which is primarily why I introduced these values... Thoughts?

rebased onto 6ff3016290fb40c8b3416f2dadc578e68be6220a

Phew, so I added the tests.

Thinking more about your note, I'm really starting to think that these values should be just one status, not list of statues, due to the way they're used in the endpoint that flags PRs. Therefore I'd say that this is done, unless you really want these to be lists :)

We would then need defaults for these lists :(

Ok this may just be a bit overkill then, let's start with this and see if we need to tweak more in the future.

I've been using @patch.dict('pagure.config.config', {key: value}) to change the config just for one or a few tests, it saves us the setUp/tearDown approach.

rebased onto ab94db7104212de94fe11f4bf33636d8df612b39

rebased onto 45252f086c1550371dce9fc281bca1fdaedbc118

Pull-Request has been merged by pingou

Metadata