-
Notifications
You must be signed in to change notification settings - Fork 81
milestone estimate tracking
Calcite uses estimate labels
to predict how much time an issue will take, which improves the accuracy of
milestone planning. The track-milestone-estimates.yml
workflow compiles the total estimates per milestone for analysis.
Use the following gh commands to dispatch the workflow and download the
artifacts. You can copy and paste the full code block into your terminal:
# run the workflow and give GitHub some time to process the request
gh workflow run track-milestone-estimates.yml && sleep 5
# get the id of the workflow's most recent run
__run_id="$(
gh run list --workflow=track-milestone-estimates.yml \
--json=databaseId --jq='.[].databaseId' --limit=1
)"
# watch the run and download the artifact if it succeeds
gh run watch --exit-status $__run_id && gh run download $__run_idThe data is saved to the current working directory in both CSV and JSON format.
open ./milestone-estimates/milestone-estimates.csvUse the following steps to manually run the workflow and download the run's artifact:
- Go to the workflow's page
- Open the
run workflowdropdown on the right side of the screen - Click the
Run workflowbutton (keep the default branch) - Wait for the run to appear at the top of the list (it may take a few seconds after clicking the button)
- Click the
Track Milestone Estimatestitle of the first run on the list - Wait for the run to complete. An
Artifactssection will appear at the bottom of the page (if not, refresh) - Click the download button on the right of the
milestone-estimatesartifact - Extract the
milestone-estimates.zipfile in your Downloads directory - Open the data, which is provided in both CSV (spreadsheet) and JSON format
The workflow will run automatically when an issue is closed. This means you can skip dispatching the workflow and download the artifact from the latest run.
-
Website users can skip numbers 2-4,6 in the steps above.
-
CLI users can run this command instead of the ones above:
# you can uncomment the --status flag on failure, but the data may be outdated gh run download "$( gh run list --workflow=track-milestone-estimates.yml \ --json=databaseId --jq='.[].databaseId' --limit=1 # --status=success )"