An open API service indexing awesome lists of open source software.

https://github.com/traefik/gallienii

🤖 [Myrmica Gallienii 🐜] Bot: Keep Forks Synchronized
https://github.com/traefik/gallienii

fork github github-bot synchronization

Last synced: 29 days ago
JSON representation

🤖 [Myrmica Gallienii 🐜] Bot: Keep Forks Synchronized

Awesome Lists containing this project

README

          

# Myrmica Gallienii - Keep Forks Synchronized

[![GitHub release](https://img.shields.io/github/release/traefik/gallienii.svg)](https://github.com/traefik/gallienii/releases/latest)
[![Build Status](https://github.com/traefik/gallienii/workflows/Main/badge.svg?branch=master)](https://github.com/traefik/gallienii/actions)
[![Docker Build Status](https://img.shields.io/docker/build/traefik/gallienii.svg)](https://hub.docker.com/r/traefik/gallienii/builds/)

Keep forks synchronized by making PR on forks.

## Synchronize Forks

### Configuration

You must define which fork you want to sync to a TOML file.
See [the sample](/sample.toml).

By default using `./gallienii.toml` file.
To override the configuration file path, you must use `--config-path`.

```toml
[[repository]]
# if set to true, gallienii don't verify if the fork is a really fork in GitHub.
NoCheckFork = true
# if set to true, gallienii will ignore a whole repository configuration.
Disable = false
# Describe the base repository of fork (the source/the parent).
[repository.Base]
Owner = "moby"
Name = "moby"
Branch = "master"
# Describe the fork repository.
[repository.Fork]
Owner = "login"
Name = "moby"
Branch = "master"
# Labels that gallienii put on created pull request.
[repository.Marker]
# If and only the PR have conflicts, gallienii put this label.
# Keep empty to disable.
NeedResolveConflicts = "human/need-resolve-conflicts"
# gallienii add this label on all the pull requests he creates.
ByBot = "bot/upstream-sync"
```

### Examples

```bash
gallienii sync -t mytoken
```

### Help

```bash
gallienii sync -h
```

```yaml
Synchronize forks.

Usage: sync [--flag=flag_argument] [-f[flag_argument]] ... set flag_argument to flag(s)
or: sync [--flag[=true|false| ]] [-f[true|false| ]] ... set true/false to boolean flag(s)

Flags:
--config-path Path to the configuration file. (default "./gallienii.toml")
--dry-run Dry run mode. (default "true")
--port Server port. (default "80")
--server Server mode. (default "false")
-t, --token GitHub Token [required].
--verbose Verbose mode. (default "false")
-h, --help Print Help (this message) and exit
```

## Generate Configuration File

You can generate a default configuration file from an GitHub organisation or a user or just a simple sample.

```bash
gallienii gen --sample
```

```bash
# the token is required only if you want detect your private fork.
gallienii gen --org="MyOrganisation" -t mytoken
```

```bash
# the token is required only if you want detect your private fork.
gallienii gen --user="MyLogin" -t mytoken
```

Help (`gallienii gen -h`):

```yaml
Generate configuration file.

Usage: gen [--flag=flag_argument] [-f[flag_argument]] ... set flag_argument to flag(s)
or: gen [--flag[=true|false| ]] [-f[true|false| ]] ... set true/false to boolean flag(s)

Flags:
--org Generate a default configuration file for an organization name.
--sample Generate a sample configuration file. (default "true")
-t, --token GitHub Token.
--user Generate a default configuration file for a user name.
-h, --help Print Help (this message) and exit
```

## Main Help

```bash
gallienii -h
```

```yaml
Myrmica gallienii: Keep forks synchronized.

Usage: gallienii [--flag=flag_argument] [-f[flag_argument]] ... set flag_argument to flag(s)
or: gallienii [--flag[=true|false| ]] [-f[true|false| ]] ... set true/false to boolean flag(s)

Available Commands:
gen Generate configuration file.
sync Synchronize forks.
version Display the version.
Use "gallienii [command] --help" for more information about a command.

Flags:
-h, --help Print Help (this message) and exit
```

## What does Myrmica Gallienii mean?

![Myrmica Gallienii](http://www.antwiki.org/wiki/images/b/b6/Myrmica_gallienii_casent0172712_head_1.jpg)