Giter Site home page Giter Site logo

octomation / maintainer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.2 MB

๐Ÿ‘จโ€๐Ÿ”ง Contribution assistant for open-source projects.

Home Page: https://go.octolab.org/toolset/maintainer

License: MIT License

Makefile 6.72% Shell 10.94% Go 82.34%
cli github go hacktoberfest octolab tool toolset

maintainer's People

Contributors

kamilsk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

maintainer's Issues

github: contribution: expand heat map by merging with neighbors

Now heat map truncated by year, because GitHub sliced them on this way. But, it will be great to expand it, e.g.

$ maintainer github contribution lookup 2013-12-31/5
 Day / Week                #51            #52           #1
--------------------- -------------- -------------- ----------
 Sunday                     -              -            -
 Monday                     -              -            -
 Tuesday                    -              2            -
 Wednesday                  -              2            ?
 Thursday                   4              -            ?
 Friday                     3              2            ?
 Saturday                   -              -            ?
--------------------- -------------- -------------- ----------
 Contributions are on the range from 2013-12-15 to 2013-12-31
maintainer github contribution lookup 2014-01-01/5
 Day / Week                #1            #2            #3
--------------------- ------------- ------------- ------------
 Sunday                     ?             -            -
 Monday                     ?             -            3
 Tuesday                    ?             -            -
 Wednesday                  -             -            2
 Thursday                   -             -            -
 Friday                     -             -            -
 Saturday                   -             -            -
--------------------- ------------- ------------- ------------
 Contributions are on the range from 2014-01-01 to 2014-01-18

So, /5 doesn't work, it is truncated by year, from left for 2014, and from right for 2013. Also, the result contains ? which means no data here.

  • remove TrimByYear
			scope := xtime.
				RangeByWeeks(date, weeks, half).
				Shift(-xtime.Day).
				ExcludeFuture().
				TrimByYear(date.Year())
  • extend to support many years
chm, err := service.ContributionHeatMap(cmd.Context(), date)

implement github contribution diff command

$ maintainer github contribution diff --src=dump.2021.timestatmp1.json --dst=dump.2021.timestamp2.json
# compare two dumps and display the difference

$ maintainer github contribution diff --src=dump.2021.timestatmp1.json --dst=2021
# compare the dump and the current state of contribution heat map of 2021 year

implement github contribution lookup command

$ maintainer github contribution lookup 2021-02-01 --weeks=3
# shows contribution heat map for three weeks
# - week with the included date
# - one week before
# - one week after

how to warmup godoc and vanity url

when a new subpackage or package released

$ curl --data-urlencode 'path=go.octolab.org/toolkit/cli' \
  -H 'content-type: application/x-www-form-urlencoded' \
  https://godoc.org/-/refresh

label presets

Top level:

$ maintainer github labels dump --preset=octolab > .git/labels.yml
$ vim .git/labels.yml # to manual review and fixes
$ maintainer github labels update < .git/labels.yml

Low level:

  • define classify tree
  • find the most appropriate node
  • find transform rule for preset
  • replace it by the rule
  • profit

command: github contribution lookup doesn't work well with now()

expected

image

obtained

$ maintainer github contribution lookup /2
 Day / Week               #17           #18           #19
-------------------- ------------- ------------- -------------
 Sunday                    -             -             -
 Monday                    -             -             -
 Tuesday                   -             -             -
 Wednesday                 -             -             -
 Thursday                  -             -             -
 Friday                    -             -             ?
 Saturday                  -             -             ?
-------------------- ------------- ------------- -------------
 Contributions are on the range from 2022-04-24 to 2022-05-12

org: define milestones

  • v0.1.x

    GitHub Contributions Calendar

    Add commands to work with GCC.

  • v0.2.x

    GitHub Labels

    Add commands to manage labels.

To do

  • attach "contribution" issues to v0.1.x milestone

github: contribution: lookup shows incorrect scope for 1 week with now ts

$ maintainer github contribution lookup /1
 Day / Week                                    #18
---------------------------------- ---------------------------
 Sunday                                         6
 Monday                                         6
 Tuesday                                        6
 Wednesday                                      1
 Thursday                                       6
 Friday                                         6
 Saturday                                       6
---------------------------------- ---------------------------
 Contributions are on the range from 2022-05-01 to 2022-05-07

#19 needs to be shown

maintainer github contribution lookup /2
 Day / Week               #17           #18           #19
-------------------- ------------- ------------- -------------
 Sunday                    3             6             6
 Monday                    4             6             4
 Tuesday                   5             6             6
 Wednesday                 6             1             6
 Thursday                  6             6             6
 Friday                    6             6             4
 Saturday                  4             6             ?
-------------------- ------------- ------------- -------------
 Contributions are on the range from 2022-04-24 to 2022-05-13

#17 needs to be unshown

add possibility to compare configuration of repos

$ maintainer config compare octomation/maintainer kamilsk/retry
# shows the diff

optional if possible

$ maintaner config apply octomation/maintainer kamilsk/retry kamilsk/semaphore
# apply the diff

remove double new lines

input:

include src/common/env.mk

export PATH := $(GOBIN):$(PATH)

expected:

make-verbose:
	$(eval AT :=)
	$(eval MAKE := $(MAKE) verbose)
	@echo > /dev/null
.PHONY: make-verbose


export PATH := $(GOBIN):$(PATH)

obtained:

make-verbose:
	$(eval AT :=)
	$(eval MAKE := $(MAKE) verbose)
	@echo > /dev/null
.PHONY: make-verbose

export PATH := $(GOBIN):$(PATH)

contribution chart

Add a possibility to fetch contribution chart from GitHub and shows appropriate date correction for git commit.

$ maintainer contribution chart

$ git at $(maintainer contribution next) did something useful

transition entity

Transition describes the transformation from state X to state Y. It is useful for dry-run and more accurate patch appling.

For example:

LabelX {
  name: "x"
  color: "000"
}

LabelY {
  name: "y"
  color: "000"
}

Transition {
  name: { from: "x", to: "y" }
}

github: contribution: lookup forward/backward

now it split by half, I need a possibility to look forward or backward

$ maintainer github contribution lookup 2021-01-01/10
 Day / Week       #53      #1      #2      #3      #4     #5
--------------- -------- ------- ------- ------- ------- -----
 Sunday            ?        5      10       5       5      5
 Monday            ?        5      10       5       5      5
 Tuesday           ?        5      10       5       5      5
 Wednesday         ?        5      10       5       5      5
 Thursday          ?        5      10       5       5      5
 Friday            5        5      10       5       5      5
 Saturday          5        5      10       5       5      5
--------------- -------- ------- ------- ------- ------- -----
 Contributions are on the range from 2021-01-01 to 2021-02-06
$ maintainer github contribution lookup 2021-01-01/10 forward
$ maintainer github contribution lookup /10 backward

or

$ maintainer github contribution lookup 2021-01-01/+10
$ maintainer github contribution lookup /-10

and possibly allow autodetection

extend octolab preset by other repositories

candidates:

  • new subset
    • kamilsk/workshops
    • octolab/docs
    • octolab/rfc
  • delete (aka empty subset)
    • kamilsk/gex
  • update
    • kamilsk/bridge (from defaults)
    • kamilsk/breaker
    • kamilsk/check
    • kamilsk/dotfiles
    • kamilsk/egg
    • kamilsk/genome
    • kamilsk/grafaman

also add

  • possibility to mix labels: maintainer github labels patch octolab hacktoberfest
  • possibility to remove labels: maintainer github labels patch empty

github: contribution: show datetime on the right side of lookup

for example

$ maintainer github contribution lookup 2021-03-13/1
 Day / Week                                    #10
---------------------------------- ---------------------------
 Sunday                                        10
 Monday                                        10
 Tuesday                                        8
 Wednesday                                     10
 Thursday                                      10
 Friday                                        10
 Saturday                                      10
---------------------------------- ---------------------------
 Contributions are on the range from 2021-03-07 to 2021-03-13

needs to be extended by right column with "last" dates

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.