Git tracker is a module with zero external dependencies (not even Deno's standard library) that allow you to easily create a report with the activities you have done on some of the known platforms to host projects: Gitlab and Github
userId
:- Gitlab
userId
- Github
username
- Gitlab
In both cases we will treat as userId
access token
Remember to give the correct permission to the token for the module can consult the activities
This module could use as:
- shell command (create csv file)
- imported module (return csv string and optionally create file)
> deno run --allow-net --allow-read --allow-write https://raw.githubusercontent.com/Jess182/git-tracker/main/mod.ts [OPTIONS]
You can skip to pass all options when executing the command, the values not set will be requested through the CLI
--platform
: Git platform, it could begitlab
orgithub
--userId
: Platform User ID--accessToken
: User access token--event
: User event--startDate
: (Optional even in CLI prompt) Filter after this date (format "YYYY-MM-DD")--endDate
: (Optional even in CLI prompt) Filter before this date (format "YYYY-MM-DD")--fileName
: (Optional even in CLI prompt) File name--skipPrompt
: [FLAG] Skip CLI prompt
import {
gitTracker,
IOptions,
} from 'https://raw.githubusercontent.com/Jess182/git-tracker/main/mod.tss';
const options: IOptions = {
platform: 'gitlab',
userId: '<user ID>',
accessToken: '<access token>',
event: 'pushed',
createFile: true,
};
const csv = await gitTracker(options);
platform: string
: Git platform, it could begitlab
orgithub
userId: string
: Platform User IDaccessToken: string
: User access tokenevent: string
: User eventstartDate?: string
: Filter after this date (format "YYYY-MM-DD")endDate?: string
: Filter activities before this date (format "YYYY-MM-DD")createFile? boolean
: Flag to create csv filefileName? string
: File name
The information collected by the module (user ID | username, access token & the information consulted) is not used or saved in any way.
I am not responsible for the use that is given to the code or module