Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for codeownersMapping (0.19 sec)

  1. .cm/plugins/filters/byCodeowner/index.js

        const res = await octokit.repos.getContent({
            owner,
            repo,
            path: pathToCodeOwners
        });
    
        return Buffer.from(res.data.content, 'base64').toString()
    }
    
    function codeownersMapping(data) {
        return data
            .toString()
            .split('\n')
            .filter(x => x && !x.startsWith('#'))
            .map(x => x.split("#")[0])
            .map(x => {
                const line = x.trim();
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top