|
1 | 1 | # Utilities for the IBEX Project |
2 | 2 |
|
3 | | -## repo-tools |
4 | | - |
5 | | -Python scripts to manipulate the ibex repositories. |
6 | | - |
7 | | -### Installation |
8 | | - |
9 | | - cd ibex_utils\repo_tool |
10 | | - pip install . |
11 | | - |
12 | | -### Usage |
13 | | - |
14 | | - python change_repos.py [-h] [--dry-run] -u USERNAME -o OWNER |
15 | | - [--repo-file REPO_FILE] [--repo REPO] |
16 | | - [--ms-from DATE_FROM] [--ms-to DATE_TO] [--ms-close] |
17 | | - [--label-name ENSURE_LABEL] |
18 | | - [--label-colour ENSURE_LABEL_COLOUR] |
19 | | - [--label-file ENSURE_LABEL_FILE] |
20 | | - |
21 | | - Manipulate a set of repositories, you can add milestones, close milestones, add labels. |
22 | | - E.g. -u John-Holt-Tessella -o ISISComputingGroup --ms-from 2010-04-02 --ms-to 2011-05-02 --dry_run --repo repo_name |
23 | | - |
24 | | - optional arguments: |
25 | | - -h, --help show this help message and exit |
26 | | - --dry-run Don't change anything just tell me what you would do. |
27 | | - -u USERNAME, --username USERNAME GitHub username |
28 | | - -o OWNER, --owner OWNER Owner of the repositories |
29 | | - --repo-file REPO_FILE |
30 | | - Apply the changes to repositories in this file. File is list of repository names, |
31 | | - comments (lines starting with a #) and blank lines are ignored |
32 | | - --repo REPO Apply the changes to this repository |
33 | | - --ms-from DATE_FROM Date from which the sprint starts. |
34 | | - --ms-to DATE_TO Date to which the sprint runs. |
35 | | - --ms-close Close all sprint milestones which are passed with |
36 | | - closed tickets. |
37 | | - --label-name ENSURE_LABEL |
38 | | - Ensure that the repository has the following label |
39 | | - --label-colour ENSURE_LABEL_COLOUR |
40 | | - Ensure that the repository has a label that is this |
41 | | - colour. Colours are colour code no leading #, e.g. |
42 | | - 626262 |
43 | | - --label-file ENSURE_LABEL_FILE |
44 | | - Ensure that the repository has the following labels |
45 | | - read from this file. File is lines of '<colour code>, <label name>' |
46 | | - Comment lines (lines starting with a #) and blank lines are ignored. |
0 commit comments