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 description:
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",