Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sirredbeard/newwslissues
Twitter bot powered by GitHub Actions that Tweets new issues filed in microsoft/WSL.
https://github.com/sirredbeard/newwslissues
githubactions twitter-bot wsl
Last synced: 8 days ago
JSON representation
Twitter bot powered by GitHub Actions that Tweets new issues filed in microsoft/WSL.
- Host: GitHub
- URL: https://github.com/sirredbeard/newwslissues
- Owner: sirredbeard
- License: apache-2.0
- Created: 2023-10-24T18:52:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T02:19:06.000Z (about 1 year ago)
- Last Synced: 2025-01-02T07:53:48.316Z (9 days ago)
- Topics: githubactions, twitter-bot, wsl
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# newwslissues
This repository is a GitHub Action and Python script that checks for all new issues created in [microsoft/WSL](https://github.com/microsoft/wsl) in the last hour and tweets them at [@New_WSL_Issues](https://twitter.com/New_Wsl_Issues).
[check-issues.yaml](https://github.com/sirredbeard/newwslissues/blob/main/.github/workflows/check-issues.yaml) runs hourly, it:
* Installs Python
* Updates pip
* Installs [Tweepy](https://www.tweepy.org/)
* Goes back in time an hour via flux capacitance as-a-service
* Requests details on all new issues in microsoft/WSL created
* Extracts the title and URL of each
* Passes those to tweet.py as options
* [tweet.py](https://github.com/sirredbeard/newwslissues/blob/main/tweet.py):
* Grabs all the authentication tokens required for Twitter, stored as GitHub secrets, as environmental variables
* Grabs anything passed after tweet.py, in this case, the title and URL of each issue created
* Tweets it
* Repeats that for each new issue, sleeping a bit each time to avoid rate limiting