Git Product home page Git Product logo

esa_archiver's Introduction

EsaArchiver

CircleCI

esa.ioで作成し、最終更新日から一定期間が経過した記事をアーカイブするアプリケーションです。

Features

.envESA_ARCHIVE_ELAPSED_DAYSに、経過した日数を設定することで、記事を自動でアーカイブすることができます。

経過した月数と、アーカイブされる記事の最終更新月の関係は以下の表のようになります。 (例では2018年04月01日を当日とする。)

経過した月数 アーカイブされる記事の作成日
31 2018年3月1日
60 2018年1月31日

また、.envESA_ARCHIVE_MESSAGEには、記事更新時のメッセージを設定することができます。

このメッセージに[skip notice]を追加すると記事の自動アーカイブ時に記事の持ち主に通知されなくなります。

How to Run

Run locally

$ git clone [email protected]:Pegasus204/esa_archiver.git
$ cd esa_archiver
$ bundle install
$ cp .env.sample .env
$ vi .env
// setup environment variable

でローカル環境構築を行ってください。

bundle exec thor posts:archiveを実行することで記事がアーカイブされます。

毎日実行されるように設定することで、指定した日数経過した記事を自動アーカイブすることができます。

Test

$ bundle exec rspec

でテストを実行できます。

esa_archiver's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar mergery[bot] avatar pranc1ngpegasus avatar renovate-bot avatar snyk-bot avatar

Stargazers

 avatar

Forkers

misoca

esa_archiver's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.