Skip to content

Commit

Permalink
fix(rulesets): Repo scope update trying to remove org rulesets
Browse files Browse the repository at this point in the history
  • Loading branch information
stevoland committed Feb 14, 2024
1 parent a9270ab commit 34d7b5b
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 34d7b5b

Please sign in to comment.