Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

New credential for adding private repositories with rit add repo #986

Merged

Conversation

GuillaumeFalourd
Copy link
Contributor

@GuillaumeFalourd GuillaumeFalourd commented Jul 1, 2021

Signed-off: guillaume.falourd@zup.com.br

Referred to: #833 and closes: #800

Description

  • Add the command rit add repo a specific credential to add private repositories, so that the user does not need to inform a token each time the command is executed.

How to verify it

In its first execution, when adding a private repository, the command will request the token, as it already did. However, the command now saves this token in a credential.

Example

Screen Shot 2021-07-01 at 15 04 06

After executing the rit add repo command adding a private repository again, use the rit list credential command, to verify that a new credential has been created in the current environment.

Example

Screen Shot 2021-07-01 at 15 05 08

Changelog

  • Addition of a specific repository credentials to add private repos with the rit add repo command.

This pull request generated the following artifacts.

To test the health and quality of this implementation, download the respective binary for your operating system, unzip and directly run the binary like the examples below.

  • Windows
    Download the file: rit-windows.zip
    Unzip to some folder like: C:\home\user\downloads\pr986
    Access the folder: cd C:\home\user\downloads\pr986
    Directly call the binary: .\rit.exe --version or .\rit.exe name of formula

  • Linux
    Download the file: rit-linux.zip
    Unzip to some folder like: /home/user/downloads/pr986
    Access the folder: cd /home/user/downloads/pr986
    Assign execute permission to binary: chmod +x ./rit
    Directly call the binary: ./rit --version or ./rit name of formula

  • MacOS
    Download the file: rit-macos.zip
    Unzip to some folder like: /home/user/downloads/pr986
    Access the folder: cd /home/user/downloads/pr986
    Assign execute permission to binary: chmod +x ./rit
    Directly call the binary: ./rit --version or ./rit name of formula

Generated at Thu Jul 01 2021 18:09:44 GMT+0000 (Coordinated Universal Time)

matheussn and others added 8 commits January 20, 2021 12:12
Signed-off-by: matheussn <matheusneto23@gmail.com>
…d-repo-token

Signed-off-by: matheussn <matheusneto23@gmail.com>
…d-repo-token

Signed-off-by: matheussn <matheusneto23@gmail.com>
Signed-off-by: matheussn <matheusneto23@gmail.com>
Signed-off-by: matheussn <matheusneto23@gmail.com>
Signed-off-by: matheussn <matheusneto23@gmail.com>
…h master

Signed-off-by: GuillaumeFalourd <guillaume.falourd@zup.com.br>
@fabianofernandeszup fabianofernandeszup merged commit a781833 into ZupIT:master Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 improvement Improvement in features ✔️ ready-for-review ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save and reuse repo credentials for private repos
3 participants