Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Twitter Post On release #1825

Open
mlodic opened this issue Aug 7, 2023 · 13 comments
Open

Auto Twitter Post On release #1825

mlodic opened this issue Aug 7, 2023 · 13 comments
Labels
github_actions Pull requests that update Github_actions code

Comments

@mlodic
Copy link
Member

mlodic commented Aug 7, 2023

The actual Github Action is not working anymore. We should migrate to v2 APIs of Twitter

@shivam-Purohit
Copy link
Contributor

Hey, @mlodic can I take a look at this?

@mlodic
Copy link
Member Author

mlodic commented Aug 18, 2023

sure!

@shivam-Purohit
Copy link
Contributor

I dont think they have updated to the newer version of Twitter API. Should we search for other options? Like other actions? Or some manual way to do it

@mlodic
Copy link
Member Author

mlodic commented Aug 18, 2023

nope they don't. Right now there is almost nothing in the community regarding v2 of Twitter APIs because most of those APIs requires payment. However, it is free to publish a post so that integration could be done. It would be cool to create a new Github Action and publish it, I guess a lot of people could leverage it

@shivam-Purohit
Copy link
Contributor

Seems good! I will look more into how to publish Github Actions.

@shivam-Purohit
Copy link
Contributor

According to the docs we need to have a separate repository for the individual action.

I was thinking of using tweepy. It makes it lot easier to interact with the twitter API. I tested it with my own account for posting and it's working fine. Should we add a script to interact with the API and use that in the yml? Is this how we could approach this?

@shivam-Purohit
Copy link
Contributor

I was thinking of using tweepy. It makes it lot easier to interact with the twitter API.

seems unnecessary to install a library for a single task. It would make the action slower. We would directly interact with the API.

@mlodic
Copy link
Member Author

mlodic commented Aug 21, 2023

hey,

seems unnecessary to install a library for a single task. It would make the action slower. We would directly interact with the API.

Yeah but consider that this API will be executed rarely, only once the release is created. So it's not a real problem.
If that library works and makes things easier, you can try to use it

@shivam-Purohit
Copy link
Contributor

How do I approach this? I have a sample script ready and the actions sample code is also available. But we need a separate repo. Can you create a repo? and I will pull a draft PR for that.

@mlodic mlodic added github_actions Pull requests that update Github_actions code and removed beginner-friendly labels Aug 30, 2023
@shivam-Purohit
Copy link
Contributor

hey @mlodic, was it incorrect ? should I work on this or not ?

@mlodic
Copy link
Member Author

mlodic commented Sep 6, 2023

sorry, I created the repo: https://github.com/intelowlproject/twitter_post

@shivam-Purohit
Copy link
Contributor

thanks, I will try to push some draft code there this week.

@shivam-Purohit
Copy link
Contributor

@mlodic I have pushed some new changes. Can you have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update Github_actions code
Projects
None yet
Development

No branches or pull requests

2 participants