Comments (8)
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.
Thanks for the prompt response. Looking forward to it.
from github-actions-templates.
This is now done! Take a look at the new Reddit README in this repo for instructions š
from github-actions-templates.
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.
Iād welcome a pull request which supports regex for filtering š
from github-actions-templates.
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.
@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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-actions-templates.