chore: migrate auth, home, and conversation screens to Compose Destinations 2.x (part-3) [WPB-20393] #21956
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Link and Lint PR with Jira Ticket Number | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| merge_group: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| get-version: | |
| runs-on: ubuntu-latest | |
| # Run only if the PR is not from a Fork / external contributor | |
| if: ${{ github.event_name == 'pull_request' && github.repository_owner == 'wireapp' }} | |
| outputs: | |
| version_name: ${{ steps.version.outputs.version_name }} | |
| steps: | |
| - 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 | |
| add-jira-description: | |
| if: ${{ github.event_name == 'pull_request' }} | |
| needs: get-version | |
| uses: wireapp/.github/.github/workflows/jira-link-pr-reusable.yml@b00595235816b9a935c7463b990fae39864903a5 | |
| 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 }} | |
| add-jira-description-merge: | |
| if: ${{ github.event_name == 'merge_group' }} | |
| name: add-jira-description | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Skip Jira check on merge queue | |
| run: echo "Skipping Jira check on merge queue" |