Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function getProgressList(langs) {
// TODO this search requires looking for issues with the string "Translation Progress"
// in the title. Maybe we should replace it with something more robust.
const { search } = await graphql(
`
query($limit: Int!) {
search(
type: ISSUE
query: "org:reactjs Translation Progress in:title"
first: $limit
) {
nodes {
... on Issue {
title
body
createdAt
lastEditedAt
number
repository {
name
userContentEdits(first: 100) {
edges {
node {
editedAt
diff
}
}
}
}
}
}
}
}`
for (const repo of searchRepos) {
let [owner, project] = repo.split('/');
let issues = await graphql(query, {
headers: {
authorization: "token f3b7ff551d31170bef759d1a6889ee62ce5b3a83"
},
owner: owner,
project: project,
labels: labels
});
console.log(issues);
}
}