octomation / maintainer Goto Github PK
View Code? Open in Web Editor NEW๐จโ๐ง Contribution assistant for open-source projects.
Home Page: https://go.octolab.org/toolset/maintainer
License: MIT License
๐จโ๐ง Contribution assistant for open-source projects.
Home Page: https://go.octolab.org/toolset/maintainer
License: MIT License
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.
TrimByYear
scope := xtime.
RangeByWeeks(date, weeks, half).
Shift(-xtime.Day).
ExcludeFuture().
TrimByYear(date.Year())
chm, err := service.ContributionHeatMap(cmd.Context(), date)
Motivation: it allows mock dependencies. Now it's difficult because the configuration is available only in runtime after a command call.
PoC:
func Runner(deps ...) func(cobra.Command, args) error {}
Details are here https://github.com/google/go-github/releases/tag/v45.0.0.
$ 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
It allows to integrate it with time.Range
better.
I have to work with markdown files (e.g. README) to fetch some insides: link to mirror, to quality reports, to validate basic structure, etc.
Candidates:
open a step-by-step form to provide valid labels for an issue
e.g.
$ maintainer github contribution histogram 2021
1 ##
2 #####
3 ###
4 #
$ 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
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
./reporters/<reporter> -> go.qase.io/reporter/<reporter>
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:
Motivation: test GitHub Actions quicker.
Project: https://github.com/nektos/act.
maintainer/internal/command/root.go
Line 54 in 5a6acac
expected
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
v0.1.x
Add commands to work with GCC.
v0.2.x
Add commands to manage labels.
To do
v0.1.x
milestone$ maintainer github contribution snapshot 2021 --format=json > dump.2021.json
# dump contribution heat map into stdout with json format
related to octomation/makefiles#22
related to octomation/vanity#6
$ 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
$ 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
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)
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
to prevent execution and review the job plan "show, don't do"
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" }
}
related to octomation/vanity#7
research
acceptance criteria:
git at -123d
$ git at $(maintainer contribution suggest --for=2021) did something useful
It could be useful for exploratory
$ maintainer github contribution lookup 2013-11
allows you to store .git
, issues
, projects
, labels
, etc.
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
candidates:
also add
maintainer github labels patch octolab hacktoberfest
maintainer github labels patch empty
Motivation: it contains technical debt.
Before releasing v0.1.0 I have to improve code quality.
it allows improve the result of #33 and make configuration more clear
now it's provided by os env
dump it as columns in ordered rows
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
github labels
commandsDetails are here https://github.com/google/go-github/releases/tag/v45.1.0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.