import { isEmpty } from '@ember/utils'; // Derives a stable grouping key for a contribution, so that contributions // created for the same issue/pull request (one per contributor) can be // linked together in the UI. // // Until we have identical IPFS documents for different contributions, we will // use the URL as grouping key export default function contributionGroupingKey (contribution) { let url = contribution ? contribution.url : null; if (isEmpty(url)) return null; return url; }