Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disabled org not shown in log #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

VincentVerweij
Copy link

I have a disabled organization in the organisations.json file:

{
    "organisations": [
      {
        "enabled": false,
        "url": "https://dev.azure.com/my-first-org",
        "pat": "<my-first-org-pat>",
        "processMatch": []
      },
      {
        "enabled": true,
        "url": "https://dev.azure.com/my-second-org",
        "pat": "<my-second-org-pat>",
        "processMatch": []
      }
    ]
  }

I noticed that when executing for example Generate-ProjectStats.ps1 that the logging was showing Skipping and I was wondering what it was skipping.
So, I went looking and found that it is shown for a disabled organization.

This PR fixes the variable used to show the Skipping part.
For Generate-ProjectStats.ps1 it was (notice the emptiness after Skipping):

image

And after the fix, it becomes (an organisation URL is shown after Skipping):

image

I only executed Generate-ProjectStats.ps1 but some other files had this small issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant