• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..02-Sep-2021-

autorest/H02-Sep-2021-2,1881,673

cmd/H02-Sep-2021-3,2512,575

common/H02-Sep-2021-179

config/H02-Sep-2021-605486

flags/H02-Sep-2021-5140

repo/H02-Sep-2021-268215

template/rpName/packageName/H02-Sep-2021-153105

README.mdH A D02-Sep-20211.8 KiB4435

ci.ymlH A D02-Sep-2021331 1613

go.modH A D02-Sep-2021505 1714

go.sumH A D02-Sep-202138 KiB397396

go_mod_tidy_hack.goH A D02-Sep-2021535 152

main.goH A D02-Sep-2021329 1710

README.md

1# Generator
2
3This is a command line tool for generating new releases for `github.com/Azure/azure-sdk-for-go`.
4
5## Commands
6
7This CLI tool provides 2 commands now: `automation`, `issue`.
8
9### The `issue` command and the configuration file
10
11The `issue` command fetches the release request issues from `github.com/Azure/sdk-release-request/issues` and parses them into the configuration that other commands consume. The configuration will output to stdout.
12
13The configuration is a JSON string, which has the following pattern:
14```json
15{
16  "track1Requests": {
17    "specification/network/resource-manager/readme.md": {
18      "package-2020-12-01": [
19        {
20          "targetDate": "2021-02-11T00:00:00Z",
21          "requestLink": "https://github.com/Azure/sdk-release-request/issues/1212"
22        }
23      ]
24    }
25  },
26  "track2Requests": {},
27  "refresh": {}
28}
29```
30The keys of this JSON is the relative path of the `readme.md` file in `azure-rest-api-specs`.
31
32To authenticate this command, you need to either
331. Populate a personal access token by assigning the `-t` flag.
341. Populate the username, password (and OTP if necessary) by assigning the `-u`, `-p` and `--otp` flags.
35
36**Important notice:**
371. A release request by design can only have one RP in them, therefore if a release request is referencing a PR that contains changes of multiple RPs, the tool will just give an error.
381. A release request by design can only have one tag in them, therefore if a release request is requesting release on multiple tags, the tool will not give an error but output the plain value of the multiple tags without splitting them.
391. This command will try to output everything that it is able to parse, even some errors occur.
40
41Example usage:
42```shell
43generator issue -t $YOUR_PERSONAL_ACCESS_TOKEN > sdk-release.json
44```