-
-
Notifications
You must be signed in to change notification settings - Fork 22.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update_themes_preview_run_condition
- Loading branch information
Showing
28 changed files
with
348 additions
and
136 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Close empty issues and templates | ||
on: | ||
issues: | ||
types: | ||
- reopened | ||
- opened | ||
- edited | ||
|
||
jobs: | ||
closeEmptyIssuesAndTemplates: | ||
name: Close empty issues | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 # NOTE: Retrieve issue templates. | ||
- name: Run empty issues closer action | ||
uses: rickstaa/empty-issues-closer-action@v1 | ||
env: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
close_comment: | ||
Closing this issue because it appears to be empty. Please update the | ||
issue for it to be reopened. | ||
open_comment: | ||
Reopening this issue because the author provided more information. | ||
check_templates: true | ||
template_close_comment: | ||
Closing this issue since the issue template was not filled in. | ||
Please provide us with more information to have this issue reopened. | ||
template_open_comment: | ||
Reopening this issue because the author provided more information. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Update top issues dashboard | ||
on: | ||
schedule: | ||
- cron: "0 0 */7 * *" | ||
|
||
jobs: | ||
showAndLabelTopIssues: | ||
name: Update top issues Dashboard. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run top issues action | ||
uses: rickstaa/top-issues-action@v1 | ||
env: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
label: false | ||
dashboard: true | ||
dashboard_show_total_reactions: true | ||
top_issues: true | ||
top_bugs: true | ||
top_features: true | ||
top_pull_requests: true |
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
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,26 +1,30 @@ | ||
const fs = require('fs'); | ||
const jsYaml = require('js-yaml'); | ||
const axios = require('axios'); | ||
const fs = require("fs"); | ||
const jsYaml = require("js-yaml"); | ||
const axios = require("axios"); | ||
|
||
const LANGS_FILEPATH = "./src/common/languageColors.json" | ||
const LANGS_FILEPATH = "./src/common/languageColors.json"; | ||
|
||
//Retrieve languages from github linguist repository yaml file | ||
//@ts-ignore | ||
axios.get("https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml") | ||
.then((response) => { | ||
axios | ||
.get( | ||
"https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml", | ||
) | ||
.then((response) => { | ||
//and convert them to a JS Object | ||
const languages = jsYaml.load(response.data); | ||
|
||
//and convert them to a JS Object | ||
const languages = jsYaml.load(response.data); | ||
const languageColors = {}; | ||
|
||
const languageColors = {}; | ||
//Filter only language colors from the whole file | ||
Object.keys(languages).forEach((lang) => { | ||
languageColors[lang] = languages[lang].color; | ||
}); | ||
|
||
//Filter only language colors from the whole file | ||
Object.keys(languages).forEach((lang) => { | ||
languageColors[lang] = languages[lang].color; | ||
//Debug Print | ||
//console.dir(languageColors); | ||
fs.writeFileSync( | ||
LANGS_FILEPATH, | ||
JSON.stringify(languageColors, null, " "), | ||
); | ||
}); | ||
|
||
//Debug Print | ||
//console.dir(languageColors); | ||
fs.writeFileSync(LANGS_FILEPATH, JSON.stringify(languageColors, null, ' ')); | ||
|
||
}); |
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.