Closed ljharb closed 2 years ago
forkingAllowed
is available. To access it, the GraphQL query should look like this:
nodes {
name
nameWithOwner
forkingAllowed
...
}
All metric-dependent code has to be updated. (metrics.js
, metricNames
in commands/detail.js
, defaults.json
, validate.js
)
@ljharb I can work on this as it is pretty similar to #40
It might also be nice to do a refactor that makes a single source of truth - so that in the future, adding new metrics can be done in a single place? not sure what that would look like tho.
We can discuss that in the meeting this week maybe?
https://github.blog/changelog/2021-10-11-set-via-api-whether-a-repository-allows-forking/
The link is about #40, but that means the metric is also readable via the API.