sending note email only to repository users if repository is not null
Merge branch 'master' into pinauthintegration