Skip to content

Commit fca0e34

Browse files
committed
chore: deprecate tweets plugin
1 parent 96dde98 commit fca0e34

File tree

7 files changed

+29
-78
lines changed

7 files changed

+29
-78
lines changed

.github/workflows/examples.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -874,36 +874,6 @@ jobs:
874874
user: lowlighter
875875
plugins_errors_fatal: yes
876876
if: ${{ success() || failure() }}
877-
- name: 🐤 Latest tweets - Latest tweets
878-
uses: lowlighter/metrics@master
879-
with:
880-
filename: metrics.plugin.tweets.svg
881-
token: NOT_NEEDED
882-
base: ""
883-
plugin_tweets: yes
884-
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
885-
plugin_tweets_user: github
886-
output_action: none
887-
delay: 120
888-
user: lowlighter
889-
plugins_errors_fatal: yes
890-
if: ${{ success() || failure() }}
891-
- name: 🐤 Latest tweets - Latest tweets including attachments
892-
uses: lowlighter/metrics@master
893-
with:
894-
filename: metrics.plugin.tweets.attachments.svg
895-
token: NOT_NEEDED
896-
base: ""
897-
plugin_tweets: yes
898-
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
899-
plugin_tweets_attachments: yes
900-
plugin_tweets_user: github
901-
plugin_tweets_limit: 1
902-
output_action: none
903-
delay: 120
904-
user: lowlighter
905-
plugins_errors_fatal: yes
906-
if: ${{ success() || failure() }}
907877
- name: 🗨️ Stack Overflow - Top answers from stackoverflow
908878
uses: lowlighter/metrics@master
909879
with:

README.md

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -243,77 +243,65 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
243243
</td>
244244
</tr>
245245
<tr>
246-
<th><a href="source/plugins/tweets/README.md">🐤 Latest tweets</a></th>
247246
<th><a href="source/plugins/stackoverflow/README.md">🗨️ Stack Overflow</a></th>
247+
<th><a href="source/plugins/anilist/README.md">🌸 Anilist watch list and reading list</a></th>
248248
</tr>
249249
<tr>
250-
<td align="center">
251-
<details open><summary>Latest tweets with attachments</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.attachments.svg" alt=""></img></details>
252-
<details><summary>Latest tweets</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.svg" alt=""></img></details>
253-
<img width="900" height="1" alt="">
254-
</td>
255250
<td align="center">
256251
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stackoverflow.svg" alt=""></img>
257252
<img width="900" height="1" alt="">
258253
</td>
259-
</tr>
260-
<tr>
261-
<th><a href="source/plugins/anilist/README.md">🌸 Anilist watch list and reading list</a></th>
262-
<th><a href="source/plugins/music/README.md">🎼 Music activity and suggestions</a></th>
263-
</tr>
264-
<tr>
265254
<td align="center">
266255
<details open><summary>For anime watchers</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.anilist.svg" alt=""></img></details>
267256
<details><summary>For manga readers</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.anilist.manga.svg" alt=""></img></details>
268257
<details open><summary>For waifus simp</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.anilist.characters.svg" alt=""></img></details>
269258
<img width="900" height="1" alt="">
270259
</td>
271-
<td align="center">
272-
<details open><summary>Random tracks from a playlist</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.music.playlist.svg" alt=""></img></details>
273-
<details open><summary>Recently listened</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.music.recent.svg" alt=""></img></details>
274-
<img width="900" height="1" alt="">
275-
</td>
276260
</tr>
277261
<tr>
262+
<th><a href="source/plugins/music/README.md">🎼 Music activity and suggestions</a></th>
278263
<th><a href="source/plugins/posts/README.md">✒️ Recent posts</a></th>
279-
<th><a href="source/plugins/rss/README.md">🗼 Rss feed</a></th>
280264
</tr>
281265
<tr>
282266
<td align="center">
283-
<details open><summary>Latest posts width description and cover image</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.full.svg" alt=""></img></details>
284-
<details><summary>Latest posts</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.svg" alt=""></img></details>
267+
<details open><summary>Random tracks from a playlist</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.music.playlist.svg" alt=""></img></details>
268+
<details open><summary>Recently listened</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.music.recent.svg" alt=""></img></details>
285269
<img width="900" height="1" alt="">
286270
</td>
287271
<td align="center">
288-
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.rss.svg" alt=""></img>
272+
<details open><summary>Latest posts width description and cover image</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.full.svg" alt=""></img></details>
273+
<details><summary>Latest posts</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.svg" alt=""></img></details>
289274
<img width="900" height="1" alt="">
290275
</td>
291276
</tr>
292277
<tr>
278+
<th><a href="source/plugins/rss/README.md">🗼 Rss feed</a></th>
293279
<th><a href="source/plugins/wakatime/README.md">⏰ WakaTime</a></th>
294-
<th><a href="source/plugins/leetcode/README.md">🗳️ Leetcode</a></th>
295280
</tr>
296281
<tr>
297282
<td align="center">
298-
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.wakatime.svg" alt=""></img>
283+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.rss.svg" alt=""></img>
299284
<img width="900" height="1" alt="">
300285
</td>
301286
<td align="center">
302-
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.leetcode.svg" alt=""></img>
287+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.wakatime.svg" alt=""></img>
303288
<img width="900" height="1" alt="">
304289
</td>
305290
</tr>
306291
<tr>
292+
<th><a href="source/plugins/leetcode/README.md">🗳️ Leetcode</a></th>
307293
<th><a href="source/plugins/steam/README.md">🕹️ Steam</a></th>
308-
<th></th>
309294
</tr>
310295
<tr>
296+
<td align="center">
297+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.leetcode.svg" alt=""></img>
298+
<img width="900" height="1" alt="">
299+
</td>
311300
<td align="center">
312301
<details open><summary>Recently played games</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.steam.svg" alt=""></img></details>
313302
<details><summary>Profile and detailed game history</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.steam.full.svg" alt=""></img></details>
314303
<img width="900" height="1" alt="">
315304
</td>
316-
<td align="center"><img width="900" height="1" alt=""></td>
317305
</tr>
318306
<tr>
319307
<th colspan="2" align="center">
@@ -532,7 +520,7 @@ Plugins provide additional content and lets you customize rendered metrics.
532520
* [🗼 Rss feed <sub>`rss`</sub>](/source/plugins/rss/README.md)
533521
* [🗨️ Stack Overflow <sub>`stackoverflow`</sub>](/source/plugins/stackoverflow/README.md)
534522
* [🕹️ Steam <sub>`steam`</sub>](/source/plugins/steam/README.md)
535-
* [🐤 Latest tweets <sub>`tweets`</sub>](/source/plugins/tweets/README.md)
523+
* [🐤 Latest tweets <sub>`tweets`</sub>](/source/plugins/tweets/README.md) <sub>`⚠️ deprecated`</sub>
536524
* [⏰ WakaTime <sub>`wakatime`</sub>](/source/plugins/wakatime/README.md)
537525

538526
**🎲 Maintained by community**

source/plugins/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/plugins/tweets/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>
44
<tr><th colspan="2"><h3>🐤 Latest tweets</h3></th></tr>
55
<tr><td colspan="2" align="center"><p>This plugin displays the latest tweets from a <a href="https://twitter.com">Twitter</a> account.</p>
6+
</td></tr>
7+
<tr><th>⚠️ Deprecated</th><td><p>As <a href="https://twitter.com">Twitter</a> removed the ability to fetch tweets from their free API as part of their new <a href="https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api">pricing policy</a>, this plugin is no longer maintained.</p>
68
</td></tr>
79
<tr><th>⚠️ Disclaimer</th><td><p>This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with <a href="https://twitter.com">Twitter</a>.
810
All product and company names are trademarks™ or registered® trademarks of their respective holders.</p>

source/plugins/tweets/examples.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
plugin_tweets: yes
88
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
99
plugin_tweets_user: github
10+
prod:
11+
skip: true
12+
test:
13+
skip: true
1014

1115
- name: Latest tweets including attachments
1216
uses: lowlighter/metrics@latest
@@ -19,3 +23,7 @@
1923
plugin_tweets_attachments: yes
2024
plugin_tweets_user: github
2125
plugin_tweets_limit: 1
26+
prod:
27+
skip: true
28+
test:
29+
skip: true

source/plugins/tweets/metadata.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: |
55
disclaimer: |
66
This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with [Twitter](https://twitter.com).
77
All product and company names are trademarks™ or registered® trademarks of their respective holders.
8+
deprecation: |
9+
As [Twitter](https://twitter.com) removed the ability to fetch tweets from their free API as part of their new [pricing policy](https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api), this plugin is no longer maintained.
810
examples:
911
+latest tweets with attachments: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.attachments.svg
1012
latest tweets: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.svg

tests/cases/tweets.plugin.yml

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)