SurveyMonkey / pyteamcity

Use the TeamCity REST API from Python
51 stars 50 forks source link

Get build by build number #92

Open akaars opened 6 years ago

akaars commented 6 years ago

Hi, I'm using the legacy code and noticed it's not possible to get a build by it's number. The fix is easy - add "number" to the get_builds function:

def get_builds(self,
                   build_type_id='', branch='', status='', running='',
                   tags=None,
                   user=None, project='', pinned=None, number=None,
                   since_build=None, until_build=None, since_date=None, until_date=None,
                   start=0, count=100, **kwargs):
        _get_locator_kwargs = {}
        if number:
            _get_locator_kwargs['number'] = number

Is there a chance to add it to the package?