Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
test multi dispatch configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
slimslenderslacks committed Oct 26, 2020
1 parent 3b35dc0 commit 1fb418d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ var checkBranchPattern = (patterns, branch) => {
}

var convergeBranchRules = async (request, repo, branch) => {
console.info(`check branch ${branch} using topic ${request.topic}`);
console.info(`repo topics ${repo.topics}`);
console.info(`branch patterns ${request.branchPatterns}`);
if (
request.topic &&
repo.topics &&
repo.topics.includes(request.topic) &&
request.branchPatterns &&
checkBranchPattern(request.branchPatterns, branch)
) {
console.info("branch it");
await repo.branchProtectionRule(
branch,
{
Expand Down

0 comments on commit 1fb418d

Please sign in to comment.