Closed goern closed 3 years ago
/kind feature /priority critical-urgent ;)
@tumido can you also check if Sesheta has admin access to aicoe-aiops, so that it can also work on private repos? thx!
@goern it does not. Is there any way to change that permissions globally just for sesheta and for all repos in the org, other than making Sesheta the org owner?
so what we do is to put Sesheta in a SourceOps team, add all the repos to that team and give sesheta admin access on all the repos.
@goern Ok, the API was easier for me in the end and that was the only way to make sure I caught all the repos.
You can use the script for your purposes as well:
#!/bin/sh
CREDS="tumido:TOKEN"
ORG="aicoe-aiops"
TEAM="sourceops"
ALL_REPOS=`curl -s -u "$CREDS" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/$ORG/repos?per_page=1000 | jq -r .[].full_name`
echo "'$TEAM' is now the admin of:"
for repo in $ALL_REPOS; do
curl -s -u "$CREDS" -X PUT -d '{"permission": "admin"}' https://api.github.com/orgs/$ORG/teams/$TEAM/repos/$repo
echo "- $repo'"
done
With following result:
'sourceops' is now the admin of:
- aicoe-aiops/ceph_drive_failure'
- aicoe-aiops/data-science-workflow-examples'
- aicoe-aiops/openshift-sme-mailing-list-analysis'
- aicoe-aiops/ocp4-anomaly-detection-internal'
- aicoe-aiops/data-science-workflows'
- aicoe-aiops/ceph-data-drive-failure'
- aicoe-aiops/cja-topic-modeling'
- aicoe-aiops/sentiment-analysis-demo'
- aicoe-aiops/insights-drift-analysis-baselines'
- aicoe-aiops/categorical-encoding-internal'
- aicoe-aiops/cloud-price-analysis'
- aicoe-aiops/ocp-alert-prediction'
- aicoe-aiops/insights-invocation-hints'
- aicoe-aiops/ri-optimization'
- aicoe-aiops/insights-configuration-files-analysis'
- aicoe-aiops/ai-enablement-initiative'
- aicoe-aiops/project-template'
- aicoe-aiops/auto-faq'
- aicoe-aiops/sync-pipelines-private'
- aicoe-aiops/insights-sap-analysis'
- aicoe-aiops/sync-pipelines'
- aicoe-aiops/sentiment-analysis-public'
- aicoe-aiops/flake-qe'
- aicoe-aiops/ocp-ci-analysis'
- aicoe-aiops/ocp-alert-prediction-public'
- aicoe-aiops/mailing-list-analysis-toolkit'
- aicoe-aiops/fedora-mailing-list-analysis'
- aicoe-aiops/categorical-encoding'
- aicoe-aiops/configuration-files-analysis'
- aicoe-aiops/insights-grokket'
- aicoe-aiops/time-series'
- aicoe-aiops/cloud-price-analysis-public'
- aicoe-aiops/openshift-anomaly-detection'
- aicoe-aiops/vulnerability-analysis'
Done :tada:
nice man!!
@goern is this issue fully resolved now?
reconfigure webhook of the org to use https://prow.operate-first.cloud/hook (no other changes):
/sig documentation /sig devops /assign @tumido /assign @harshad16