fix(docs): lot of misspelling (#1180) [skip ci]

This commit is contained in:
Josh Soref
2022-08-14 12:04:03 -04:00
committed by GitHub
parent e2f27e931d
commit ab85858528
59 changed files with 115 additions and 115 deletions

View File

@@ -1,4 +1,4 @@
- name: 💡 Coding habits and activity - Midly interesting facts
- name: 💡 Coding habits and activity - Mildly interesting facts
uses: lowlighter/metrics@latest
with:
token: MOCKED_TOKEN

View File

@@ -1,4 +1,4 @@
- name: ⏱️ Google PageSpeed - Succint report
- name: ⏱️ Google PageSpeed - Succinct report
uses: lowlighter/metrics@latest
with:
token: NOT_NEEDED
@@ -27,7 +27,7 @@
plugin_pagespeed_url: https://lecoq.io
use_mocked_data: 'yes'
verify: 'yes'
- name: ⏱️ Google PageSpeed - Succint report with PWA
- name: ⏱️ Google PageSpeed - Succinct report with PWA
uses: lowlighter/metrics@latest
with:
token: NOT_NEEDED

View File

@@ -5,8 +5,8 @@ const git = require("simple-git")(path.join(__dirname, ".."))
//Edited files list
const diff = async () => (await git.diff(["origin/master...", "--name-status"])).split("\n").map(x => x.trim()).filter(x => /^M\s+/.test(x)).map(x => x.replace(/^M\s+/, ""))
//Files editions
describe("Check files editions (checkout your files if needed)", () => {
//File changes
describe("Check file changes (checkout your files if needed)", () => {
describe("Auto-generated files were not modified", () =>
void test.each([
"README.md",
@@ -42,7 +42,7 @@ describe("Check files editions (checkout your files if needed)", () => {
}
})
//Templates editions
describe("Check templates editions", () => {
//Template changes
describe("Check template changes", () => {
test("Use community templates instead (see https://github.com/lowlighter/metrics/tree/master/source/templates/community)", async () => void expect((await diff()).filter(edited => /^sources[/]templates[/]/.test(edited) && /^source[/]templates[/](?:classic|terminal|markdown|repository|community)[/][\s\S]*$/.test(edited)).length).toBe(0))
})

View File

@@ -8,7 +8,7 @@ const axios = require("axios")
const faker = require("@faker-js/faker").faker
const ejs = require("ejs")
//Github action
//GitHub action
const action = yaml.load(fs.readFileSync(path.join(__dirname, "../action.yml"), "utf8"))
action.defaults = Object.fromEntries(Object.entries(action.inputs).map(([key, {default: value}]) => [key, value]))
action.input = vars => Object.fromEntries([...Object.entries(action.defaults), ...Object.entries(vars)].map(([key, value]) => [`INPUT_${key.toLocaleUpperCase()}`, value]))

View File

@@ -1,6 +1,6 @@
/**Mocked data */
export default function({faker, query, login = faker.internet.userName()}) {
console.debug("metrics/compute/mocks > mocking graphql api result > repositories/randodm")
console.debug("metrics/compute/mocks > mocking graphql api result > repositories/random")
return ({
user: {
repositories: {