Skip to content

Commit

Permalink
Add GitHub Dependabot to CLA exemptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Mar 31, 2021
1 parent 1b979d2 commit c4e25ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ async function run() {
const username = commit_authors[i]['username'];
const email = commit_authors[i]['email'];

if (username == 'dependabot[bot]') {
console.log('- ' + username + ' ✓ (GitHub Dependabot)');
commit_authors[i]['signed'] = true;
continue
}
if (email.endsWith('@canonical.com')) {
console.log('- ' + username + ' ✓ (@canonical.com account)');
commit_authors[i]['signed'] = true;
Expand Down
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
{
"name": "has-signed-canonical-cla",
"version": "1.1.1",
"version": "1.1.2",
"description": "This GitHub Action verifies whether or not the authors of a pull request have signed the Canonical Contributor Licence Agreement (https://ubuntu.com/legal/contributors).",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c4e25ca

Please sign in to comment.