New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@code-rub/azure-devops

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-rub/azure-devops - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

src/build-initial-configuration.d.ts

2

package.json

@@ -5,3 +5,3 @@ {

"authors": "author",
"version": "1.1.0",
"version": "1.1.2",
"dependencies": {},

@@ -8,0 +8,0 @@ "exports": {

# @code-rub/azure-devops
This plugin adds support for creating issues on jira. For an example configuration, run `npx code-rub init --preset azure-devops`
This plugin adds support for creating work items on azure devops. For an example configuration, run `npx code-rub init --preset azure-devops`

@@ -1,4 +0,2 @@

import { CodeRubPlugin } from '@code-rub/core';
import { AzureDevopsPluginConfig } from './models/config';
declare const plugin: CodeRubPlugin<AzureDevopsPluginConfig>;
import plugin from './plugin';
export = plugin;
"use strict";
const tslib_1 = require("tslib");
const azdev = (0, tslib_1.__importStar)(require("azure-devops-node-api"));
const create_issue_1 = require("./create-issue");
const get_credentials_1 = require("./get-credentials");
// Initialize
let az;
const plugin = {
name: '@code-rub/azure-devops',
setup: (config) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
const { accessToken } = yield (0, get_credentials_1.getCredentials)();
const authHandler = azdev.getPersonalAccessTokenHandler(accessToken);
az = new azdev.WebApi(config.host, authHandler);
}),
processAssignments: (assignments, config) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
for (const a of assignments) {
yield (0, create_issue_1.createIssue)(az, config, a.uid, a.filePath);
}
}),
initialConfiguration: {
plugins: ['@code-rub/azure-devops'],
pluginConfiguration: {
'@code-rub/azure-devops': {
host: '{my-az-url}',
descriptionTemplate: [
`Code rubbing is just like glass rubbing, it makes cleaner, shinier and better to look at. \n`,
`In order for that to happen, every engineer will need to pick up a random file from the solution they are working on, and make sure it follows the best practices and latest technologies, along with making sure it maintains it’s consistency across the entire solution. \n`,
`There are conditions for code rubbing, which are:`,
`- It shouldn’t take more than 20 minutes from an engineer’s day.`,
`- It should target only one single file per day.`,
`- It shouldn’t include implementing new features or fixing bugs.`,
`- It should require more code reading than code writing.`,
`- It shouldn’t require a pairing session.`,
`- It should be done continuously every single day.`,
`- It shouldn’t happen to the same file by the same engineer twice unless every other file has been already rubbed`,
``,
`Your file has already been picked, it is {fileName}`,
].join('\n'),
titleTemplate: 'Code rub: {fileName}',
workItemType: 'Sub-task',
project: '{my-project}',
},
},
},
};
module.exports = plugin;
const plugin_1 = (0, tslib_1.__importDefault)(require("./plugin"));
module.exports = plugin_1.default;
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc