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

Commit

Permalink
add signed commits support
Browse files Browse the repository at this point in the history
  • Loading branch information
slimslenderslacks committed Sep 11, 2020
1 parent a704cb3 commit c33785d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@

# What it's useful for

Either on every Push, or a fixed schedule, validate that all Repos have branch protection
rules configured.
> Stop editing branch protection rules in each repo! Set it or update in one place and all repos are automatically updated.
# Before you get started

Connect and configure these integrations:

1. **GitHub**
2. **Slack**

Both the **GitHub** and **Slack** integrations must be configured in order to use this skill.
2. **Slack** (optional)

# How to configure

Expand Down
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ var convergeBranchRules = async (request, repo, branch) => {
... (request.allow_deletions && {allow_deletions: request.allow_deletions})
}
);
if (request.required_signed_commits) {
await repo.branchRequiresSignedCommits(branch,true);
} else {
await repo.branchRequiresSignedCommits(branch, false);
}
}
return true;
};
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"atm:lint:prettier": "prettier --write"
},
"dependencies": {
"@atomist/api-cljs": "^0.4.102"
"@atomist/api-cljs": "^0.4.103"
},
"main": "node_modules/@atomist/api-cljs/app.js",
"devDependencies": {
Expand Down

0 comments on commit c33785d

Please sign in to comment.