Skip to content

feat(frontend): Expandable stake provider data #61903

feat(frontend): Expandable stake provider data

feat(frontend): Expandable stake provider data #61903

Workflow file for this run

name: 'PR Checks'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
- labeled
merge_group:
permissions: {}
jobs:
check-pr-title:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
env:
TITLE: ${{ github.event.pull_request.title }}
steps:
- name: 'Check PR Title'
if: ${{ github.event_name != 'merge_group' }}
run: |
if [[ "$TITLE" =~ ^(feat|fix|chore|build|ci|docs|style|refactor|perf|test)(\([-a-zA-Z0-9,]+\))\!?\: ]]; then
echo "PR Title passes"
else
echo "PR Title does not match conventions:"
echo " verb(scope): description"
echo "or for a breaking change:"
echo " verb(scope)!: description"
echo "For scope, please use the affected canister name(s) or 'ci' for infrastructure changes."
exit 1
fi
check-pr-description:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
env:
DESCRIPTION: ${{ github.event.pull_request.body }}
steps:
- name: 'Check PR Description for Jira/Atlassian Links'
if: ${{ github.event_name != 'merge_group' }}
run: |
if [[ "$DESCRIPTION" =~ https:\/\/[a-zA-Z0-9]*\.(atlassian|jira)\.[a-z]{2,3} ]]; then
echo "PR Description contains a link to Jira or Atlassian, which is not allowed."
exit 1
else
echo "PR Description passes"
fi
check-empty-pr:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
contents: read
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.app-token.outputs.token }}
persist-credentials: false
- name: Fetch base branch
run: |
git fetch origin "$BASE_REF:$BASE_REF"
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
- name: 'Check for changed files'
if: ${{ github.event_name != 'merge_group' }}
id: file_check
run: |
CHANGED_FILES=$(git diff "origin/$BASE_REF" HEAD --name-only | wc -l)
echo "Changed files: $CHANGED_FILES"
if [ "$CHANGED_FILES" -eq "0" ]; then
echo "No changes detected in PR!"
exit 1
fi
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
pr-checks-pass:
if: always()
needs: ['check-pr-title', 'check-pr-description', 'check-empty-pr']
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- uses: ./.github/actions/needs_success
with:
needs: '${{ toJson(needs) }}'