GitHub and Linear
Open an issue for an error, and keep the two in step both ways.
Lyrelog can open an issue in GitHub or Linear for an error, and keep the error and the issue in step: resolve the error and the issue closes; close the issue and the error is resolved. It's on every plan.
Connecting the organization
An owner connects each once, in the organization's settings under GitHub and Linear. Choosing Connect needs a recent sign-in.
- GitHub: you install the Lyrelog app on your GitHub account or organization and choose the repositories it can reach. GitHub then asks you to authorize Lyrelog, which only checks who you are: the owner of that GitHub account, or an admin of that GitHub organization. Nobody else can connect it, not even someone who sees its repositories, since connecting lets everyone in your Lyrelog organization open issues there. Lyrelog keeps the installation, never a token: each time it needs to, it asks GitHub for one that lasts an hour and works only on the project's repository, only for issues.
- One GitHub installation, or one Linear workspace, belongs to one Lyrelog organization. Connecting it from another moves it there, with its owner's approval; the first loses it.
- Linear: you approve Lyrelog for a workspace. Issues are opened by Lyrelog, not by you. Its tokens are encrypted at rest and work only for your organization.
Disconnect removes the connection, and every project's choice of it. Issues already opened stay where they are, and stop following their errors.
Choosing where a project's errors go
In the project's settings, under Issues in GitHub or Linear, an owner chooses one repository, or one Linear team. Only the repositories the app was given, or the workspace's teams, are offered.
Opening an issue
On the Errors page, an error's menu has Open an issue in GitHub (or Linear). Anyone in the project can use it. The issue is titled with the error's area and name, and says how many events and people it had in the last 7 days, the versions, when it was first and last seen, and links back to the error in Lyrelog. It never carries a person's id, or an event's attributes or payload.
The issue then shows beside the error, as #12 or ENG-12; click it to open it.
How they follow each other
| In Lyrelog | In GitHub | In Linear |
|---|---|---|
| Resolved | Closed as completed | Moved to the team's first completed state |
| Ignored | Closed as not planned | Moved to the team's first canceled state |
| Reopened, or came back | Reopened (with a comment when it came back) | Moved to the team's first unstarted state |
| In GitHub or Linear | In Lyrelog |
|---|---|
| Closed as completed, or completed | Resolved in the next version (or now, without a version) |
| Closed as not planned, canceled, or marked a duplicate | Ignored |
| Reopened, or moved to triage, backlog, todo or in progress | Open |
Only a change of state counts: editing an issue's title or assignee changes nothing here. A change made in one place isn't sent back to it. Deleting an issue, or moving it to another repository, unlinks it: the error can have a new one. If GitHub or Linear doesn't answer, Lyrelog tries again later, for about an hour.