Skip to content

fix(reload_experience): Improve reload experience with a 404 page and a choice when there is changes not saved #31

fix(reload_experience): Improve reload experience with a 404 page and a choice when there is changes not saved

fix(reload_experience): Improve reload experience with a 404 page and a choice when there is changes not saved #31

Workflow file for this run

name: Add labels when pull request is opened
on: [pull_request, workflow_dispatch]
jobs:
add-label:
name: Add labels on pull request
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- run: |
if [[ "${{ github.head_ref }}" == chore/* ]]; then
LABEL="chore :construction_worker_man:"
else
if [[ "${{ github.head_ref }}" == feature/* ]]; then
LABEL="enhancement :rocket:"
else
if [[ "${{ github.head_ref }}" == feat/* ]]; then
LABEL="enhancement :rocket:"
else
if [[ "${{ github.head_ref }}" == fix/* ]]; then
LABEL="bug :bug:"
else
LABEL="other"
fi
fi
fi
fi
gh pr edit $ISSUE --add-label "$LABEL"
gh pr comment $ISSUE --body "Label $LABEL has been added to this pull request"
env:
GH_TOKEN: ${{ github.token }}
ISSUE: ${{ github.event.pull_request.html_url }}