LoginSignup
4
1

More than 3 years have passed since last update.

Qiita organizationページの更新をSlackで通知させる

Last updated at Posted at 2020-07-19

経緯

organization内でQiita更新の周知を手動で行っているので、自動化してみた。

Qiita organization

こちらの記事によると、一応RSSフィールドは存在しているようです。
URLはこのようになります。
http://qiita.com/organizations/<organization名>/activities.atom

SlackのRSSアプリ

SlackにはすでにRSSアプリが用意されています。
/feed subscribe http://qiita.com/organizations/<organization名>/activities.atom
を実行してみます。
image.png
「<organization名>の記事」と最近の記事が表示されます。
証明書がかくかくしかじか...と出たら、URLをhttpsにすると成功しました。
(再現できなくなったので、原因がわからないです)

/feed listで登録したRSSフィールドを確認できます。
image.png

取得してみた

image.png
確かに取得はできているのですが、著者が誰か全くわかりません!!!

今後やってみたいこと

atomファイルを見てみると、著者の情報は持っているです。
これをパースして、Slackへ投げられたら良いなと思っています。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1