Skip to content

Commit a5414b9

Browse files
committed
(docs) Document deprecation of Username and Password
1 parent b1bbdcb commit a5414b9

File tree

10 files changed

+65
-67
lines changed

10 files changed

+65
-67
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
For Authentication it is recommended to use the token parameter.
2+
Authentication with a Username and Password have been deprecated, and
3+
will be removed in a future release of GitReleaseManager.
4+
This authentication method have also been deprecated officially at
5+
GitHub.com
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Deprecated Parameters
2+
3+
The following parameters have been deprecated and should not be used in new
4+
code. This will be removed in a future release.
5+
6+
- `-u, --username`: The username to access Version Control System with.
7+
This can't be used when using the token parameter.
8+
- `-p, --password`: The password to access Version Control System with.
9+
This can't be used when using the token parameter.

docs/input/docs/commands/add-assets.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ additional assets to the release using the addasset command.
88

99
## **Required Parameters**
1010

11-
- `-u, --username`: The username to access GitHub with. This can't be used when
12-
using the token parameter.
13-
- `-p, --password`: The password to access GitHub with. This can't be used when
14-
using the token parameter.
1511
- `--token`: The access token to access GitHub with. This can't be used when
1612
using the username and password parameters.
1713
- `-o, --owner`: The owner of the repository.
@@ -28,16 +24,18 @@ additional assets to the release using the addasset command.
2824
- `-l, -logFilePath`: Path to where log file should be created. Defaults to
2925
logging to console.
3026

27+
<?! Include "_deprecated-args.md /?>
28+
3129
## **Notes**
3230

33-
For Authentication use either username and password, or token parameter
31+
<?! Include "_auth-notes.md" /?>
3432

3533
## **Examples**
3634

3735
```bash
38-
gitreleasemanager.exe addasset -t 0.1.0 -u bob -p password -o repoOwner -r repo -a c:\buildartifacts\setup.exe,c:\buildartifacts\setup.nupkg
39-
40-
gitreleasemanager.exe create --tagName 0.1.0 --username bob --password password --owner repoOwner --repository repo --assets c:\buildartifacts\setup.exe,c:\buildartifacts\setup.nupkg
36+
gitreleasemanager.exe addasset -t 0.1.0 -u bob --token fsdfsf67657sdf5s7d5f -r repo -a c:\buildartifacts\setup.exe,c:\buildartifacts\setup.nupkg
4137

4238
gitreleasemanager.exe create --tagName 0.1.0 --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo --assets c:\buildartifacts\setup.exe,c:\buildartifacts\setup.nupkg
39+
40+
gitreleasemanager.exe create --tagName 0.1.0 --username bob --password password --owner repoOwner --repository repo --assets c:\buildartifacts\setup.exe,c:\buildartifacts\setup.nupkg
4341
```

docs/input/docs/commands/close.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ milestone.
99

1010
## **Required Parameters**
1111

12-
- `-u, --username`: The username to access GitHub with. This can't be used when
13-
using the token parameter.
14-
- `-p, --password`: The password to access GitHub with. This can't be used when
15-
using the token parameter.
1612
- `--token`: The access token to access GitHub with. This can't be used when
1713
using the username and password parameters.
1814
- `-o, --owner`: The owner of the repository.
@@ -26,16 +22,18 @@ milestone.
2622
- `-l, --logFilePath`: Path to where log file should be created. Defaults to
2723
logging to console.
2824

25+
<?! Include "_deprecated-args.md /?>
26+
2927
## **Notes**
3028

31-
For Authentication use either username and password, or token parameter
29+
<?! Include "_auth-notes.md" /?>
3230

3331
## **Examples**
3432

3533
```bash
36-
gitreleasemanager.exe close -m 0.1.0 -u bob -p password -o repoOwner -r repo
37-
38-
gitreleasemanager.exe close --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
34+
gitreleasemanager.exe close -m 0.1.0 --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo
3935

4036
gitreleasemanager.exe close --milestone 0.1.0 --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo
37+
38+
gitreleasemanager.exe close --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
4139
```

docs/input/docs/commands/create.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ to include in the Release.
1313

1414
## **Required Parameters**
1515

16-
- `-u, --username`: The username to access GitHub with. This can't be used when
17-
using the token parameter.
18-
- `-p, --password`: The password to access GitHub with. This can't be used when
19-
using the token parameter.
2016
- `--token`: The access token to access GitHub with. This can't be used when
2117
using the username and password parameters.
2218
- `-o, --owner`: The owner of the repository.
@@ -39,29 +35,31 @@ to include in the Release.
3935
- `-l, --logFilePath`: Path to where log file should be created. Defaults to
4036
logging to console.
4137

38+
<?! Include "_deprecated-args.md /?>
39+
4240
## **Notes**
4341

44-
For Authentication use either username and password, or token parameter
42+
<?! Include "_auth-notes.md" /?>
4543

4644
## **Examples**
4745

4846
Use GitReleaseManager to create a Release, generating the release notes based on
4947
Milestone:
5048

5149
```bash
52-
gitreleasemanager.exe create -m 0.1.0 -u bob -p password -o repoOwner -r repo
53-
54-
gitreleasemanager.exe create --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
50+
gitreleasemanager.exe create -m 0.1.0 --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo
5551

5652
gitreleasemanager.exe create --milestone 0.1.0 --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo
53+
54+
gitreleasemanager.exe create --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
5755
```
5856

5957
Use GitReleaseManager to create a Release, taking the release notes as an input parameter:
6058

6159
```bash
62-
gitreleasemanager.exe create -i c:\temp\releasenotes.md -n 0.1.0 -u bob -p password -o repoOwner -r repo
63-
64-
gitreleasemanager.exe create --inputFilePath c:\temp\releasenotes.md --name 0.1.0 --username bob --password password --owner repoOwner --repository repo
60+
gitreleasemanager.exe create -i c:\temp\releasenotes.md -n 0.1.0 --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo
6561

6662
gitreleasemanager.exe create --inputFilePath c:\temp\releasenotes.md --name 0.1.0 --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo
63+
64+
gitreleasemanager.exe create --inputFilePath c:\temp\releasenotes.md --name 0.1.0 --username bob --password password --owner repoOwner --repository repo
6765
```

docs/input/docs/commands/discard.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ delete a published release.
1515

1616
## **Required Parameters**
1717

18-
- `-u, --username`: The username to access GitHub with. This can't be used when
19-
using the token parameter.
20-
- `-p, --password`: The password to access GitHub with. This can't be used when
21-
using the token parameter.
2218
- `--token`: The access token to access GitHub with. This can't be used when
2319
using the username and password parameters.
2420
- `-o, --owner`: The owner of the repository.
@@ -33,16 +29,18 @@ delete a published release.
3329
- `-l, -logFilePath`: Path to where log file should be created. Defaults to
3430
logging to console.
3531

32+
<?! Include "_deprecated-args.md /?>
33+
3634
## **Notes**
3735

38-
For Authentication use either username and password, or token parameter
36+
<?! Include "_auth-notes.md" /?>
3937

4038
## **Examples**
4139

4240
```bash
43-
gitreleasemanager.exe discard -m 0.1.0 -u bob -p password -o repoOwner -r repo
44-
45-
gitreleasemanager.exe discard --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
41+
gitreleasemanager.exe discard -m 0.1.0 --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo
4642

4743
gitreleasemanager.exe discard --milestone 0.1.0 --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo
44+
45+
gitreleasemanager.exe discard --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
4846
```

docs/input/docs/commands/export.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ using the tagName parameter.
1313

1414
## **Required Parameters**
1515

16-
- `-u, --username`: The username to access GitHub with. This can't be used when
17-
using the token parameter.
18-
- `-p, --password`: The password to access GitHub with. This can't be used when
19-
using the token parameter.
2016
- `--token`: The access token to access GitHub with. This can't be used when
2117
using the username and password parameters.
2218
- `-o, --owner`: The owner of the repository.
@@ -32,18 +28,20 @@ using the tagName parameter.
3228
- `-l, --logFilePath`: Path to where log file should be created. Defaults to
3329
logging to console.
3430

31+
<?! Include "_deprecated-args.md /?>
32+
3533
## **Notes**
3634

37-
For Authentication use either username and password, or token parameter
35+
<?! Include "_auth-notes.md" /?>
3836

3937
## **Examples**
4038

4139
Use GitReleaseManager to export all Release Notes:
4240

4341
```bash
44-
gitreleasemanager.exe export -u bob -p password -o repoOwner -r repo -f c:\temp\releases.md
45-
46-
gitreleasemanager.exe export --username bob --password password --owner repoOwner --repository repo --fileOutputPath c:\temp\releases.md
42+
gitreleasemanager.exe export --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo -f c:\temp\releases.md
4743

4844
gitreleasemanager.exe export --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo --fileOutputPath c:\temp\releases.md
45+
46+
gitreleasemanager.exe export --username bob --password password --owner repoOwner --repository repo --fileOutputPath c:\temp\releases.md
4947
```

docs/input/docs/commands/label.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ later version.
2020

2121
## **Required Parameters**
2222

23-
- `-u, --username`: The username to access GitHub with. This can't be used when
24-
using the token parameter.
25-
- `-p, --password`: The password to access GitHub with. This can't be used when
26-
using the token parameter.
2723
- `--token`: The access token to access GitHub with. This can't be used when
2824
using the username and password parameters.
2925
- `-o, --owner`: The owner of the repository.
@@ -36,16 +32,18 @@ later version.
3632
- `-l, -logFilePath`: Path to where log file should be created. Defaults to
3733
logging to console.
3834

35+
<?! Include "_deprecated-args.md /?>
36+
3937
## **Notes**
4038

41-
For Authentication use either username and password, or token parameter
39+
<?! Include "_auth-notes.md" /?>
4240

4341
## **Examples**
4442

4543
```bash
46-
gitreleasemanager.exe label -u bob -p password -o repoOwner -r repo
47-
48-
gitreleasemanager.exe label --username bob --password password --owner repoOwner --repository repo
44+
gitreleasemanager.exe label --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo
4945

5046
gitreleasemanager.exe label --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo
47+
48+
gitreleasemanager.exe label --username bob --password password --owner repoOwner --repository repo
5149
```

docs/input/docs/commands/open.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ will be taken against a milestone that is already open.
1818

1919
## **Required Parameters**
2020

21-
- `-u, --username`: The username to access GitHub with. This can't be used when
22-
using the token parameter.
23-
- `-p, --password`: The password to access GitHub with. This can't be used when
24-
using the token parameter.
2521
- `--token`: The access token to access GitHub with. This can't be used when
2622
using the username and password parameters.
2723
- `-o, --owner`: The owner of the repository.
@@ -35,16 +31,18 @@ will be taken against a milestone that is already open.
3531
- `-l, --logFilePath`: Path to where log file should be created. Defaults to
3632
logging to console.
3733

34+
<?! Include "_deprecated-args.md /?>
35+
3836
## **Notes**
3937

40-
For Authentication use either username and password, or token parameter
38+
<?! Include "_auth-notes.md" /?>
4139

4240
## **Examples**
4341

4442
```bash
45-
gitreleasemanager.exe open -m 0.1.0 -u bob -p password -o repoOwner -r repo
46-
47-
gitreleasemanager.exe open --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
43+
gitreleasemanager.exe open -m 0.1.0 --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo
4844

4945
gitreleasemanager.exe open --milestone 0.1.0 --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo
46+
47+
gitreleasemanager.exe open --milestone 0.1.0 --username bob --password password --owner repoOwner --repository repo
5048
```

docs/input/docs/commands/publish.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ to actually publish a release.
1111

1212
## **Required Parameters**
1313

14-
- `-u, --username`: The username to access GitHub with. This can't be used when
15-
using the token parameter.
16-
- `-p, --password`: The password to access GitHub with. This can't be used when
17-
using the token parameter.
1814
- `--token`: The access token to access GitHub with. This can't be used when
1915
using the username and password parameters.
2016
- `-o, --owner`: The owner of the repository.
@@ -29,16 +25,18 @@ to actually publish a release.
2925
- `-l, -logFilePath`: Path to where log file should be created. Defaults to
3026
logging to console.
3127

28+
<?! Include "_deprecated-args.md /?>
29+
3230
## **Notes**
3331

34-
For Authentication use either username and password, or token parameter
32+
<?! Include "_auth-notes.md" /?>
3533

3634
## **Examples**
3735

3836
```bash
39-
gitreleasemanager.exe publish -t 0.1.0 -u bob -p password -o repoOwner -r repo
40-
41-
gitreleasemanager.exe publish --tagName 0.1.0 --username bob --password password --owner repoOwner --repository repo
37+
gitreleasemanager.exe publish -t 0.1.0 --token fsdfsf67657sdf5s7d5f -o repoOwner -r repo
4238

4339
gitreleasemanager.exe publish --tagName 0.1.0 --token fsdfsf67657sdf5s7d5f --owner repoOwner --repository repo
40+
41+
gitreleasemanager.exe publish --tagName 0.1.0 --username bob --password password --owner repoOwner --repository repo
4442
```

0 commit comments

Comments
 (0)