Coder Social home page Coder Social logo

jira-issue-checks-action's Introduction

JIRA Issue Checks Action

What does it do?

This action performs the following checks for the JIRA Issue provided in the input

Checks Performed:

  • Is the JIRA Issue assigned?
  • Is the JIRA Issue in the "In Progress" state?
  • Is the Sprint value updated?
  • Is the Fix Version updated?
  • Is the time logged?

Inputs

jira-issue

Required The JIRA issue number in the format XYZ-123. Default null

jira-token

Required The JIRA token. To set this token - form the string <jira-email-address>:<jira-api-token> and Base64 encode it. For example [email protected]:7h1s1smyJIRAt0k3n

ghtoken

Required The GitHub token Default null

jira-domain

Required The JIRA domain. Example: https://<company>.atlassian.net

Outputs

jira-assigned - Issue Assigned?

jira-sprint - Sprint value updated?

jira-fixversion - Fix version updated?

jira-timelogging - Time Logged?

jira-status - Issue Status is In Progress?

result - True if all checks passed.

Example usage

uses: rohitnb/jira-issue-checks-action@v1
with:
  jira-issue: 'XYZ-123'
  jira-token: ${{secrets.JIRA_TOKEN}}
  ghtoken: ${{secrets.GITHUB_TOKEN}}
  jira-domain: ${{secrets.JIRA_URL}}

Demo workflow file for Pull Requests

name: 'JIRA Issue Checks'
on: 
  pull_request:
    types: [opened,edited]

jobs:
  jira-issue-checks:
    runs-on: ubuntu-latest
    name: JIRA Issue checks
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Check if JIRA Issues meet policies
        id: jira-checks
        uses: rohitnb/jira-issue-checks-action@v2
        with:
          jira-issue: 'INTEG-2'
          jira-token: ${{secrets.JIRA_TOKEN}}
          ghtoken: ${{secrets.GITHUB_TOKEN}}
          jira-domain: ${{secrets.JIRA_URL}}
      - name: JIRA Issue Checks Results
        run: echo "JIRA Issue Checks Results - ${{ steps.jira-checks.outputs.result }}"

jira-issue-checks-action's People

Contributors

rohitnb avatar

Stargazers

 avatar

Forkers

muraliv21

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.