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

Emit logs with details about configuration origin and final configuration #524

Open
pburkholder opened this issue Jun 20, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@pburkholder
Copy link

As an administrator of a GitHub organization that has delegated repoOverrides to the repository owner, I would nonetheless like to know when the org-wide settings are being overridden. I would found find it helpful if AllStar emitted logs maybe like this:

{
    "severity": "INFO",
    "org": "GSA-TTS",
    "repo": "sample_repo"
    "area": "Branch Protection",
    "enabled": true,
    "time": "2024-06-20T09:51:39-04:00",
    "message": "Check repo enabled",
    "details": {
      "configuration_sources": [
        "GSA-TTS/.allstar/branch_protection.yaml",
        "GSA-TTS/sample_repo/.allstar/branch_protection.yaml"
      ],
      "final_configuration": {
        "approvalCount": 1,
        "blockForce": true,
        "dismissStale": false,
        "enforceDefault": true,
        "enforceOnAdmins": true,
        "optOutArchivedRepos": true,
        "requireApproval": true,
        "requireSignedCommits": true,
        "requireUpToDateBranch": true
      }
    }
}

instead of the current

  {
    "severity": "INFO",
    "org": "GSA-TTS",
    "repo": "sample-repo",
    "area": "Branch Protection",
    "enabled": true,
    "time": "2024-06-20T09:51:39-04:00",
    "message": "Check repo enabled"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants