nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: postmanlabs/postman-code-generators
Pull request #671 (2023-02-07 07:58:05)

Change minimum node version required to v12


Patch:
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index d0a03ec..d87f7e9 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -11,7 +11,7 @@ jobs:
       - name: Setup Node JS
         uses: actions/setup-node@v1
         with:
-          node-version: '8.x'
+          node-version: '12.x'
       - name: Install system dependencies
         run: npm run cirequirements
       - name: Install package dependencies
diff --git a/package.json b/package.json
index 1904be2..7fe3dd4 100644
--- a/package.json
+++ b/package.json
@@ -54,6 +54,6 @@
     "watchify": "3.11.1"
   },
   "engines": {
-    "node": ">=6"
+    "node": ">=12"
   }
 }


Test patch:
diff --git a/test/system/repository.test.js b/test/system/repository.test.js
index c243a57..f5f7fbb 100644
--- a/test/system/repository.test.js
+++ b/test/system/repository.test.js
@@ -38,7 +38,7 @@ describe('project repository', function () {
         expect(json).to.have.property('repository');
 
         expect(json).to.have.property('engines');
-        expect(json.engines).to.eql({ node: '>=6' });
+        expect(json.engines).to.eql({ node: '>=12' });
       });
 
       it('must have a valid version string in form of <major>.<minor>.<revision>', function () {
Repository: postmanlabs/postman-code-generators
Pull request #694 (2023-03-29 09:40:10)

Release v1.7.1
Adding language labels for new languages.


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 19545a7..5bc029b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+v1.7.1 (March 29, 2023)
+* Minor fix - Add language labels for Rust and Kotlin
+
 v1.7.0 (March 28, 2023)
 * Fix for - [#192](https://github.com/postmanlabs/postman-code-generators/issues/192) Added support for Rust reqwest code snippets.
 
diff --git a/lib/assets/languageLabels.json b/lib/assets/languageLabels.json
index 01a44ec..8078f4d 100644
--- a/lib/assets/languageLabels.json
+++ b/lib/assets/languageLabels.json
@@ -6,6 +6,7 @@
   "python": "Python",
   "ruby": "Ruby",
   "java": "Java",
+  "kotlin": "Kotlin",
   "c": "C",
   "php": "PHP",
   "objective-c": "Objective-C",
@@ -19,5 +20,6 @@
   "ocaml": "OCaml",
   "shell": "Shell",
   "dart": "Dart",
-  "r": "R"
+  "r": "R",
+  "rust": "Rust"
 }
diff --git a/package-lock.json b/package-lock.json
index 11a96ad..39d8ad3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
 {
   "name": "postman-code-generators",
-  "version": "1.7.0",
+  "version": "1.7.1",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
diff --git a/package.json b/package.json
index 17e48de..750ff1d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "postman-code-generators",
-  "version": "1.7.0",
+  "version": "1.7.1",
   "description": "Generates code snippets for a postman collection",
   "main": "index.js",
   "directories": {


Test patch:
diff --git a/npm/test.sh b/npm/test.sh
index a2757b4..6b340c5 100755
--- a/npm/test.sh
+++ b/npm/test.sh
@@ -59,6 +59,9 @@ else
     # check for .gitignore, license.md, readme.md, .eslintrc and package.json
     mocha ./test/system/repository.test.js;
 
+    # runs test to see if the codegen interface is implemented correctly
+    mocha ./test/unit/lib.test.js;
+
     # Common structure and npm test for each codegen.
     echo -e "Running codegen-structure tests on all the codegens";
     for directory in codegens/*; do
diff --git a/test/unit/lib.test.js b/test/unit/lib.test.js
new file mode 100644
index 0000000..77ad8c3
--- /dev/null
+++ b/test/unit/lib.test.js
@@ -0,0 +1,19 @@
+const expect = require('chai').expect,
+  lib = require('../../lib'),
+  labels = require('../../lib/assets/languageLabels.json');
+
+describe('lib', function () {
+  describe('getLanguageList', function () {
+    it('should test that each language has a valid label', function () {
+      const list = lib.getLanguageList();
+
+      expect(list).to.be.an('array');
+
+      list.forEach(function (lang) {
+        expect(lang).to.have.property('key');
+        expect(lang).to.have.property('label');
+        expect(lang.label).to.equal(labels[lang.key]);
+      });
+    });
+  });
+});