Code Monkey home page Code Monkey logo

check-versions-action's Introduction

Check versions action

This action checks for missing or outdated versions of packages mentioned in the issue.

How it works

The action will check the issue content for name of packages and try to extract the version numbers. If some of the packages are missing version numbers or don't match the latest version numbers on npm, then it'll comment on the issue.

demo

Installation

Create a new workflow file (e.g. .github/workflows/check-versions.yml) and add the following configuration:

name: Check versions
on:
  issues:
    types: [opened]

jobs:
  check-versions:
    runs-on: ubuntu-latest
    steps:
      - uses: react-navigation/[email protected]
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          required-packages: |
            @react-navigation/native
          optional-packages: |
            @react-navigation/bottom-tabs
            @react-navigation/drawer
            @react-navigation/stack
          missing-versions-label: 'needs more info'

Make sure to change the packages list and the missing-versions-label.

Inputs

github-token (required)

The GITHUB_TOKEN secret. This is needed so that we can post comments on the issue.

required-packages

List of required packages to check for. The action will match the content of the issue against these package names to find mentioned versions. If the packages are not mentioned or their version is not mentioned in the issue, the action will mark them as missing.

optional-packages

List of optional packages to check for. The action will match the content of the issue against these package names to find mentioned versions. If there are packages present in the issue, but not mentioned in this list, then they will be ignored.

comment

Boolean to indicate whether the action should comment on the issue on finding missing or outdated versions. Defaults to true.

Set it to false if you want to use the action as a filter.

missing-versions-label

Label to add when missing or outdated versions are found.

Outputs

found

Packages and version numbers found. It'll be formatted like @react-navigation/[email protected],@react-navigation/[email protected].

outdated

Packages with outdated versions and their latest versions. It'll be formatted like @react-navigation/[email protected],@react-navigation/[email protected].

missing

Packages missing version numbers. It'll be formatted like @react-navigation/stack,@react-navigation/native.

check-versions-action's People

Contributors

dependabot[bot] avatar satya164 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.