• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
cricks_unmixed4u

cricks_unmixed4u

gissue-rolodex

Remix of cricks_unmixed4u/ai-prompted
Public
Like
gissue-rolodex
Home
Code
7
integrations
1
.cursorrules
.vtignore
README.md
deno.json
knowledge.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
7
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/7/2025
Viewing readonly version of main branch: v5
View latest version
README.md

What this val does

  • Tracks issues or pull‑requests updated in a chosen GitHub repository since the last run.

  • Sends the resulting metric (count, effort estimate, etc.) to a Beeminder goal.

  • Runs on a Val Town schedule---no servers, no cron on your laptop.

It relies on two helper vals:

| Val | Purpose | | github-api | Wrapper around GitHub's REST API with a helper for updated issues. | | beeminder-client | Lightweight Beeminder v1 API client for goal and datapoint operations. |


Prerequisites

  1. A Val Town account with Cron permissions.

  2. GitHub Personal Access Token (repo:read scope).

  3. Beeminder API Token (under Account → Settings on beeminder.com).

  4. An existing Beeminder goal to receive datapoints.


Setup

  1. Copy this val into your own namespace (press Copy in Val Town).

  2. Add secrets in Account → Secrets:

    | Key | Example value | | GITHUB_TOKEN | ghp_xxx | | GITHUB_REPO | octo-org/monorepo | | BEEMINDER_USERNAME | alice | | BEEMINDER_TOKEN | abcd1234efgh | | BEEMINDER_GOAL | issues |

  3. Schedule it: in the editor choose Schedule → Cron and enter an expression such as 0 * * * * for hourly runs. The val remembers its last execution so double‑counting is avoided.


How it works

  1. Reads meta.lastRunAt (provided by Val Town) to get the previous run time.

  2. Calls github-api to fetch issues/PRs updated since then.

  3. Calculates a datapoint (default: count) and crafts a summary comment.

  4. Posts the datapoint to your Beeminder goal via beeminder-client.

  5. Logs every step to Val Town's console.


Customising

  • Filtering: modify the GitHub query to restrict by label, assignee, or PR/issue type.

  • Scoring: change the datapoint value (e.g. story‑points, PR size).

  • Multiple goals: call the Beeminder client multiple times to split metrics.


Troubleshooting

| Problem | Fix | | 401 Unauthorized from GitHub | Check GITHUB_TOKEN and scopes. | | No datapoints appear | Verify BEEMINDER_GOAL slug and wait for the cron run. | | Duplicate datapoints | Cron schedule too tight---use hourly or daily. |


License

MIT

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.