Giter Site home page Giter Site logo

sitecite's Introduction

Logo sitecite Logo

Check if your cited sources are still up. ๐Ÿš€

Usage

You can now consume the action by referencing the v1 branch

uses: albertsmit/sitecite@v1
with:
  token: ${{ secrets.GITHUB_TOKEN }}
  urlfield: "link"
  textfield: "quote"
  path: "./data/quotes.json"
  failOnNotFound: true

Inputs

Input Type Required Default
token string true null
urlfield string true link
textfield string true quote
path string true ./sitecite.json
failOnNotFound boolean false false

Outputs

Output Type Description
failures boolean Wether any quote has been failed to be found
results array The actual results as found in the PR comment

Expected JSON format

The expected JSON format is as follows.
Sitecite looks for a quotes key in the root of the provided JSON.
Then, from that array, it takes the data from these keys:

  • URL key from your urlfield input/key.
  • Quote key from your textfield input/key.

Example:

{
  "quotes": [
    {
      "link": "https://policies.google.com/terms?hl=en",
      "quote": "respect the rights of others"
    },
    {
      "link": "https://www.apple.com/legal/internet-services/itunes/us/terms.html",
      "quote": "Please carefully read the information presented"
    }
  ]
}

This means that if, for instance, your:

  • urlfield is tomato, and
  • your textfield is textgoeshere

sitecite will look for this:

"quotes": [
  {
    "tomato": "https://www.url-goes-here.io",
    "textgoeshere": "Guess what goes here! Woohoo!"
  }
]

Special thanks

Credit where credit is due! Thanks for some functions โค๏ธ

sitecite's People

Contributors

albertsmit avatar dependabot[bot] avatar

Watchers

 avatar

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.