Skip to content
Snippets Groups Projects

Add flag to not overwrite project lead permissions

Merged Martin Lowe requested to merge github/fork/autumnfound/malowe/master/pl-perms into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -208,7 +208,7 @@ async function processRepositories(repos, project) {
@@ -208,7 +208,7 @@ async function processRepositories(repos, project) {
// Ensure that the teams refer to the repo
// Ensure that the teams refer to the repo
var updatedCommit = await wrap.addRepoToTeam(org, `${project.project_id}-committers`, repoName, 'push');
var updatedCommit = await wrap.addRepoToTeam(org, `${project.project_id}-committers`, repoName, 'push');
var updatedContrib = await wrap.addRepoToTeam(org, `${project.project_id}-contributors`, repoName, 'triage');
var updatedContrib = await wrap.addRepoToTeam(org, `${project.project_id}-contributors`, repoName, 'triage');
var updatedPL = await wrap.addRepoToTeam(org, `${project.project_id}-project-leads`, repoName, 'maintain');
var updatedPL = await wrap.addRepoToTeam(org, `${project.project_id}-project-leads`, repoName, 'maintain', false);
if (argv.V === true) {
if (argv.V === true) {
console.log(`Attempted update commit team: ${updatedCommit === undefined}`);
console.log(`Attempted update commit team: ${updatedCommit === undefined}`);
console.log(`Attempted update contrib team: ${updatedContrib === undefined}`);
console.log(`Attempted update contrib team: ${updatedContrib === undefined}`);
Loading