Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: button/button-android
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: button/button-android
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: slider/jimmy/add-team-owners
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 29, 2017

  1. async function (root) {

          const repoName = path.basename(root);
          let message = 'Add project teams as backup owners for all services\n\n';
    
          // TODO(jimmy): Factor this out.
          const contents = fs.readFileSync(path.resolve(__dirname, 'all-owners.csv'), 'utf-8');
          var data = await csv(contents);
          let repo = null;
          for (const row of data) {
            if (row['Service Name'] == repoName) {
              repo = row;
            }
          }
    
          if (!repo) {
            throw new Error('Could not find repository: ' + repoName + ' - ' + root);
          }
    
          const tags = repo['Current Tags'].trim().split(' ');
          if (tags.length > 0) {
            message += 'When submitted, this will also add the following tags:\n';
          }
    
          for (var tag of tags) {
            message += '\t* ' + tag + '\n';
          }
    
          return message;
        }
    jimmy-btn committed Sep 29, 2017
    Configuration menu
    Copy the full SHA
    90d9b43 View commit details
    Browse the repository at this point in the history
Loading