Giter VIP home page Giter VIP logo

stats's Introduction

GitHub Repo Template

This repository serves as a template for creating your own GitHub repositories. It includes a scheduled GitHub Action that generates GitHub stats on a daily basis.

Getting Started

To use this template, follow these steps:

  1. Click on the "Use this template" button to create a new repository based on this template.
  2. Clone the newly created repository to your local machine.

Creating a GitHub Personal Access Token (PAT)

To enable the scheduled GitHub Action, you need to create a GitHub Personal Access Token (PAT). This token should be a classic token, set to never expire, with scopes for read-only repository and profile access. Here's how:

  1. Go to GitHub settings.
  2. Navigate to "Developer settings" > "Personal access tokens".
  3. Click on "Generate new token".
  4. Give your token a descriptive name.
  5. Set the expiration to "No expiration" or whatever your preference is.
  6. For the scopes, select "repo" (for read-only repository access) and "user:email" (for read-only profile access).
  7. Click on "Generate token".
  8. Copy the generated token. Be sure to save it somewhere safe, as you won't be able to see it again.

Adding the PAT to the Repository Secrets

After generating your PAT, you need to add it to the repository secrets. Here's how:

  1. Go to your repository settings.
  2. Navigate to "Secrets".
  3. Click on "New repository secret".
  4. Name the secret "ACCESS_TOKEN" and paste your PAT in the value field.
  5. Click on "Add secret".

Using the Scheduled Action

With the PAT added to the repository secrets, the scheduled GitHub Action can now run. This action generates GitHub stats daily.

To view the stats, navigate to the "Actions" tab in your repository. Here, you can see the results of each run of the action.

Remember to always keep your PAT safe and never share it with anyone. It's like a password, but for your GitHub account.

Happy coding!

stats's People

Contributors

luke-hagar-sp avatar lukehagar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.