Skip to content

Commit

Permalink
feat: allow archiving/unarchiving repositories (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinm82 authored May 23, 2023
1 parent 1938708 commit af044e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ repository:
# Default: `false`
delete_branch_on_merge: true

# Whether to archive this repository. false will unarchive a previously archived repository.
archived: false

# The following attributes are applied to any repo within the org
# So if a repo is not listed above is created or edited
# The app will apply the following settings to it
Expand Down
3 changes: 1 addition & 2 deletions lib/plugins/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const ignorableFields = [
'watchers_count',
'language',
'forks_count',
'archived',
'disabled',
'open_issues_count',
'license',
Expand Down Expand Up @@ -273,7 +272,7 @@ module.exports = class Repository {
resArray.push((new NopCommand(this.constructor.name, this.repo, null, `no need to update security for ${repoData.name}`)))
return Promise.resolve(resArray)
}
}
}
}

updateAutomatedSecurityFixes(repoData, resArray) {
Expand Down

0 comments on commit af044e9

Please sign in to comment.