Skip to content

[WIP] Add enterprise bulk metadata tagging script - #4

Merged
Lawrence Lucas Large (LukeLarge) merged 1 commit into
mainfrom
copilot/bulk-metadata-tagging
Mar 21, 2026
Merged

[WIP] Add enterprise bulk metadata tagging script#4
Lawrence Lucas Large (LukeLarge) merged 1 commit into
mainfrom
copilot/bulk-metadata-tagging

Conversation

Copilot AI commented Mar 16, 2026

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

#!/usr/bin/env bash

============================================================

TLMSLLC ENTERPRISE BULK METADATA TAGGING SCRIPT

Applies enterprise-wide custom properties to all repos

across TLMSLLC and triple-labs.

Requirements:

- GitHub CLI authenticated (gh auth login)

- Enterprise-level custom properties already created

============================================================

ENTERPRISE_ORGS=("TLMSLLC" "triple-labs")

Default values (can be overridden per repo later)

DEFAULT_PROJECT_TYPE="documentation"
DEFAULT_WORKFLOW_STAGE="active_development"
DEFAULT_SECURITY_LEVEL="internal"
DEFAULT_DATA_SENSITIVITY="none"
DEFAULT_AUTOMATION_PROFILE="standard"
DEFAULT_RISK_CATEGORY="low"
DEFAULT_DOCUMENTATION_STATUS="partial"
DEFAULT_REVIEW_CYCLE="annual"
DEFAULT_COMPLIANCE_FRAMEWORK="internal_policy"

echo "============================================================"
echo " TLMSLLC ENTERPRISE BULK METADATA TAGGING STARTED "
echo "============================================================"

for ORG in "${ENTERPRISE_ORGS[@]}"; do
echo ""
echo "Fetching repositories for org: $ORG"
REPOS=$(gh repo list $ORG --limit 500 --json name --jq '.[].name')

for REPO in $REPOS; do
    FULL="$ORG/$REPO"
    echo ""
    echo "------------------------------------------------------------"
    echo " Tagging repository: $FULL"
    echo "------------------------------------------------------------"

    # Apply enterprise metadata
    gh repo custom-properties set "$FULL" --property project_type="$DEFAULT_PROJECT_TYPE"
    gh repo custom-properties set "$FULL" --property workflow_stage="$DEFAULT_WORKFLOW_STAGE"
    gh repo custom-properties set "$FULL" --property security_level="$DEFAULT_SECURITY_LEVEL"
    gh repo custom-properties set "$FULL" --property data_sensitivity="$DEFAULT_DATA_SENSITIVITY"
    gh repo custom-properties set "$FULL" --property automation_profile="$DEFAULT_AUTOMATION_PROFILE"
    gh repo custom-properties set "$FULL" --property risk_category="$DEFAULT_RISK_CATEGORY"
    gh repo custom-properties set "$FULL" --property documentation_status="$DEFAULT_DOCUMENTATION_STATUS"
    gh repo custom-properties set "$FULL" --property review_cycle="$DEFAULT_REVIEW_CYCLE"

    # Multi-select example (comma-separated)
    gh repo custom-properties set "$FULL" --property compliance_framework="$DEFAULT_COMPLIANCE_FRAMEWORK"

    # Owner team left blank intentionally (manual assignment)
    echo "Applied enterprise metadata to $FULL"
done

done

echo ""
echo "============================================================"
echo " BULK TAGGING COMPLETE — ALL REPOS UPDATED "
echo "============================================================"


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI requested review from Copilot and removed request for Copilot March 16, 2026 13:33
@LukeLarge
Lawrence Lucas Large (LukeLarge) marked this pull request as ready for review March 21, 2026 21:47
Copilot AI review requested due to automatic review settings March 21, 2026 21:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@LukeLarge
Lawrence Lucas Large (LukeLarge) merged commit 44f3c64 into main Mar 21, 2026
11 checks passed
@LukeLarge
Lawrence Lucas Large (LukeLarge) deleted the copilot/bulk-metadata-tagging branch March 21, 2026 21:47
@sonarqubecloud

Copy link
Copy Markdown

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.

3 participants