Skip to content

HardMax71/linear-anchor-bot

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

linear-anchor-bot

Paste a GitHub permalink into a Linear issue and this bot keeps it pointed at the right code. On every push to the tracked branch it checks each linked block: if the lines only shifted it quietly updates the link, and if the block was rewritten or deleted it marks the issue stale and leaves a comment with the last good version. There is no database to run, because the link already sitting in the issue is the only state it needs.

annotated Linear issue showing the bot at work

The screenshot shows a stale catch. The code the issue pointed at was changed, so the bot flagged the issue, named the commit that broke it, and pasted the last good copy of the block straight from the pinned commit, all on its own.

There is more technical detail in docs/HOW_TO.md, including how to run it locally, the determinism rules, and how the tests are set up.

Packages

 
 
 

Contributors

Languages