Skip to content

triggerdotdev/ai-changelog

 
 

Repository files navigation

AutoChangelog by Trigger.dev

Welcome to AutoChangelog! Try it for free here.

Contributing

First, install dependencies and run the development server:

npm i
npm run dev

Setup Trigger.dev

For this step, you may need to create an account on Trigger.dev. You can log in with your GitHub account.

To link the jobs/ directory to Trigger.dev, clone the example.env file and rename it .env. Then populate the .env file with your Trigger.dev keys and run the Trigger.dev CLI:

cp .env.example .env.local
npx @trigger.dev/cli@latest dev

This may require installing or updating the CLI. When linked, you should see a message like this:

✅ Detected TriggerClient id: jobs-abcd
✅ Found API Key in .env.local file
✅ Created tunnel: abc123.ngrok.app

Setup GitHub

Sign in to GitHub and create a new Personal Access Token by going to your profile > Settings > Developer settings > Personal access tokens > Fine-grained.

Create a fine-grained token with access to all or public-only repos. Toggle the Commit statuses and Contents permissions, then paste the token in your .env.local file.

Setup Supabase

Login or create and account at Supabase.

Create and setup a new project

Inside your new project, use the SQL Editor to generate the database. Use this query and click RUN.

create table
  public.repos (
    id bigint generated by default as identity,
    created_at timestamp with time zone null default now(),
    owner text not null,
    repo text not null,
    repo_url text not null,
    constraint repos_pkey primary key (repo, owner),
    constraint repos_id_key unique (id)
  ) tablespace pg_default;

create table
  public.changelogs (
    id bigint generated by default as identity,
    created_at timestamp with time zone null default now(),
    repo bigint not null,
    start_date date not null,
    end_date date not null,
    markdown text null,
    constraint changelogs_pkey primary key (repo, start_date, end_date),
    constraint changelogs_repo_fkey foreign key (repo) references repos (id) on update cascade on delete cascade
  ) tablespace pg_default;

Next, look for the Project Settings in the side menu and copy the Project API key and paste it in your .env file. Then look for the Project URL and copy just the ID out of the URL and paste it in the SUPABASE_ID section of your .env file.

Run the project

Open localhost:3000 in your browser to see the result.

Learn More

To learn more about Trigger.dev, see our Getting Started guide!

You can check out the Trigger.dev GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

Deploy with Vercel

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.9%
  • CSS 2.7%
  • JavaScript 0.4%