Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 2.22 KB

HOW-TO-CONFIGURE.md

File metadata and controls

57 lines (39 loc) · 2.22 KB

How to configure/ personalize check-my-repo

Follow a few instructions on how to configure/ personalize your check-my-repo application

Configuring Environment Variables/ GitHub Secrets

When running locally it is important to provide a GITHUB_TOKEN to avoid rate limiting. To know more about it, visit: GitHub documentation

This will not happen when running through CI/CD as it is set up as authenticated user using GutHub’s default secret: GITHUB_TOKEN. You can change this at: src/index.js line 2:

const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN })

Personalizing CSS Style

Application main configuration is defined at ./frontend/src/App.vue.

Although Vue works with scoped styles, most of the application styles are defined in variables, which makes changes easy and simple.

:root {
  --app-background: #464B54;
  --square-background-color: #2E3137;
  --passed-color: #158906;
  --passed-color-accent: #8CFF4D;
  --failed-color: #e12726;
  --primary-color: #6ED6FF;
  --grey-accent: lightgrey;
  --shadow: rgb(34, 33, 33);
}

Changing Rules

Check-My-Repo is built upon Repolinter, but does not used all their default rules as default.

To add see all Repolinter rules please refer directly to their documentation. Check-My-Repo rules can be modified at ./repolinter.json file in the project root.

Changing Logo

Application uses now Sauce Labs Bot as a default logo. You can change it to your own logo just switching the logo.svg file at ./frontend/public folder.

Checking for accessibility after modifying the application

Check-My-Repo uses vue-axe in development mode to accessibility verification.

You can check if something is missing on your Browsers console, or disable it in ./frontend/main.js file, by turning to auto: false

if (process.env.NODE_ENV === 'development') {
  const VueAxe = require('vue-axe').default
  Vue.use(VueAxe, {
  auto: true  // enable auto check.
})