Can you add a (commented) `*.example` then I'll merge


On 4 February 2014 12:19, Mark Pitchless <notifications@github.com> wrote:

> In bin/github-trello-sync:
>
> > +    log.warn("Failed to find trello user for github user:%s"%guser.login)
> > +    return None
> > +
> > +def trello_2_github_user(tuser):
> > +    """
> > +    Maps a trello user to a gihub user.
> > +    @param Trello user json, as returned by API.
> > +    @return Git user from api, a github.NamedUser.NamedUser object.
> > +    """
> > +    if tuser is None:
> > +        return None
> > +    name = tuser['username'].lower()
> > +    if name not in github_members_by_username:
> > +        # Github and trello usernames dont match, so try config mapping
> > +        if name in conf.trello_2_github_user:
> > +            name = conf.trello_2_github_user[name]
>
> Yep goes in the config file like so
>
> github_2_trello_user:
>     toliver: tonioliver
>
> Common way to handle this for a versioning is to include a *.example
> version of the config file in the repo. Can do that with our config but the
> keys removed. Should have added some more docs on the config format.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/shadow-robot/sr-build-tools/pull/7/files#r9417134>
> .
>



-- 
Ugo Cupcic *Senior Software Engineer*+44 20 7700 2487ugo@shadowrobot.com
www.shadowrobot.com

-- 

------------------------------
*Shadow Robot Company Ltd.*
251 Liverpool Road, N1 1LX, UK
Registered Number 3308007 (England & Wales)
------------------------------