-
Notifications
You must be signed in to change notification settings - Fork 60
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
Determine format of information for crawler #59
Comments
|
Which of the points (tests, specs...) imply an URL? |
(Nice To Have) - Example code |
for now this is only for stage 3, as we do not have plans for the other stages. if we are thinking about other stages, what would people like to see? |
Looks like example code can be pulled from #66 |
ProposalIf we combine GitHub's metadata, and some well-known paths, we can get all of the data we need. GitHub Metadata
Well-known paths in repo:
The queryGitHub's v4 graphql API can get us all this data in one hit: {
organization(login: "tc39") {
repositories(first: 20, isFork: false, privacy: PUBLIC) {
nodes {
name
description: shortDescriptionHTML(limit: 150)
githubUrl: url
specUrl: homepageUrl
collaborators(first: 10, affiliation: DIRECT) {
nodes {
username: login
fullName: name
company
}
}
readme: object(expression: "master:README.md") {
... on Blob {
text
}
}
codeSample: object(expression: "master:sample.js") {
... on Blob {
text
}
}
}
}
}
}
You can try out this query yourselves in the graphql explorer - the only part that might not work is Any missing info in this query will just return We could also make use of GitHub's topics feature which allows you to assign arbitrary tags to a repo. We could include those in the query to get small snippets of info - or to filter repos by this. For example if all proposals added a topic of |
Topics can’t be changed by pull request tho, so there’s no way for non admins (or collabs, I’m not sure which) to make or explicitly request a change - unless topics are somehow accessible in the repo? |
Well, we could use https://github.com/probot/settings which facilitates every setting on a GitHub repository to be synced to a YAML file - which users can then make pull-requests on. Of course if we're adding an app to manage a YAML file we may want to just have that data surfaced via a well-known file anyway - perhaps |
Using a bot isn't particularly ergonomic tho - it'd be really nice if that feature was built into github directly :-) |
So, as a way to move forward here, would it make sense to use the meta data for now? Then if the issue that ljharb brought up is common enough we can look into automating that as well? |
We are planning on having a crawler collect information from proposals for display. At the moment the following are necessary:
Is anything missing from this list?
<edited to add proposal groups, code samples, and types for the information>
The text was updated successfully, but these errors were encountered: