Skip to content

feat(smoke-tests): test updating from the latest release to the newly packaged app COMPASS-8532 COMPASS-8535 #16027

feat(smoke-tests): test updating from the latest release to the newly packaged app COMPASS-8532 COMPASS-8535

feat(smoke-tests): test updating from the latest release to the newly packaged app COMPASS-8532 COMPASS-8535 #16027

# Prepare and validate a PR for auto-generated release notes:
# - if the title starts with `feat` or `fix` adds the label (`feat`, `fix`) used
# by the release notes to include the PR in the appropriate section.
# - each PR that is a `feat` or `fix` must also include either a
# `feature flagged`, `no release notes` or `release notes` label, PRs that have
# the `feature flagged` or `no release notes` label will not be included in
# the release notes.
#
name: Release Notes - Labels
on:
pull_request:
types: [opened, edited, labeled, unlabeled, synchronize]
permissions:
pull-requests: write # to add and remove labels
jobs:
label:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: remove label not matching title - fix
if: |
startsWith(github.event.pull_request.title, 'fix:') ||
startsWith(github.event.pull_request.title, 'fix(')
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # 1.3.0
with:
labels: feat
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: remove label not matching title - feat
if: |
startsWith(github.event.pull_request.title, 'feat:') ||
startsWith(github.event.pull_request.title, 'feat(')
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # 1.3.0
with:
labels: fix
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: add label based on title - fix
if: |
startsWith(github.event.pull_request.title, 'fix:') ||
startsWith(github.event.pull_request.title, 'fix(')
uses: actions-ecosystem/action-add-labels@bd52874380e3909a1ac983768df6976535ece7f8 # 1.1.0
with:
labels: fix
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: add label based on title - feat
if: |
startsWith(github.event.pull_request.title, 'feat:') ||
startsWith(github.event.pull_request.title, 'feat(')
uses: actions-ecosystem/action-add-labels@bd52874380e3909a1ac983768df6976535ece7f8 # 1.1.0
with:
labels: feat
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # 5.5.0
with:
mode: maximum
count: 0
labels: "wip, work in progress, work-in-progress"
- uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # 5.5.0
if: |
startsWith(github.event.pull_request.title, 'fix:') ||
startsWith(github.event.pull_request.title, 'fix(') ||
startsWith(github.event.pull_request.title, 'feat:') ||
startsWith(github.event.pull_request.title, 'feat(')
with:
mode: minimum
count: 1
labels: "feature flagged, no release notes, release notes"