Skip to content

IEP-1707: workflow to sync the pr link to jira issue as a comment#1399

Merged
alirana01 merged 2 commits intomasterfrom
IEP-1707
Feb 13, 2026
Merged

IEP-1707: workflow to sync the pr link to jira issue as a comment#1399
alirana01 merged 2 commits intomasterfrom
IEP-1707

Conversation

@alirana01
Copy link
Collaborator

@alirana01 alirana01 commented Feb 13, 2026

workflow to sync the pr link to jira issue as a comment

Summary by CodeRabbit

  • Chores
    • Added automated workflow to link pull requests with related issues, streamlining development tracking and improving team collaboration visibility.

@alirana01 alirana01 self-assigned this Feb 13, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

A new GitHub Actions workflow automates posting PR links to Jira issues. The workflow extracts Jira issue keys from PR titles using a regex pattern, then conditionally posts comments to the corresponding Jira issues using authenticated API calls, handling errors gracefully.

Changes

Cohort / File(s) Summary
Jira PR Integration Workflow
.github/workflows/jira-pr-comment.yml
New GitHub Actions workflow that extracts Jira issue keys from PR titles and automatically posts PR links to corresponding Jira issues. Includes support for Bearer token and Basic authentication, with error handling that warns on API failures without blocking the workflow.

Sequence Diagram

sequenceDiagram
    actor GH as GitHub
    participant WF as GitHub Actions
    participant Jira as Jira API
    
    GH->>WF: PR opened/reopened event
    WF->>WF: Extract issue key from PR title<br/>(regex: IEP-12345)
    WF->>WF: Check if key found
    alt Key Found
        WF->>WF: Build Authorization header<br/>(token or basic auth)
        WF->>Jira: POST /issue/{key}/comment<br/>with PR URL
        Jira-->>WF: HTTP response
        alt 2xx Status
            WF->>WF: Log success
        else Non-2xx Status
            WF->>WF: Emit warning
        end
    else Key Not Found
        WF->>WF: Skip to completion
    end
Loading

Estimated Code Review Effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Suggested Reviewers

  • sigmaaa

Poem

🐰 A workflow hops through GitHub's door,
Jira issues linked, you'll ask for more!
With keys extracted, comments flow,
PR updates make the issues glow! ✨

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch IEP-1707

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@alirana01 alirana01 closed this Feb 13, 2026
@alirana01 alirana01 reopened this Feb 13, 2026
@alirana01 alirana01 merged commit 136fcf0 into master Feb 13, 2026
6 of 9 checks passed
@alirana01 alirana01 deleted the IEP-1707 branch February 13, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant