GitXplorerGitXplorer
a

gajira-login

public
98 stars
81 forks
11 issues

Commits

List of commits on branch master.
Verified
0f47533e5518bdf59c3929fcfe1abd900b9a44b1

Update README.md to reflect maintenance status (#50)

jjoshkay10 committed a year ago
Verified
77a4213dadf33ab531bf546c2e1308e0bdc15b39

Fix links to related actions (#38)

ppaulschuberth committed 2 years ago
Unverified
40890b68ae12fed6b67ed1d0e31e9fd1912746ac

forgot to commit package.json

mmboudreau committed 2 years ago
Verified
45fd029b9f1d6d8926c6f04175aa80c0e42c9026

Fixing API versions to use 2 for backwards compatibility (#37)

mmboudreau committed 2 years ago
Verified
dda4bebb349e31c1fa7786a60511339a4b16e657

updating readme (#35)

mmboudreau committed 2 years ago
Verified
ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c

Regenerating build files (#34)

mmboudreau committed 2 years ago

README

The README file for this repository.

⚠️ This repository isn’t maintained anymore.

Jira Login

Used to store credentials for later use by other Jira Actions

Only supports Jira Cloud. Does not support Jira Server (hosted)

This is required by other actions like:

  • Transition - Transition a Jira issue
  • Comment - Add a comment to a Jira issue
  • Create - Create a new Jira issue
  • Find issue key - Search for an issue key in commit message, branch name, etc. This issue key is then saved and used by the next actions in the same workflow
  • TODO - Create a Jira issue for each TODO comment in committed code
  • CLI - Wrapped go-jira CLI for common Jira actions

Usage

An example workflow to create a Jira issue for each //TODO in code:

on: push

name: Jira Example

jobs:
  build:
    runs-on: ubuntu-latest
    name: Jira Example
    steps:
    - name: Login
      uses: atlassian/gajira-login@v3
      env:
        JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
        JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
        JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

    - name: Jira TODO
      uses: atlassian/gajira-todo@v3
      with:
        project: GA
        issuetype: Task
        description: Created automatically via GitHub Actions
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

More examples at gajira repository


Action Spec:

Enviroment variables

  • JIRA_BASE_URL - URL of Jira instance. Example: https://<yourdomain>.atlassian.net
  • JIRA_API_TOKEN - Access Token for Authorization. Example: HXe8DGg1iJd2AopzyxkFB7F2 (How To)
  • JIRA_USER_EMAIL - email of the user for which Access Token was created for . Example: human@example.com

Arguments

  • None

Writes fields to config file at $HOME/jira/config.yml

  • email - user email
  • token - api token
  • baseUrl - URL for Jira instance

Writes fields to CLI config file at $HOME/.jira.d/config.yml

  • endpoint - URL for Jira instance
  • login - user email

Writes env to file at $HOME/.jira.d/credentials

  • JIRA_API_TOKEN - Jira API token to use with CLI