Skip to content

Commit

Permalink
[DEVOPS-269] Check if Jira Linter has already posted a missing Jira i…
Browse files Browse the repository at this point in the history
…ssue key comment before running (#68)

<details open>
<summary><a href="https://amuniversal.atlassian.net/browse/DEVOPS-269"
title="DEVOPS-269" target="_blank">DEVOPS-269</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
<td>Research alternatives or fixes for Jira linter GitHub action</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Improvement"
src="https://amuniversal.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10310?size=medium"
/>
        Improvement
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>New</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
do not remove this marker as it will break action-jira-linter's
functionality.
  added_by_jira_lint
-->
---

<!-- Please make sure you read the contribution guidelines and then fill
out the blanks below.

Please format the PR title appropriately based on the type of change:
  [JIRA-XXX]: <description>
-->

## Description

- Check if Jira Linter has already posted a missing Jira issue key
comment before running

## Related Links

<!-- List any links related to this pull request here

Replace "JIRA-XXX" with the your Jira issue key -->

- Jira Issue: DEVOPS-269
- Testing environment: 
- [Jira Linter Workflow
Run](https://github.com/Andrews-McMeel-Universal/reusable_workflows-test/actions/runs/6579557572/job/17875700269)
- [Pull
Request](Andrews-McMeel-Universal/reusable_workflows-test#72)
  • Loading branch information
ebronson68 authored Oct 19, 2023
1 parent baf6100 commit ceadb7b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/jira-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ jobs:
name: Run Jira Lint
runs-on: ubuntu-latest
steps:
- name: Find Comment
uses: peter-evans/find-comment@v2
id: comment
with:
issue-number: ${{ github.event.number }}
body-includes: A JIRA Issue ID is missing from your branch name!
direction: last

- uses: jira-tools/action-jira-linter@v1.0.1
if: ${{ ! steps.comment.outputs.comment-body }}
name: Jira Lint
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ceadb7b

Please sign in to comment.