Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
github: learningequality
custom: ["https://learningequality.org/donate/", "https://www.every.org/learningequality"]

62 changes: 62 additions & 0 deletions .github/workflows/resolve_bot_pr_threads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Resolve bot PR review threads
on:
workflow_call:
jobs:
resolve-addressed-review-threads:
name: Resolve addressed review threads
if: >
github.event_name == 'pull_request_review_comment' && github.event.comment.user.login == 'rtibblesbot' && contains(github.event.comment.body, '<!-- agent:thread-resolved -->')

runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Resolve the thread containing this comment
uses: actions/github-script@v9
with:
script: |
const commentId = context.payload.comment.id;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note that this doesn't match up with your description in the PR that it was in a separate JS file - however, I think this is appropriate, because this avoids having to checkout the repository (which for a reusable workflow is much more complicated). Keeping it self contained is good!

const { repository } = await github.graphql(
`query($owner: String!, $name: String!, $pr: Int!) {
repository(owner: $owner, name: $name) {
pullRequest(number: $pr) {
reviewThreads(first: 100) {
nodes {
id
isResolved
comments(first: 1) {
nodes { databaseId }
}
}
}
}
}
}`,
{
owner: context.payload.repository.owner.login,
name: context.payload.repository.name,
pr: context.payload.pull_request.number,
}
);

const nodes = repository.pullRequest.reviewThreads.nodes;
const thread = nodes.find(
t => !t.isResolved && t.comments.nodes[0]?.databaseId === commentId
);

if (!thread) {
core.info(`No matching unresolved thread for comment ${commentId}`);
return;
}

await github.graphql(
`mutation($id: ID!) {
resolveReviewThread(input: { threadId: $id }) {
thread { id isResolved }
}
}`,
{ id: thread.id }
);

core.info(`Resolved thread ${thread.id}`);
4 changes: 2 additions & 2 deletions profile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ _*We are an edtech nonprofit focused on building equity in education.*_

Learning Equality is committed to fostering student-centered learning and advancing organizations working with underserved teachers and learners. Through community-driven innovation and strategic partnerships, we provide offline-first, open-source digital tools and implementation support to help them thrive. With this work, we aim to build a new educational model, and ultimately promote human flourishing.

In celebration of our 13-year anniversary, we’re launching a $1.3 million fundraising campaign to continue to reach millions of children from Guatemala to Uganda, India to the USA! We’re now building toward:
In celebration of our 13-year anniversary, we’re launching a $1.3 million fundraising campaign to continue to reach millions of children from Guatemala to Uganda, India to the USA! We’re now building toward:

- Developing offline AI-powered tools that build AI literacy, maintain human agency, and save valuable teacher time – and put these tools directly into the hands of our community
- Helping refugee children build foundational, critical thinking and social-emotional skills via our Flying Colors program
- Increasing direct support to organizations in East Africa that implement student-centered learning with Kolibri
- Increasing direct support to organizations in East Africa that implement student-centered learning with Kolibri

💸 If you feel inspired by our mission, we invite you to [be part of it](https://learningequality.org/donate/)<br/>
ℹ️ Learn more [about us](https://learningequality.org/) <br/>
Expand Down
Loading