Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
befcd3a
chore(ci): add workflow to link PRs to Jira tickets
MohamadJaara Nov 13, 2025
5f56e3b
remove old action
MohamadJaara Nov 13, 2025
14b38ea
fix the action version
MohamadJaara Nov 13, 2025
b65ffcd
chore(ci): update jira-lint action version and add PR threshold
MohamadJaara Nov 13, 2025
cd75ac5
chore(ci): update Jira linking workflow to extract ticket ID and crea…
MohamadJaara Nov 13, 2025
e80935a
chore(ci): use reusable action
MohamadJaara Nov 13, 2025
0b8e66f
disable action
MohamadJaara Nov 13, 2025
25e3e38
use a forked action
MohamadJaara Nov 13, 2025
4ce969e
use a forked action
MohamadJaara Nov 13, 2025
ad8fdd2
use a forked action
MohamadJaara Nov 13, 2025
b916986
skip-ticket-title
MohamadJaara Nov 13, 2025
2d621a6
skip-ticket-title
MohamadJaara Nov 13, 2025
2477a20
Merge remote-tracking branch 'origin/develop' into mo/ci/new-link-jir…
MohamadJaara Nov 17, 2025
0a79d80
feat(ci): add version retrieval step for Jira action
MohamadJaara Nov 17, 2025
3923ff7
checkout feat/option-to-fail-based-on-fix-version
MohamadJaara Nov 17, 2025
dab2451
Merge branch 'develop' into mo/ci/new-link-jira-action
MohamadJaara Nov 17, 2025
7ebe1bc
use the org base repo action
MohamadJaara Nov 20, 2025
1f722cd
fix the version extraction command
MohamadJaara Nov 20, 2025
bb05a6c
fix the version extraction command
MohamadJaara Nov 20, 2025
3b3eacf
update secret names
MohamadJaara Nov 20, 2025
f2be92d
Merge branch 'develop' into mo/ci/new-link-jira-action
MohamadJaara Nov 20, 2025
21a275c
Merge branch 'develop' into mo/ci/new-link-jira-action
MohamadJaara Jan 19, 2026
1ecb7e0
use commit hash for the workflow
MohamadJaara Jan 19, 2026
4a6fbb3
Merge branch 'develop' into mo/ci/new-link-jira-action
MohamadJaara Jan 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/jira-link-pr.yml-disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Link PR to Jira Ticket
on:
pull_request:
types: [opened, edited, synchronize]

permissions:
contents: read
pull-requests: read

jobs:
link-jira:
uses: mohamadjaara/jira-description-action@master
with:
jira-base-url: https://wearezeta.atlassian.net
jira-ticket-regex: '[A-Z]+-[0-9]+'
skip-actors: 'dependabot[bot],AndroidBob'
skip-branches: '^(production-release|main|master|release\/v\d+)$'
repository-owner-check: 'wireapp'
secrets:
jira-token: ${{ secrets.JIRA_TOKEN }}
33 changes: 20 additions & 13 deletions .github/workflows/jira-lint-and-link.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
name: Link and Lint PR with Jira Ticket Number
on:
merge_group:
pull_request:
types: [opened, edited, synchronize]

permissions:
contents: read
pull-requests: write

jobs:
add-jira-description:
get-version:
runs-on: ubuntu-latest
# Run only if the PR is not from a Fork / external contributor
if: ${{ github.repository_owner == 'wireapp' }}
outputs:
version_name: ${{ steps.version.outputs.version_name }}
steps:
- name: Check for Dependabot
if: github.actor == 'dependabot[bot]' || github.actor == 'AndroidBob'
run: echo "PR created by Dependabot or AndroidBob, exiting successfully" && exit 0
- name: Get version name from source
id: version
run: |
VERSION=$(curl -s https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref || github.ref_name }}/build-logic/plugins/src/main/kotlin/AndroidCoordinates.kt | grep 'const val versionName' | sed -E 's/.*"([^"]+)".*/\1/')
echo "version_name=$VERSION" >> $GITHUB_OUTPUT

- uses: cakeinpanic/jira-description-action@v0.9.0
name: jira-description-action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-token: ${{ secrets.JIRA_TOKEN }}
jira-base-url: https://wearezeta.atlassian.net
skip-branches: '^(production-release|main|master|release\/v\d+)$' #optional
fail-when-jira-issue-not-found: true
add-jira-description:
needs: get-version
uses: wireapp/.github/.github/workflows/jira-link-pr-reusable.yml@9dc8b7e52fc073667a6b8afda5057fdb2880e86c
with:
skip-branches: '^(production-release|main|master|release\/v\d+)$'
skip-actors: 'dependabot[bot],AndroidBob'
version-name: ${{ needs.get-version.outputs.version_name }}
fix-version-regex: '(?:^|[\s\-_])(v?\d+\.\d+(?:\.\d+)?(?:[\-\+][\w\.\-]*)?)'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-token: ${{ secrets.JIRA_TOKEN }}