This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Added-new-method-criteria
- Loading branch information
Showing
46 changed files
with
667 additions
and
155 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## Description of changes | ||
|
||
> Describe what this pull request is changing. Try to use plain language as much | ||
> as possible to help teammates understand what they are reviewing. | ||
## Known issues | ||
|
||
> If this pull request introduces anything that needs to be addressed later, | ||
> note it here. Some examples might be if you introduced a new link that fails | ||
> tests but will work when another pull request is merged; you created a new | ||
> method placeholder but it does not yet have content; or your change breaks | ||
> something else that will be removed later. If you create any issues to | ||
> address issues created by this pull request, this is a good place to list | ||
> them! You can delete this section if the PR does not introduce any new issues. | ||
## Related issues | ||
|
||
> If this pull request is associated with any other issues or pull requests, | ||
> lis them here. If this PR *closes* an issue, list it as `closes #issue` so | ||
> the issue will automatically be closed when the PR is merged. If there are no | ||
> related issues or PRs, you can delete this section. | ||
- | ||
- | ||
|
||
## Reviewers: | ||
|
||
> In addition to assigning reviewers in the GitHub interface, please also list | ||
> who you would like a review from here and, if applicable, what kind of review | ||
> you would like from them. For example, you might ask one person to review | ||
> content while someone else reviews visual layout. | ||
- [ ] @username: please review content | ||
- [ ] | ||
- [ ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: sync milestones | ||
|
||
on: | ||
milestone: | ||
types: [created] | ||
|
||
jobs: | ||
synchronize: | ||
name: synchronize milestones | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Rather than use a personal access token to interact with the project, we | ||
# can use this GitHub App. There's an API for exchanging app credentials | ||
# for a short-term token, and we use that API here. | ||
- name: get token | ||
uses: tibdex/github-app-token@v1 | ||
id: app_token | ||
with: | ||
app_id: ${{ secrets.PROJECT_APP_ID }} | ||
installation_id: ${{ secrets.PROJECT_INSTALLATION_ID }} | ||
private_key: ${{ secrets.PROJECT_PRIVATE_KEY }} | ||
|
||
- name: sync milestones | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ steps.app_token.outputs.token }} | ||
script: | | ||
// Get the metadata about this repo from the workflow context | ||
const { owner, repo } = context.repo; | ||
// And remove this repo from the list of repos to sync to. No need | ||
// to sync myself with myself. | ||
const syncTargets = ["methods", "ux-guide"].filter((r) => r !== repo); | ||
// Get a list of this repo's milestones | ||
const myMilestones = await github | ||
.paginate(`GET /repos/${owner}/${repo}/milestones`) | ||
.then((milestones) => | ||
milestones.map(({ title, description, due_on, state }) => ({ | ||
title, | ||
description, | ||
due_on, | ||
state, | ||
})) | ||
); | ||
// Now for each sync target repo... | ||
for await (const target of syncTargets) { | ||
// Get the titles of their milestones, which we'll use to filter | ||
// down to which milestones to synchronize | ||
const theirMilestones = new Set( | ||
await github | ||
.paginate(`GET /repos/${owner}/${target}/milestones`) | ||
.then((milestones) => milestones.map(({ title }) => title)) | ||
); | ||
for await (const milestone of myMilestones) { | ||
// If a milestone with this title does NOT exist in the target | ||
// repo, then we should create one. | ||
if (!theirMilestones.has(milestone.title)) { | ||
// Expand the milestone so we push the title, description, due | ||
// date, and status (open/closed) all at once. | ||
await github.rest.issues.createMilestone({ owner, repo: target, ...milestone }); | ||
} | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ _site/ | |
.sass-cache/ | ||
.DS_store | ||
.*.swp | ||
.ruby-version | ||
.jekyll-cache/ | ||
.bundle |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.7.5 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'jekyll', '>= 4.2.0' | ||
gem 'redcarpet' | ||
gem 'rouge' | ||
gem 'hash-joiner' | ||
gem 'jekyll-last-modified-at', '>= 1.3.0' | ||
gem 'jemoji', '>= 0.12.0' | ||
gem 'jekyll-mentions', '>= 1.6.0' | ||
gem 'jekyll-redirect-from', '>= 0.16.0' | ||
gem 'jekyll-sitemap', '>= 1.4.0' | ||
gem 'jekyll-autoprefixer' | ||
gem 'jekyll-liquify' | ||
gem 'jekyll', '4.2.2' | ||
|
||
group :jekyll_plugins do | ||
gem 'jekyll-last-modified-at', '>= 1.3.0' | ||
gem 'jemoji', '>= 0.12.0' | ||
gem 'jekyll-mentions', '>= 1.6.0' | ||
gem 'jekyll-redirect-from', '>= 0.16.0' | ||
gem 'jekyll-sitemap', '>= 1.4.0' | ||
gem 'jekyll-liquify' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.