Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Get Repository Content for a Directory #143

Open
1 task done
caleblloyd opened this issue Jan 18, 2025 · 1 comment
Open
1 task done

[FEAT]: Get Repository Content for a Directory #143

caleblloyd opened this issue Jan 18, 2025 · 1 comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request

Comments

@caleblloyd
Copy link

caleblloyd commented Jan 18, 2025

Describe the need

Get repository content supports getting Directory contents - See Examples 2 and 4. I think this may be using application/json so 4 would be the correct example for that.

However the dir case is not handled here:

if("file".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.ContentFile = new global::GitHub.Models.ContentFile();
}
else if("submodule".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.ContentSubmodule = new global::GitHub.Models.ContentSubmodule();
}
else if("symlink".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.ContentSymlink = new global::GitHub.Models.ContentSymlink();
}
else if(parseNode.GetCollectionOfObjectValues<global::GitHub.Models.WithPathGetResponseMember1>(global::GitHub.Models.WithPathGetResponseMember1.CreateFromDiscriminatorValue)?.AsList() is List<global::GitHub.Models.WithPathGetResponseMember1> withPathGetResponseMember1Value)
{
result.WithPathGetResponseMember1 = withPathGetResponseMember1Value;

SDK Version

No response

API Version

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@caleblloyd caleblloyd added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Jan 18, 2025
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@nickfloyd nickfloyd moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

1 participant