Skip to content

Commit

Permalink
fix(rules): add Jira
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 13, 2023
1 parent ccb4352 commit a813809
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ exports[`all > should match everything 1`] = `
"hypertune",
"influxdb",
"jenkins",
"jira",
"kibana",
"klaviyo",
"koa",
Expand Down
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import './hotjar.js';
import './hubspot.js';
import './huggingface.js';
import './hypertune.js';
import './jira.js';
import './klaviyo.js';
import './launchdarkly.js';
import './logrocket.js';
Expand Down
21 changes: 21 additions & 0 deletions src/rules/saas/jira.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { register } from '../../register.js';

register({
tech: 'jira',
name: 'Jira',
type: 'saas',
dependencies: [
{ type: 'githubAction', name: 'atlassian/gajira-todo' },
{ type: 'githubAction', name: 'github/ghas-jira-integration' },
{ type: 'githubAction', name: 'atlassian/gajira-transition' },
{ type: 'githubAction', name: 'atlassian/gajira-create' },
{ type: 'githubAction', name: 'atlassian/gajira-cli' },
{ type: 'githubAction', name: 'atlassian/gajira-find-issue-key' },
{ type: 'githubAction', name: 'atlassian/gajira-comment' },
{ type: 'docker', name: 'atlassian/jira-software' },
{ type: 'npm', name: 'jira.js' },
{ type: 'php', name: 'lesstif/php-jira-rest-client' },
{ type: 'ruby', name: 'jira-ruby' },
{ type: 'terraform.resource', name: 'gitlab_integration_jira' },
],
});
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports[`docker > should match everything 1`] = `
"httpd",
"influxdb",
"jenkins",
"jira",
"kibana",
"mariadb",
"matomo",
Expand Down Expand Up @@ -109,6 +110,11 @@ exports[`docker > should match everything 2`] = `
"apache/storm",
"0.0.0",
],
[
"docker",
"atlassian/jira-software",
"0.0.0",
],
[
"docker",
"bitnami/discourse",
Expand Down
36 changes: 36 additions & 0 deletions src/rules/spec/githubActions/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ exports[`docker > should match all dependencies 1`] = `
"github.pages",
"hashicorp_vault",
"heroku",
"jira",
"kubernetes",
"launchdarkly",
"netlify",
Expand Down Expand Up @@ -132,6 +133,36 @@ exports[`docker > should match all dependencies 2`] = `
"appleboy/lambda-action",
"1",
],
[
"githubAction",
"atlassian/gajira-cli",
"1",
],
[
"githubAction",
"atlassian/gajira-comment",
"1",
],
[
"githubAction",
"atlassian/gajira-create",
"1",
],
[
"githubAction",
"atlassian/gajira-find-issue-key",
"1",
],
[
"githubAction",
"atlassian/gajira-todo",
"1",
],
[
"githubAction",
"atlassian/gajira-transition",
"1",
],
[
"githubAction",
"aws-actions/amazon-eks-fargate",
Expand Down Expand Up @@ -237,6 +268,11 @@ exports[`docker > should match all dependencies 2`] = `
"getsentry/action-release",
"1",
],
[
"githubAction",
"github/ghas-jira-integration",
"1",
],
[
"githubAction",
"google-github-actions/auth",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ exports[`npm > should match everything 1`] = `
"huggingface",
"hypertune",
"influxdb",
"jira",
"koa",
"kubernetes",
"launchdarkly",
Expand Down Expand Up @@ -869,6 +870,11 @@ exports[`npm > should match everything 2`] = `
"ioredis",
"0.0.0",
],
[
"npm",
"jira.js",
"0.0.0",
],
[
"npm",
"jsforce",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ exports[`php > should match everything 1`] = `
"heroku",
"hubspot",
"influxdb",
"jira",
"klaviyo",
"kubernetes",
"laravel",
Expand Down Expand Up @@ -538,6 +539,11 @@ exports[`php > should match everything 2`] = `
"launchdarkly/server-sdk",
"0.0.0",
],
[
"php",
"lesstif/php-jira-rest-client",
"0.0.0",
],
[
"php",
"longlang/phpkafka",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ exports[`ruby (component) > should match everything 1`] = `
"hashicorp_vault",
"heroku",
"influxdb",
"jira",
"kubernetes",
"launchdarkly",
"mailchimp",
Expand Down Expand Up @@ -408,6 +409,11 @@ exports[`ruby (component) > should match everything 2`] = `
"jenkins_api_client",
"1.0.0",
],
[
"ruby",
"jira-ruby",
"1.0.0",
],
[
"ruby",
"kubeclient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"gcp.spanner",
"gcp.sql",
"gcp.tasks",
"jira",
"terraform",
]
`;
Expand Down

0 comments on commit a813809

Please sign in to comment.