github / gh-migration-analyzer

MIT License
64 stars 21 forks source link

You can alternatively export your PAT as environment variable if you do not want to pass it in with the command. export GH_PAT=<PAT> or export ADO_PAT=<PAT> #33

Open Henrzac679 opened 1 year ago

Henrzac679 commented 1 year ago

Yes, that's correct. If you don't want to pass your personal access token (PAT) in with the command every time, you can export it as an environment variable. For GitHub, you can export your PAT as an environment variable using the following command:

export GH_PAT=<PAT>

Replace <PAT> with your personal access token. For Azure DevOps, you can export your PAT as an environment variable using the following command:

export ADO_PAT=<PAT>
```Replace `<PAT>` with your personal access token.
After exporting the PAT as an environment variable, you can run the command without passing the `-t` option:

or

node src/index.js ADO-org -o <organization>

The tool will automatically use the PAT that you exported as an environment variable.

Hello to Githubs please show me my mistake and put me through.