jtormey / linear-sync Goto Github PK
View Code? Open in Web Editor NEWEasily synchronize issues between Linear and GitHub
Home Page: https://linear-sync.com
Easily synchronize issues between Linear and GitHub
Home Page: https://linear-sync.com
Heya! Awesome tool, really excited it might save us from having to use Jira! 🥳 We however have a requirement to not give linear-sync.com permission to our private issue data.
I originally tried to solve this by logging in with a dummy user which is outside our github org. to avoid giving the app access to our org's private issues. The user is r2c-demo
, and I'd want to subscribe to issues on returntocorp/semgrep
(and some other public repos). But sadly, it's not possible to select a repo unless the user is a member of the repo's organization:
I even tried to reverse engineer the API to subscribe to an undisplayed repo ID, but Phoenix's websockets are too difficult for me to wrangle like that. I wanted to try to find other ways around private permissions, but can't play around too much since #16 prevents me from switching github users.
Hi @jtormey. Amazing tool, thanks so much. I switched to this after https://github.com/calcom/synclinear.com proved unreliable.
Creating issues in Github results in perfectly functioning two-way syncing.
But creating issues in Linear seems to break syncing.
That is, after the Linear issue successfully syncs to Github:
Sync ID is 5bd2722d-eaa4-4dd5-9d7f-489aa6d6d771
When I check out the webhook in the Github repo, here's what I see:
I can't debug this any further from the error message itself.
First of all thanks for the great project. I can't set it up with a new repo of mine though. I can connect my GitHub account, create an API key, setup an issue sync but when pressing "enable" the following error pops up:
The repository I try to connect is the following.
Any idea what could cause the problem?
If one syncs two Github repos to the same team, which repo will a new Linear issue in that team sync back to? It would be helpful if we could (optionally) specify the Linear project that a connection syncs to/from:
Previously, Linear Sync went one way - pulling issues from Github and adding them to Linear. It seems like two way sync is now the default. Is there a way to restore the previous behavior?
Currently, this application only supports syncing new issues from GitHub to Linear. However, it would be nice if sync worked the other way as well.
Example use cases:
For anyone looking to implement this feature, here are the relevant sections of the codebase:
Currently, Linear Sync imports the issue title and text, but does not sync Github labels with labels in Linear.
I noticed in #14, sync is added in the reverse direction (Linear -> Github). It would be amazing if this worked in the other direction as well!
Current Behavior: When creating a new Github issue that has labels, Linear Sync will import the issue title and text but will not include the labels.
When adding labels to an existing issue, the sync process works as expected and the labels from Github are added to Linear.
Expected Behavior: Linear Sync should import the labels for new issues, the same way that it syncs labels when they are added to existing issues.
Hey,
How can I delete my account on the sync page?
Expected Behavior
Current Behavior
In Linear Sync, after I added a sync to test one repository, it seemed to setup fine.
But when I click the "Enable" button, I get the error:
Failed to enable issue sync (:linear_webhook_enable_failure)
Clicking "View Webhooks", no webhooks are listed for either Linear or Github.
( In Linear setting, I see a webhook created: https://linear-sync.com/webhook/linear )
( In Github, I don't see a webhook created for that repository.)
I'm not exactly sure how, but Linear's github import tool and synclinear.com both manage to append these nice, official "Github issue" links to the bottom of the Linear issue description:
By comparison, this tool only adds the link inside the rich text description. Whilst this is functionally fine, it's not quite as slick. The affordance of the button and consistent UI will make the UX this tool provides a bit nicer.
When syncing a new issue from Github to Linear, add a comment that links to the Linear issue. At the moment, a link is only created when a comment is added in Linear.
This is basically just the reverse of the
GitHub close ➡️ Linear status set to [Close Status]
sync.
Something went wrong with the Linear->Github syncing (for Github-created issues) so I tried to 'reset' the connection.
Failed to disable issue sync (:github_webhook_disable_failure)
Internal Server Error
Internal Server Error
.I've manually removed the webhooks and plan to create a new connection with a new API key, just filing this bug in case it's helpful for smoothing things out in future. It's no problem now but if I set up 10 syncs in future and then had to manually disable and recreate them, that would be a bit of a headache.
Github has two close statuses, done
and cancelled
. Ideally we'd be able to map each status to a specific Linear status. In my team's Linear, we also have done and cancelled statuses.
Linear includes a userPresentableMessage
in their GraphQL error responses. It would be nice to make this user-facing in the event that there is an API failure. Error-handling in general could be better too.
Issue can be found at https://github.com/returntocorp/semgrep-action/issues/405
Someone previously set up Linear Sync from an account that I no longer have access to. They have revoked authorization from their Github and their Linear account has been suspended. However, now, when I try to recreate the sync using my own Github account I receive the following error message: "there is already an issue sync for this team repo combination"
Potential Solution:
Other members of a Linear workspace should be able to remove pre-existing 'syncs'
This looks really great- is there any chance the integration permissions could be reduced and exclude code, deploy keys, etc?
i created a new sync connection
What should i do to sync existing github issues into linear and keep them in sync?
Steps to reproduce:
I just setup a clean account (meaning I didn't have the Linear Sync GitHub app installed before), and a sync that I created is disabled by default. When enabling, I'm getting: Failed to enable issue sync (:github_webhook_enable_failure)
.
I tried to peek in the code, but I'm no Elixer developer and I'm a bit confused whether GitHub webhook
means it's connecting to GitHub, as the Linear API is an argument in the functions invoked there. Anyways, any idea what's happening here @jtormey?
Right now, synced comments from Linear are posted in the name of the integrating user.
To avoid confusion, the name of the Linear user should appear in the comment, either in the footer alongside "synced from Linear" or somewhere else.
Ideally, comments wouldn't be posted on behalf of the integrating user but rather by the linear-sync.com application. (e.g. so the integrating user's name and avatar doesn't show up at all for a comment that doesn't involve them.) But this is a stretch goal, I think :)
Steps to reproduce:
For an issue created in Github, then synced to Linear, comment edits are not being synced either from Linear to Github or Linear to Github.
The same problem might be occurring for issues created in Linear but I can't test this before #43 is resolved.
The simplest use case for this is: if a GH issue is accidentally closed and then reopened, I'd expect the Linear ticket to not be left as "Done". A reopen feels conceptually similar to a new issue with the same content being opened, which would sync to Linear as the configured "Open Status". So I think reopens should do the same.
Hi linear-sync, thanks for this app, it's really helpful.
I have a small suggestion:
Current Behavior
Every time I open a PR, a new Linear Task is opened.
Expected Behavior
I'd like to be able to set linear-sync to only open tasks with Github Issues.
Hey @jtormey! Thanks for this awesome integration. I was wondering if it's possible to only sync comments back to GitHub, when an issue has been created in GitHub and synced to Linear.
Expected Behavior
Current Behavior
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.