Skip to content

[wrong repo, ignore] #607

@tadasant

Description

@tadasant

Oops, opened in the wrong repo... (meant to go here)

Is your feature request related to a problem? Please describe.

I'm building out some workflows that will pull and summarize Discussions, and one notably missing piece of data for that workflow is the primary author of a Discussion.

I believe that is defined here:

			var q struct {
				Repository struct {
					Discussion struct {
						Number    githubv4.Int
						Body      githubv4.String
						CreatedAt githubv4.DateTime
						URL       githubv4.String `graphql:"url"`
						Category  struct {
							Name githubv4.String
						} `graphql:"category"`
					} `graphql:"discussion(number: $discussionNumber)"`
				} `graphql:"repository(owner: $owner, name: $repo)"`
			}

Describe the solution you'd like

I basically want enough metadata to know who started the discussion so I have context for what kind of person initiated it. I believe that is author in the GraphQL API (type Actor), and author.login is probably sufficient.

Describe alternatives you've considered

I don't think there is any reasonable alternative to get this data, besides including it in this endpoint, because that's the only place it would be present on GitHub's database. The only workaround would be to bypass the GitHub API and fetch the discussions's HTML, and parse it from there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions