Skip to content
GuidesChecked 18 November 2026

Turn voted requests into GitHub issues

A short Node script reads your most voted requests and opens a GitHub issue for each one.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

The idea

Not every request deserves a place in your tracker. A threshold keeps the tracker for the ones many people asked for.

Let the votes decide what becomes an issue.

The board stays the place to ask. The tracker stays the place to build.

A tracker that fills with every passing idea stops being a plan. A board is the opposite: it is cheap to add to, and the votes tell you which ideas deserve attention. The script joins the two with one rule, which is to open an issue when a request reaches a number of votes you choose.

Ten is a reasonable start for a small product, and you can change it in one line. A request that never reaches the number stays on the board, where people can still find it and add their vote.

The key

The REST API key is a secret that belongs to your server or your scheduler. Read it from the environment and never write it into a file.

Use the API key, on a server, from an environment variable.

The API is on the Free plan and on Pro, and Lite does not include it.

Create the key under Share and Embed in the dashboard and send it in the X-API-Key header. Name the variable something you will recognize, such as VOTEFIRST_KEY, and set it in the shell profile or the scheduler's secret store.

A read of the list is one request out of the 1,200 reads a minute that each key gets. So a script that runs a few times a day is nowhere near a limit.

Read the list

The features route accepts sort=votes, a page size of up to 100, and a status filter. Each item carries its id, heading, description, status and vote count.

Ask for the most voted requests, a hundred at a time.

Only approved requests are listed. A suggestion waiting in your queue is not.

The votes sort is the plain headcount, highest first, with pinned requests ahead of the rest. A script that only wants requests over a threshold can usually stop reading once a count drops below it. On a board with fewer than a hundred qualifying requests, one page is enough.

Two cautions. A board that hides its vote counts sends null in place of the number, and the script then has nothing to compare, so it skips that request. And without a board parameter the route lists the roadmap. A public custom board is read with the board parameter, and the cards on a private board are not returned.

The script

It reads the list, skips what it has sent before, skips finished and declined requests and opens one issue for each of the others.

About forty lines of Node, no dependencies.

It saves the ids it has sent in a small file next to the script.

GitHub creates an issue from a POST to the issues route of a repository, with a title and a body. A fine-grained token with the Issues permission set to write, limited to that one repository, is all it needs. Put it in a second variable, GITHUB_TOKEN, and save the script as sync.mjs so Node reads it as a module.

The issue body carries the request's text and one line that says where it came from, with the request id and the vote count. So a person reading the issue knows how it started.

Open an issue for each request over the threshold
import { readFileSync, writeFileSync, existsSync } from 'node:fs';

const BOARD = 'https://app.votefirst.app/api/v3/projects/your-project-slug';
const ISSUES = 'https://api.github.com/repos/your-org/your-repo/issues';
const SEEN_FILE = 'synced.json';
const MIN_VOTES = 10;

const seen = new Set(existsSync(SEEN_FILE) ? JSON.parse(readFileSync(SEEN_FILE, 'utf8')) : []);

async function readRequests() {
  const response = await fetch(BOARD + '/features?sort=votes&per_page=100', {
    headers: { 'X-API-Key': process.env.VOTEFIRST_KEY },
  });
  const body = await response.json();
  return body.data;
}

async function openIssue(request) {
  const response = await fetch(ISSUES, {
    method: 'POST',
    headers: {
      Accept: 'application/vnd.github+json',
      Authorization: 'Bearer ' + process.env.GITHUB_TOKEN,
      'X-GitHub-Api-Version': '28 November 2022',
    },
    body: JSON.stringify({
      title: request.heading,
      body: (request.description || '') + '\n\nVoteFirst request ' + request.id + ', ' + request.vote_count + ' votes.',
    }),
  });
  return response.ok;
}

for (const request of await readRequests()) {
  if (seen.has(request.id)) continue;
  if (['open', 'planned', 'in_progress'].includes(request.status) === false) continue;
  if (request.vote_count === null || request.vote_count < MIN_VOTES) continue;
  if (await openIssue(request)) seen.add(request.id);
}

writeFileSync(SEEN_FILE, JSON.stringify([...seen]));

Run it

Once a day is plenty for most boards. The script is safe to run again, because it skips every id it has already sent.

Run it from cron, a scheduled job or by hand.

Keep the saved ids file with the script, or the next run starts from nothing.

A scheduler that runs on a fresh machine each time has to keep the ids file somewhere that survives, such as a database row or a file in a storage bucket. If you lose it, the worst case is a second issue for a request that already has one, so check the tracker for duplicates before you rerun from scratch.

The route also returns an ETag. Send it back as If-None-Match, and a board that has not changed answers 304 with no body, which keeps a frequent poll cheap.

Close the loop

The script only goes one way. VoteFirst has no route that changes a request's status, so the other direction stays in the dashboard.

Tell the voters when the issue ships.

That keeps the message to your voters in your hands.

When the issue is done, move the request to Completed in the dashboard and publish a release. VoteFirst emails the people whose votes are in it, and those who follow the changelog, which is the part no script can do for you.

Until then, add the link to the issue in the request's developer response, so people who open the card can see that work has started.

What the script gives you

A tracker with a filter

Only requests with real demand become issues.

No double entry

Each request is sent once, and the board stays the source of votes.

No new service

It is one file and two variables, with nothing to host.

Connect to GitHub in four steps

About half an hour.

Create the two keys

An API key from the dashboard and a fine-grained GitHub token.

Set the variables

Put both in the environment as VOTEFIRST_KEY and GITHUB_TOKEN.

Run it once by hand

Check that the issues look the way you want.

Schedule it

Run it daily and keep the saved ids with the script.

What to know before you build it

  • The API is on the Free plan and on Pro, and not on Lite.
  • There are no outgoing webhooks, so the script has to poll.
  • The flow is one way. Statuses change in the dashboard.
  • The list route reads the roadmap or a public board. Private boards are not returned.

Issue tracker connection questions

Does VoteFirst sync with GitHub, Jira or Linear?

No. There is no sync and there are no outgoing webhooks. A script that reads the API is the way to connect them.

Which plan has the API?

The Free plan and Pro. A key made on Lite is refused.

Will it see requests that are waiting for approval?

No. Only approved requests are listed, so approve a suggestion before the script can see it.

What if the board hides vote counts?

The count comes back as null. The script then skips that request, because it has nothing to compare.

Can the script change a request's status?

No. The API has no route for it, so statuses are changed in the dashboard.

Does it work with Linear or Jira?

The VoteFirst half is the same. Replace the GitHub call with the create call of your tracker.

What does a GitHub token need?

A fine-grained token with the Issues permission set to write on the one repository.

How often can it run?

As often as you like within 1,200 reads a minute per key. Once a day suits most boards.

What does it cost?

The Free plan covers one project and 100 votes. Pro costs $39/mo and opens with a 14 day trial that asks for no card.

Let the votes fill the tracker

Create the key and run the script once today. Pro opens with a 14 day trial and asks for no card.