Skip to content

Add extra info from GitHub using Tags#11

Merged
hhaarsma merged 2 commits intomainfrom
feature/GetDotNetVersionInfo
Feb 29, 2024
Merged

Add extra info from GitHub using Tags#11
hhaarsma merged 2 commits intomainfrom
feature/GetDotNetVersionInfo

Conversation

@hhaarsma
Copy link
Copy Markdown
Contributor

Languages, Teams, DotNet versions

Languages, Teams, DotNet versions
Comment thread src/github.js Outdated

const getDotNetVersions = async (repo, keyword) => {
try {
const { data } = await octokit.request('GET https://api.github.com/search/code?q={keyword}+repo:{repo}', {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we need to search vs know where this file is always located?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking into that part (therefor I set the PR as Draft) - when Googling how to get all the csproj files in a GitHub repo the first answers are with search, but I think I have a way of using the Tree API and then get the content for the csproj files.

C# version is now done via csproj file content instead of searching

Links seemed to be overlooked due to capitalisation of the name
@hhaarsma hhaarsma marked this pull request as ready for review February 29, 2024 09:46
@hhaarsma hhaarsma merged commit e0c0d0d into main Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants