Giter VIP home page Giter VIP logo

auto-timesheet's People

Contributors

lakshmipriyamukundan avatar vajahath avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

auto-timesheet's Issues

Detect issues from commit messages

Opening discussion on Issue tracking

Give feedbacks here

requirement

We need the following things to create a new activity:

  • Project ID โœ… done
  • Issue ID ๐Ÿ‘ˆ current focus ๐ŸŽฏ
  • Start time โš ๏ธ pending
  • End time โš ๏ธ pending
  • Message โœ… done

Currently auto-timesheet fetches git-commit-messages from Github and use it as the message for timesheet activity. We need to somehow extract the issue id from commit messages.

Proposal

Just a proposal to start thinking..

Lets use ti#tags with commit messages. While making a commit message, mention the timesheet issue with a hashtag like:

Adds extra details to fetch details api. ti#fetchDetails

(where fetchDetails is the timesheet issue corresponding to our commit)

We can extract that ti# tag and find that issue-id.

How to detect issue-id from extracted tags?

Looks like timesheet uses an api to fetch all issues (description and id) corresponding to a project. We call that api and get those data. Now we've to match our hashtag with the issue description to get the id.

Why ti# ?

Github uses hashtags to map stuffs made in Github itself (PR/issues). Prepending ti (stands for Timesheet Issue) with it resolve that conflict.

How to handling multiple ti# tags in a message ?

If a timesheet msg contains multiple ti# tags, let's choose one in random..

max msg length 250 char

timesheet rejecting the content msg with more than 250 chars.

shrink down the msg and make it in between 120 and 250. ๐Ÿ˜ธ

change field in timesheet

in config file, change git to github
So that we can flawlessly determine b/w git services.
use also gitlab & bitbucket fields

Export the entire app into a cli

  • make auto-timesheet command
  • auto-timesheet set-credentials to set credentials
  • auto-timesheet config for setting configuration
  • auto-timesheet start to start the application

tag-extractor

Add ti# instead of #
handle 'failed to detect tags' case.

persistant default configuration

User doesn't accidentally corrupt the default conf.
use Object.assign() to merge them.
If user's conf failed to load, use default conf

start-time and end-time

We need the following things to create a new activity:

  • Project ID โœ… done
  • Issue ID โš ๏ธ pending
  • Start time ๐Ÿ‘ˆ current focus ๐ŸŽฏ
  • End time ๐Ÿ‘ˆ current focus ๐ŸŽฏ
  • date ๐Ÿ‘ˆ current focus ๐ŸŽฏ
  • Message โœ… done

track start, end times and dates..

add login functionality

now the credentials are hard-coded which is bad.
Let the user set their username and password as credentials so that the program should automatically log them in

GItlab integration

Make a study on how to integrate gitlab on it.
and do required stuff.

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.