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

Merge main changes #2

Merged
merged 18 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions .github/workflows/daoip5-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,33 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r daoip-5/scripts/requirements.txt

- name: Generate JSON files
id: generate_files
run: |
# Detecting the updated/added folder in the funders directory
FOLDER_PATH=$(git diff --name-only HEAD^ HEAD | grep '^data/funders' | head -1 | xargs dirname)
FOLDER_PATH=$(git diff --name-only HEAD^ HEAD | grep '^data/funders' | head -1 | xargs dirname || true)
if [ -z "$FOLDER_PATH" ]; then
echo "No changes detected in funders directory. Exiting."
exit 0
fi
# Running the main.py script with the detected path
python3 daoip-5/scripts/main.py --path "./$FOLDER_PATH"

- name: Commit generated files
- name: Check for changes and commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add daoip-5/json
git commit -m "Auto-generated files for new/updated folder"
if [ -n "$(git status --porcelain)" ]; then
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add daoip-5/json
git commit -m "Auto-generated files for new/updated folder"
else
echo "No changes to commit."
exit 0

- name: Push changes and create PR
if: success() && steps.generate_files.outputs.FOLDER_PATH != ''
uses: peter-evans/create-pull-request@v5
with:
commit-message: Auto-generated DAOIP-5 files for new/updated folder
Expand Down
21 changes: 21 additions & 0 deletions daoip-5/json/optimism/grants_pool.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,27 @@
"email": "[email protected]",
"image": "https://optimism.org/images/{'name': 'retrofunding4'}.png",
"coverImage": "https://optimism.org/images/{'name': 'retrofunding4'}_cover.png"
},
{
"type": "GrantPool",
"id": {
"name": "retrofunding5"
},
"name": {
"name": "retrofunding5"
},
"description": "Grants pool for {'name': 'retrofunding5'}.",
"isOpen": false,
"applicationsURI": "https://optimism.org/applications/{'name': 'retrofunding5'}_example.json",
"governanceURI": "https://optimism.org/governance/{'name': 'retrofunding5'}_example.md",
"attestationIssuersURI": "https://optimism.org/attestations/{'name': 'retrofunding5'}_example.json",
"requiredCredentials": [
"DAO Attestation",
"KYC"
],
"email": "[email protected]",
"image": "https://optimism.org/images/{'name': 'retrofunding5'}.png",
"coverImage": "https://optimism.org/images/{'name': 'retrofunding5'}_cover.png"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
"grantPoolId": "grants_season_1",
"grantPoolName": "grants_season_1",
"projectsURI": "https://gov.optimism.io/t/gf-phase-0-proposal-lyra-finance/202/22",
"projectId": "lyra-finance",
"projectId": "derivexyz",
"projectName": "Lyra V1",
"createdAt": "2022-07-01T00:00:00Z",
"contentURI": "https://gov.optimism.io/t/gf-phase-0-proposal-lyra-finance/202/22",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@
"grantPoolId": "grants_season_4",
"grantPoolName": "grants_season_4",
"projectsURI": "https://app.charmverse.io/op-grants/page-8973550421901375",
"projectId": "lyra-finance",
"projectId": "derivexyz",
"projectName": "LYRA V2",
"createdAt": "2023-09-01T00:00:00Z",
"contentURI": "https://app.charmverse.io/op-grants/page-8973550421901375",
Expand Down
Loading
Loading