Repository: google/go-github (Go)

Issue:
Missing `display_title` field from `WorkflowRun`
The field `display_title` is missing from the `WorkflowRun` struct. It is part of the response body for various API endpoints that return an instance of a `WorkflowRun`. 

The [endpoint](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run) `/repos/OWNER/REPO/actions/runs/RUN_ID` has it shown in the docs:

```json
{
  "id": 30433642,
  "name": "Build",
  "node_id": "MDEyOldvcmtmbG93IFJ1bjI2OTI4OQ==",
  "check_suite_id": 42,
  "check_suite_node_id": "MDEwOkNoZWNrU3VpdGU0Mg==",
  "head_branch": "main",
  "head_sha": "acb5820ced9479c074f688cc328bf03f341a511d",
  "path": ".github/workflows/build.yml@main",
  "run_number": 562,
  "event": "push",
  "display_title": "Update README.md",  <-------
  "status": "queued",
  "conclusion": null,
  "workflow_id": 159038,
  "url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642",
  "html_url": "https://github.com/octo-org/octo-repo/actions/runs/30433642",
  "pull_requests": [],
  ...
}
```

It isn't shown in the docs for the [endpoint](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository) `/repos/OWNER/REPO/actions/runs` but it's present in the actual response body. 


Discussion:

Patch:
diff --git a/github/actions_workflow_runs.go b/github/actions_workflow_runs.go
index 704048774e6..61f736be4fb 100644
--- a/github/actions_workflow_runs.go
+++ b/github/actions_workflow_runs.go
@@ -22,6 +22,7 @@ type WorkflowRun struct {
 	RunNumber          *int           `json:"run_number,omitempty"`
 	RunAttempt         *int           `json:"run_attempt,omitempty"`
 	Event              *string        `json:"event,omitempty"`
+	DisplayTitle       *string        `json:"display_title,omitempty"`
 	Status             *string        `json:"status,omitempty"`
 	Conclusion         *string        `json:"conclusion,omitempty"`
 	WorkflowID         *int64         `json:"workflow_id,omitempty"`
diff --git a/github/github-accessors.go b/github/github-accessors.go
index c2d9061c174..a9aaee814ab 100644
--- a/github/github-accessors.go
+++ b/github/github-accessors.go
@@ -22310,6 +22310,14 @@ func (w *WorkflowRun) GetCreatedAt() Timestamp {
 	return *w.CreatedAt
 }
 
+// GetDisplayTitle returns the DisplayTitle field if it's non-nil, zero value otherwise.
+func (w *WorkflowRun) GetDisplayTitle() string {
+	if w == nil || w.DisplayTitle == nil {
+		return ""
+	}
+	return *w.DisplayTitle
+}
+
 // GetEvent returns the Event field if it's non-nil, zero value otherwise.
 func (w *WorkflowRun) GetEvent() string {
 	if w == nil || w.Event == nil {


Test patch:
diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go
index eb0a0db42c6..a29baa0f0c4 100644
--- a/github/github-accessors_test.go
+++ b/github/github-accessors_test.go
@@ -26079,6 +26079,16 @@ func TestWorkflowRun_GetCreatedAt(tt *testing.T) {
 	w.GetCreatedAt()
 }
 
+func TestWorkflowRun_GetDisplayTitle(tt *testing.T) {
+	var zeroValue string
+	w := &WorkflowRun{DisplayTitle: &zeroValue}
+	w.GetDisplayTitle()
+	w = &WorkflowRun{}
+	w.GetDisplayTitle()
+	w = nil
+	w.GetDisplayTitle()
+}
+
 func TestWorkflowRun_GetEvent(tt *testing.T) {
 	var zeroValue string
 	w := &WorkflowRun{Event: &zeroValue}