Skip to content

Commit

Permalink
Add Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPlowman committed Sep 29, 2024
1 parent aa869fc commit d64b9a4
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports.ruff": "always",
"source.fixAll.ruff": "always",
"source.convertImportFormat": "always"
},
"editor.wordBasedSuggestions": "allDocuments"
}
},
"editor.formatOnSave": true
}
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# GitHub Stats Analyser

## Table of Contents

- [GitHub Stats Analyser](#github-stats-analyser)
- [Table of Contents](#table-of-contents)
- [Introduction](#introduction)
- [Usage](#usage)
- [GitHub Action Example](#github-action-example)
- [GitHub Action Inputs](#github-action-inputs)

## Introduction

This project is a tool to analyse the statistics of a user's GitHub repositories.

It is designed to be used as a GitHub Action.

The tool is written in Python and uses the GitHub API to some of the statistics. As well it clones the repositories to be analysed and analyses the files in the repositories.

## Usage

### GitHub Action Example

The GitHub Action is designed to be used in a workflow.

```yaml
- name: Analyse GitHub repositories
uses: jackplowman/github-stats-analyser@latest
with:
repository_owner: jackplowman # Put your GitHub username here or use ${{ github.repository_owner }}
```
### GitHub Action Inputs
| Name | Required | Description | Type | Default |
| ------------------ | -------- | --------------------------------------------------- | ------ | --------------------- |
| `repository_owner` | yes | The GitHub username of the repositories to analyse. | string |
| `github-token` | no | A Github token to authenticate API requests. | string | `${{ github.token }}` |

0 comments on commit d64b9a4

Please sign in to comment.