ghpra

package
v0.0.0-...-9890e5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 10 Imported by: 0

README

GitHub Pull Request Aggregator

About

  • This command line tool is used to aggregate GitHub pull requests.

Usage

Configuration
# config.yaml
elements:
  - source_owner: orgname0
    source_repo: reponame0
    base_branch: main
  - source_owner: orgname1
    source_repo: reponame1
    base_branch: develop
  - source_owner: orgname2
    source_repo: reponame2
    base_branch: main
Build and Run

Execute the following command to run the tutorial:

make build
bin/tutorial -feature ghpra

Select the config to use:

bin/tutorial -feature ghpra
>> selected feature: ghpra
>> Start GitHub Pull Request Aggregation!
Select the config:
0 : orgname0 / reponame0 : branchname0
1 : orgname1 / reponame1 : branchname1
2 : orgname2 / reponame2 : branchname2

# input the number of the config
0

Authenticated user: username
****

PullRequestTitle0
PullRequestTitle1
PullRequestTitle2
...

Writing to a file: /path/to/file

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the entry point of the feature

Types

type Config

type Config struct {
	Elements []ConfigElement `yaml:"elements"`
}

type ConfigElement

type ConfigElement struct {
	SourceOwner string `yaml:"source_owner"`
	SourceRepo  string `yaml:"source_repo"`
	BaseBranch  string `yaml:"base_branch"`
}

type PullRequest

type PullRequest struct {
	Title     string
	CreatedAt time.Time
	MergedAt  time.Time
	Merged    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL