Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Policy engine workflow for building and testing 2nd party plugins #1614

Open
2 of 9 tasks
johnandersen777 opened this issue Jun 27, 2024 · 1 comment
Open
2 of 9 tasks

Comments

@johnandersen777
Copy link

johnandersen777 commented Jun 27, 2024

@johnandersen777
Copy link
Author

johnandersen777 commented Jun 27, 2024

Test Cases

gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url
[                                              
  {                   
    "path": "pyproject.toml",
    "repository": {                           
      "id": "MDEwOlJlcG9zaXRvcnk5ODQ2ODEzMw==",       
      "isFork": false,
      "isPrivate": false,                             
      "nameWithOwner": "pdxjohnny/httptest",                                                                                                                   
      "url": "https://github.com/pdxjohnny/httptest"
    },
    "sha": "17b123594123d648e8a064fb0761a248ed0b312e",
    "url": "https://github.com/pdxjohnny/httptest/blob/2239666733f9e77221b01425c8cc71fb18062eb4/pyproject.toml"
  }
]
$ for i in $(gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url --jq '.[]'); do export REPO_NAME_WITH_OWNER=$(echo "${i}" | jq -r .repository.nameWithOwner); echo $REPO_NAME_WITH_OWNER; done
pdxjohnny/httptest
pdxjohnny/signpost
pdxjohnny/autoentrypoint
pdxjohnny/dffml-operations-flights
pdxjohnny/dffml-operations-github
pdxjohnny/dotfiles
pdxjohnny/noteserver
pdxjohnny/consoletest
pdxjohnny/dffml-operations-us-reps
pdxjohnny/test-ffmpeg
pdxjohnny/dffml-operations-dockerhub
for i in $(gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url --jq '.[]'); do export REPO_NAME_WITH_OWNER=$(echo "${i}" | jq -r .repository.nameWithOwner); gh workflow run --ref 2nd-party-shared-ci-flows -F name-with-owner=$REPO_NAME_WITH_OWNER testing.yml; break; done

image

gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url | python -um json.tool | tee $USER-pep-518-repos.json && export GH_ACCESS_TOKEN=$(gh auth token) && (set -x; for i in $(cat $USER-pep-518-repos.json | jq -c '.[]'); do   export REPO_NAME_WITH_OWNER=$(echo "${i}" | jq -r .repository.nameWithOwner) && export GH_TOKEN=$(gh auth token) && export START_DATE="2024-06-27T00:00:00Z" && export END_DATE="2024-06-27T00:00:00Z" && python -u $(find . -name github_api.py); break;  done; )

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

No branches or pull requests

1 participant