GithubHelp home page GithubHelp logo

jira-auto-assign's Introduction

JIRA auto assign

:octocat: A fast ๐Ÿ”ฅ TypeScript GitHub Action that will auto-assign JIRA issue from PR github action code style: prettier

Example usage

uses: cyrus-za/jira-auto-assign@master
with:
  issue-key: PRJ-123
  jira-token: ${{ secrets.JIRA_TOKEN }}
  github-token: ${{ secrets.GITHUB_TOKEN }}
  jira-domain: your-domain.atlassian.net

Inputs

issue-key

Required The JIRA ticket ID e.g. PRJ-123

jira-domain

Required The subdomain of JIRA cloud that you use to access it. Ex: "your-domain.atlassian.net".

jira-token

Required Token used to update Jira Issue. Check below for more details on how to generate the token.

github-token

Required Github Token used to fetch PR info. Defaults to {{ secrets.GITHUB_TOKEN }}

Outputs

None

jira-token

Since tokens are private, we suggest adding them as GitHub secrets.

The Jira token is used to fetch issue information via the Jira REST API. To get the token:-

  1. Generate an API token via JIRA
  2. Create the encoded token in the format of base64Encode(<username>:<api_token>). For example, if the username is [email protected] and the token is 954c38744be9407ab6fb, then [email protected]:954c38744be9407ab6fb needs to be base64 encoded to form Y2lAZXhhbXBsZS5jb206OTU0YzM4NzQ0YmU5NDA3YWI2ZmI=
  3. The above value (in this example Y2lAZXhhbXBsZS5jb206OTU0YzM4NzQ0YmU5NDA3YWI2ZmI=) needs to be added as the JIRA_TOKEN secret in your GitHub project.

Note: The user should have the required permissions (mentioned under GET Issue).

Build

yarn install

yarn build

We package everything to a single file with Vercel's ncc. Outputs to dist/index.js.

Related Reading

jira-auto-assign's People

Contributors

cyrus-za avatar renovate-bot avatar

Stargazers

Mikko Kokkonen avatar

Watchers

 avatar

jira-auto-assign's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @types/node to v14.18.63
  • chore(deps): update dependency @vercel/ncc to v0.38.1
  • chore(deps): update dependency eslint to v7.32.0
  • chore(deps): update dependency eslint-config-prettier to v8.10.0
  • chore(deps): update dependency prettier to v2.8.8
  • chore(deps): update dependency typescript to v4.9.5
  • fix(deps): update dependency axios to ^0.28.0
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency typescript to v5
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency @actions/github to v6
  • fix(deps): update dependency @octokit/rest to v21
  • fix(deps): update dependency axios to v1
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/checkout v2
.github/workflows/pr-lint.yml
npm
package.json
  • @actions/core ^1.2.6
  • @actions/github ^4.0.0
  • @octokit/rest ^18.3.5
  • axios ^0.21.1
  • @types/node 14.14.34
  • @typescript-eslint/eslint-plugin 4.15.2
  • @typescript-eslint/parser 4.15.2
  • @vercel/ncc 0.27.0
  • eslint 7.22.0
  • eslint-config-prettier 8.1.0
  • prettier 2.2.1
  • typescript 4.2.2

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