...

Text file src/edge-infra.dev/hack/scripts/sync-gh-beta-project.sh

Documentation: edge-infra.dev/hack/scripts

     1#!/usr/bin/env bash
     2set -euo pipefail
     3
     4echo "adding all open issues on ncr-swt-retail/edge-roadmap to our gh project..."
     5
     6PROJECT_ID=PN_kwDOA-6tWc2Hcg
     7
     8for id in $(gh api 'repos/ncr-swt-retail/edge-roadmap/issues?state=open' --paginate  --jq '.[].node_id'); do sleep 3 && gh api graphql --silent -f query="
     9  mutation {
    10    addProjectNextItem(input: {projectId: \"$PROJECT_ID\" contentId: \"$id\"}) {
    11      projectNextItem {
    12        id
    13      }
    14    }
    15  }" && echo "added $id"; done
    16
    17bazel run cmd/ghpm --action_env=GITHUB_TOKEN

View as plain text