From 19b55b3b578e8c5cea46382ead9f17ef5efe5297 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sat, 2 Nov 2024 12:50:30 +1300 Subject: [PATCH 1/2] Avoid breakage if a ZenHub workspace has no epics --- helpers/zenhub.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/helpers/zenhub.py b/helpers/zenhub.py index 63cab922..6498d839 100644 --- a/helpers/zenhub.py +++ b/helpers/zenhub.py @@ -101,15 +101,19 @@ def get_epics(endpoint, workspace_id, repos): d = endpoint(op) data = op + d - epics_page = data.workspace.epics - epics += [ - (node.id, (node.issue.repository.gh_id, node.issue.number)) - for node in epics_page.nodes - ] + if hasattr(data.workspace, 'epics'): + epics_page = data.workspace.epics + epics += [ + (node.id, (node.issue.repository.gh_id, node.issue.number)) + for node in epics_page.nodes + ] - if epics_page.page_info.has_next_page: - cursor = epics_page.page_info.end_cursor - print('.', end='', flush=True) + if epics_page.page_info.has_next_page: + cursor = epics_page.page_info.end_cursor + print('.', end='', flush=True) + else: + print() + break else: print() break From 411fc5020d4226b5833adb10c5556f4bda8a3aab Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sat, 2 Nov 2024 13:30:09 +1300 Subject: [PATCH 2/2] Update `TERMINATE_AT` issues after some were moved --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 77c4b550..3e097f9d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -130,7 +130,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }} DAG_VIEW: zcashd-deprecation - TERMINATE_AT: "zcash/librustzcash#1349,zcash/zcash#5796,zcash/zcash#6453" + TERMINATE_AT: "zcash/wallet#5,zcash/wallet#6,zcash/zcash#5796" - name: Render Sprout pool deprecation DAG run: python3 ./zcash-issue-dag.py