Giter Site home page Giter Site logo

Comments (3)

apex-omontgomery avatar apex-omontgomery commented on June 5, 2024

Steps taken:

  1. I created an application using the workspace settings
  2. Installed this on front-end repo
  3. Added scopes subscribe to opened and reopened
  4. I then exposed my local host using ngrok.
  5. Installed the github plugin, and created handlers for pull requests.
  6. Told github application to send verification request to ngrok_url/github.
  7. Included the verification token provided by the app
  8. And then I was able to test it which @kylemh saw by opening and closing issues.

If you have access to the operationcode settings you can view examples of these events here:
https://github.com/organizations/OperationCode/settings/apps/slack-bot-github/advanced

Going forward I'm going to create a test github repo for this within github that has a matching structure as front-end.

The next steps are:

  1. Take the incoming request, parse to get url of the pull request.
  2. Create a github service class to handle any outgoing requests to git
  3. Create authentication token that allows me to send these requests
  4. Find the modified files using the git api endpoint
  5. Parse the returned json to determine if any file meets our criteria
  6. If it does we do a certain action.

Going forward I need to get credentials for this token. Get examples of each step from the response, build some tests for these responses, and get some feedback.

@kylemh do you only want this to apply to new pull requests or re-opened ones?

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on June 5, 2024

@kylemh Can you please clarify whether this is still needed? If so, I'd like to talk about the specifics of the problem we're trying to solve.

from operationcode-pybot.

kylemh avatar kylemh commented on June 5, 2024

Don't think it's needed

from operationcode-pybot.

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.