Git Product home page Git Product logo

Comments (8)

phazonoverload avatar phazonoverload commented on August 28, 2024 2

Thanks for this - and don't worry this is a perfect issue: a compliment, an ask, an example. šŸ˜‰

This is actually completely possible if you use the package as I've split out the 'getting' of posts/comments and the 'adding to orbit' so in between those operations you can filter results. That functionality can also be baked-in so you can use it in the GitHub Actions template. I'm working on some other integrations over the next few days so I will swing round to this likely late next week.

from github-actions-templates.

jansenbob avatar jansenbob commented on August 28, 2024 1

Thanks for the prompt response. Looking forward to it.

from github-actions-templates.

phazonoverload avatar phazonoverload commented on August 28, 2024 1

This is now done! Take a look at the new Reddit README in this repo for instructions šŸ˜„

from github-actions-templates.

phazonoverload avatar phazonoverload commented on August 28, 2024 1

Hi @jansenbob. This filter works by looking for the combination of characters provided in the wider text, and does not support 'exclusions' such as "give me objectiv but not if there's an e on the end". This is a pretty specialised use-case so I won't be building it into this integration.

You can repeat the run step in your workflow with variations though to try and isolate just the word 'objectiv'. For example you do one for objectiv., one for objectiv (with a space at the end) and objectiv,. This isn't foolproof as you'll miss other punctuation such as quotes, semicolons, etc, but will do a better job of isolating the desired term that what there is at the moment.

Hope this helps!

from github-actions-templates.

phazonoverload avatar phazonoverload commented on August 28, 2024 1

Iā€™d welcome a pull request which supports regex for filtering šŸ˜„

from github-actions-templates.

jansenbob avatar jansenbob commented on August 28, 2024

Great stuff! thanks so much. I'll give it a try today and will let you know if I run into anything.

edit: Worked like a charm. Thanks again!

from github-actions-templates.

jansenbob avatar jansenbob commented on August 28, 2024

@phazonoverload so the results have been getting in an it's working, but it also triggers when someone writes objective instead of objectiv. Is there any way I can prevent that? like put it in backticks or something? Cheers.

here's how i've written it down:
- run: npx @orbit-love/reddit --posts --comments --hours=1 --subreddit "${{ matrix.subreddit }}" --filter="objectiv"

from github-actions-templates.

jansenbob avatar jansenbob commented on August 28, 2024

Thanks for getting back Kevin. Makes sense. One of our guys was talking about turning it into a regexp.

For now, I'll use your workaround. If we decide to build something ourselves i'll drop you a line.

Cheers.

from github-actions-templates.

Related Issues (5)

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.