Skip to content

Commit

Permalink
fix(rulesets): Repo scope update trying to remove org rulesets (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevoland authored Feb 15, 2024
2 parents 6ce91df + 34d7b5b commit b672ebc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plugins/rulesets.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = class Rulesets extends Diffable {
})
this.log(listOptions)
return this.github.paginate(listOptions)
.filter(ruleset => ruleset.source_type === 'Repository')
.then(res => {
const rulesets = res.map(ruleset => {
const getOptions = this.github.request.endpoint.merge('GET /repos/{owner}/{repo}/rulesets/{id}', {
Expand Down

0 comments on commit b672ebc

Please sign in to comment.