PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: jira-node/node-jira-client (js)

Issue:
Add notify API
https://docs.atlassian.com/jira/REST/latest/#api/2/issue-notify


Pull request:
Issue notify
Fixes #73 

Patch:
diff --git a/src/jira.js b/src/jira.js
index dd1d132..c111c25 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -1054,6 +1054,22 @@ export default class JiraApi {
     }));
   }
 
+  /** Notify people related to issue
+   * [Jira Doc](https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-notify)
+   * @name issueNotify
+   * @function
+   * @param {string} issueId - issue id
+   * @param {object} notificationBody - properly formatted body
+   */
+  issueNotify(issueId, notificationBody) {
+    return this.doRequest(this.makeRequestHeader(this.makeUri({
+      pathname: `/issue/${issueId}/notify`,
+    }), {
+      method: 'POST',
+      body: notificationBody,
+    }));
+  }
+
   /** Get list of possible statuses
    * [Jira Doc](https://docs.atlassian.com/jira/REST/latest/#api/2/status-getStatuses)
    * @name listStatus


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index f65dc92..dca8ff2 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -676,5 +676,10 @@ describe('Jira API Tests', () => {
       const result = await dummyURLCall('listStatus');
       result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/status');
     });
+
+    it('issueNotify hits proper url', async () => {
+      const result = await dummyURLCall('issueNotify', ['someIssueId', {}]);
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/issue/someIssueId/notify');
+    });
   });
 });
Repository: JoshuaKGoldberg/tslint-to-eslint-config (ts)

Issue:
TypeScript configuration files can't have comments
### 🐛 Bug Report

-   `tslint-to-eslint-config` version: 0.1.8
-   ESLint version: N/A
-   Node version: N/A

#### Actual Behavior

If you've put non-JSON things in your `tsconfig.json`, such as comments, `tslint-to-eslint-config --typescript tsconfig.json` won't load the file. This is because the file is printed with `cat` on the CLI, then passed to `JSON.parse` in code. 

#### Expected Behavior

TypeScript supports comments. We should too!

#### Reproduction

1. Create a `tsconfig.json` with comments in it
2. Run `tslint-to-eslint-config --typescript tsconfig.json`

Pull request:
Used tsc --showConfig instead of cat for --typescript configs
## PR Checklist

-   [x] Addresses an existing issue: fixes #85
-   [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)

## Overview

Per #85, TypeScript has a native `--showConfig` flag we can use as of version 3.2. This PR uses that instead of `cat` to print TypeScript configuration files.

Patch:
diff --git a/src/input/findTypeScriptConfiguration.ts b/src/input/findTypeScriptConfiguration.ts
index f0e33ca..27badf3 100644
--- a/src/input/findTypeScriptConfiguration.ts
+++ b/src/input/findTypeScriptConfiguration.ts
@@ -19,7 +19,7 @@ export const findTypeScriptConfiguration = async (
 ): Promise<TypeScriptConfiguration | Error> => {
     const rawConfiguration = await findConfiguration<TypeScriptConfiguration>(
         dependencies.exec,
-        "cat",
+        "tsc --showConfig -p",
         config || "./tsconfig.json",
     );
 


Test patch:
diff --git a/src/input/findTypeScriptConfiguration.test.ts b/src/input/findTypeScriptConfiguration.test.ts
index ac9e8c7..befb8d3 100644
--- a/src/input/findTypeScriptConfiguration.test.ts
+++ b/src/input/findTypeScriptConfiguration.test.ts
@@ -26,7 +26,7 @@ describe("findTypeScriptConfiguration", () => {
         await findTypeScriptConfiguration(dependencies, undefined);
 
         // Assert
-        expect(dependencies.exec).toHaveBeenLastCalledWith(`cat "./tsconfig.json"`);
+        expect(dependencies.exec).toHaveBeenLastCalledWith(`tsc --showConfig -p "./tsconfig.json"`);
     });
 
     it("includes a configuration file in the TypeScript command when one is provided", async () => {
@@ -38,7 +38,9 @@ describe("findTypeScriptConfiguration", () => {
         await findTypeScriptConfiguration(dependencies, config);
 
         // Assert
-        expect(dependencies.exec).toHaveBeenLastCalledWith(`cat "./custom/tsconfig.json"`);
+        expect(dependencies.exec).toHaveBeenLastCalledWith(
+            `tsc --showConfig -p "./custom/tsconfig.json"`,
+        );
     });
 
     it("applies TypeScript defaults when none are provided", async () => {
Repository: hub4j/github-api (java)

Issue:
Add display_title parameter to GHWorkflowRun model
**Describe the bug**
Now GHWorkflowRun model doesn't return **display_title** parameter of workflow run:  https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow

**Expected behavior**
Could you please add this parameter? I made pull for this https://github.com/hub4j/github-api/pull/1662
Thank you


Pull request:
Added display_title parameter for workspace run
# Description

Fixes #1661

Patch:
diff --git a/src/main/java/org/kohsuke/github/GHWorkflowRun.java b/src/main/java/org/kohsuke/github/GHWorkflowRun.java
index 3ca37af8e..a38450adb 100644
--- a/src/main/java/org/kohsuke/github/GHWorkflowRun.java
+++ b/src/main/java/org/kohsuke/github/GHWorkflowRun.java
@@ -30,6 +30,7 @@ public class GHWorkflowRun extends GHObject {
     private GHRepository owner;
 
     private String name;
+    private String displayTitle;
     private long runNumber;
     private long workflowId;
 
@@ -65,6 +66,15 @@ public class GHWorkflowRun extends GHObject {
         return name;
     }
 
+    /**
+     * The display title of the workflow run.
+     *
+     * @return the displayTitle
+     */
+    public String getDisplayTitle() {
+        return displayTitle;
+    }
+
     /**
      * The run number.
      *


Test patch:
diff --git a/src/test/java/org/kohsuke/github/GHEventPayloadTest.java b/src/test/java/org/kohsuke/github/GHEventPayloadTest.java
index 1b3be27bd..2400218a1 100644
--- a/src/test/java/org/kohsuke/github/GHEventPayloadTest.java
+++ b/src/test/java/org/kohsuke/github/GHEventPayloadTest.java
@@ -1062,6 +1062,7 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
         assertThat(workflowRun.getId(), is(680604745L));
         assertThat(workflowRun.getName(), is("CI"));
         assertThat(workflowRun.getHeadBranch(), is("main"));
+        assertThat(workflowRun.getDisplayTitle(), is("its-display-title"));
         assertThat(workflowRun.getHeadSha(), is("dbea8d8b6ed2cf764dfd84a215f3f9040b3d4423"));
         assertThat(workflowRun.getRunNumber(), is(6L));
         assertThat(workflowRun.getEvent(), is(GHEvent.WORKFLOW_DISPATCH));
diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json
index 2aecb178c..ee1915503 100644
--- a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json
+++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json
@@ -6,6 +6,7 @@
     "node_id": "MDExOldvcmtmbG93UnVuNjgwNjA0NzQ1",
     "head_branch": "main",
     "head_sha": "dbea8d8b6ed2cf764dfd84a215f3f9040b3d4423",
+    "display_title": "its-display-title",
     "run_number": 6,
     "event": "workflow_dispatch",
     "status": "completed",
Repository: sindresorhus/got (ts)

Issue:
ParseError on response with no body
I'm using `got` to query a JSON API where some endpoints simply return `200` with no body.

`got` throws a [`ParseError`](https://github.com/sindresorhus/got/blob/3dc219e70474e54c4ec4b2c27468f6ff722f8c6b/index.js#L107) because it only skips parsing if the status code is `204`.

I wonder if it makes sense to skip parsing every time the body is empty, without checking the status code.

```js
if (opts.json && res.body) {
  // try to parse
}
```

I'm happy to send a pull request if you think the above change would be useful.

Pull request:
Parse the response body only if it is not empty
Fixes #170.

Patch:
diff --git a/index.js b/index.js
index f54f3b9..1a4d91d 100644
--- a/index.js
+++ b/index.js
@@ -101,7 +101,7 @@ function asPromise(opts) {
 
 					res.body = data;
 
-					if (opts.json && statusCode !== 204) {
+					if (opts.json && res.body) {
 						try {
 							res.body = JSON.parse(res.body);
 						} catch (e) {


Test patch:
diff --git a/test/json.js b/test/json.js
index 2f0b2dc..a30b8d7 100644
--- a/test/json.js
+++ b/test/json.js
@@ -15,8 +15,8 @@ test.before('setup', async () => {
 		res.end('/');
 	});
 
-	s.on('/204', (req, res) => {
-		res.statusCode = 204;
+	s.on('/no-body', (req, res) => {
+		res.statusCode = 200;
 		res.end();
 	});
 
@@ -38,7 +38,7 @@ test('parses response', async t => {
 });
 
 test('not parses responses without a body', async t => {
-	const {body} = await got(`${s.url}/204`, {json: true});
+	const {body} = await got(`${s.url}/no-body`, {json: true});
 	t.is(body, '');
 });