Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch protection rule deletion isn't working #20

Open
smascarenhas-cci opened this issue Aug 19, 2022 · 0 comments
Open

Branch protection rule deletion isn't working #20

smascarenhas-cci opened this issue Aug 19, 2022 · 0 comments

Comments

@smascarenhas-cci
Copy link

I was trying to integrate branch-guardian action to auto delete branch protection rule on deleting a branch and found out that for some reason this is not working.

In the below piece of code the value that is getting stored in branchProtectionRulesResponse variable is undefined instead of the actual response

  const {branchProtectionRulesResponse} = await this.authedGraphQL(
    GraphQLQueryBuilders.buildBranchProtectionRuleQuery(
      this.rulesLimit,
      this.owner,
      this.repo
    )
  )

This should have been without the curly braces

  const branchProtectionRulesResponse = await this.authedGraphQL(
    GraphQLQueryBuilders.buildBranchProtectionRuleQuery(
      this.rulesLimit,
      this.owner,
      this.repo
    )
  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant