GithubHelp home page GithubHelp logo

Comments (1)

wmoline avatar wmoline commented on May 28, 2024 2

Hey again! We chatted in ZenDesk, but I wanted to make sure there was follow up here as well.

The VCS entities like repository, branch, commit, and pull request aren't currently publicly accessible. There's a significant amount of logic around what happens when those entities are associated with a Story; we might never expose those endpoints, and instead build out more options for the integration internally. It doesn't hurt to ask though!

You may be able to do a fair bit of what you're after by taking advantage of the different ways the existing GitHub integration can associate work to Stories, and Github's API.

Using the Story ID in one of the ways that Clubhouse is listening for is going to be your best bet for the initial association.

For things like automatically creating stories when someone creates a PR against certain repos, you might use GitHub's webhooks to listen for the PR creation, and use the Story endpoint to create a new Story based on that PR.

Then, with the returned new Story details, grab the Story ID and use GitHib's Issue Comments endpoint to add bracketed text [ch###], where ### is the Story ID, as a comment on the PR. If Clubhouse's Github integration is on, and the webhook was already added to the repository in Github, Clubhouse should associate the PR with the Story in the comment.

Between the two, there's a lot of ways to customize a workflow!

from shortcut-client-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.