-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch list of repositories by topic (#53)
* Added queryRepositoriesByTopic * Started queryAndDumpRepositories * Added test for queryAndDumpRepositories * Removed previous functions for querying repos * Added param for max num of repos to return * Sort queried repos by name * Updated documentation * Clarify the purpose of topic oss-portal-featured
- Loading branch information
1 parent
261a366
commit de3219f
Showing
8 changed files
with
210 additions
and
158 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
# How to release | ||
# How repositories are fetched | ||
|
||
Any commit to `main` branch will trigger a [GitHub Actions workflow](./.github/workflows) that builds and releases | ||
the site to GitHub Pages. The workflow is also automatically scheduled on a daily basis. | ||
The repositories that are shown in the portal are fetched with GitHub GraphQL API by this [build script](./src/scripts/build-repo-data.js) that is run at build time, producing a [static JSON file](./static/repos.json). | ||
|
||
In particular, repositories are fetched within the `ExpediaGroup` organization by [topic](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics): | ||
|
||
- if the repo has topic `oss-portal-listed` it will be shown in the Repositories Page | ||
- if the repo has topic `oss-portal-featured` it will be shown in the Repositories Page and in the Home Page | ||
|
||
The list of repositories that are shown in the Home Page (the "featured" repositories) and in the Repositories Page is hardcoded in this [build script](./src/scripts/build-repo-data.js). | ||
The information for each listed repository is fetched using GitHub GraphQL API at build time | ||
producing a [static JSON file](./static/repos.json). | ||
# How blog posts are fetched | ||
|
||
The Medium blog posts [are fetched from the RSS feed](./src/scripts/build-posts-data.js) at build time | ||
producing a [static JSON file](./static/posts.json). | ||
|
||
# How to release | ||
|
||
Any commit to `main` branch will trigger a [GitHub Actions workflow](./.github/workflows) that builds and releases | ||
the site to GitHub Pages. The workflow is also automatically scheduled on a daily basis. | ||
|
||
The built static files are pushed to branch `gh-pages`, which automatically triggers the GitHub Pages deployment, usually | ||
in few minutes. You can check the history of GitHub Pages deployments [here](https://github.com/ExpediaGroup/expediagroup.github.io/deployments). |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.