diff --git a/.github/label-pr.json b/.github/label-pr.json index 4d04264f01..4a1133439e 100644 --- a/.github/label-pr.json +++ b/.github/label-pr.json @@ -30,8 +30,8 @@ "authenticator/" ], "t:enhancement": [ - "fido2_privileged_community.json", - "fido2_privileged_google.json" + "app/src/main/assets/fido2_privileged_community.json", + "app/src/main/assets/fido2_privileged_google.json" ], "t:ci": [ ".github/", diff --git a/.github/release.yml b/.github/release.yml index 271948a164..db3c879ca5 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -26,6 +26,7 @@ changelog: - t:ci - t:docs - t:misc + - '*' - title: 'đŸ“Ļ Dependency Updates' labels: - dependencies diff --git a/.github/scripts/label-pr.py b/.github/scripts/label-pr.py index 2d765cf416..9e110e4144 100644 --- a/.github/scripts/label-pr.py +++ b/.github/scripts/label-pr.py @@ -131,7 +131,7 @@ def label_filepaths(changed_files: list[str], path_patterns: dict) -> list[str]: labels_to_apply.remove("app:shared") if not labels_to_apply: - print("::warning::No matching file paths found, no labels applied.") + print("::notice::No matching file paths found.") return list(labels_to_apply) @@ -151,7 +151,7 @@ def label_title(pr_title: str, title_patterns: dict) -> list[str]: break if not labels_to_apply: - print("::warning::No matching title patterns found, no labels applied.") + print("::notice::No matching title patterns found.") return list(labels_to_apply) @@ -222,15 +222,15 @@ def main(): if all_labels: labels_str = ', '.join(sorted(all_labels)) if mode == "add": - print(f"đŸˇī¸ Adding labels: {labels_str}") + print(f"::notice::đŸˇī¸ Adding labels: {labels_str}") if not args.dry_run: gh_add_labels(pr_number, list(all_labels)) else: - print(f"đŸˇī¸ Replacing labels with: {labels_str}") + print(f"::notice::đŸˇī¸ Replacing labels with: {labels_str}") if not args.dry_run: gh_replace_labels(pr_number, list(all_labels)) else: - print("â„šī¸ No matching patterns found, no labels applied.") + print("::warning::No matching patterns found, no labels applied.") print("✅ Done") diff --git a/.github/workflows/sdlc-label-pr.yml b/.github/workflows/sdlc-label-pr.yml index 9602dd7630..de2fdc187d 100644 --- a/.github/workflows/sdlc-label-pr.yml +++ b/.github/workflows/sdlc-label-pr.yml @@ -1,6 +1,8 @@ name: SDLC / Label PR by Files on: + pull_request: + types: [opened, synchronize] workflow_dispatch: inputs: pr-number: @@ -19,6 +21,9 @@ on: type: boolean default: false +env: + _PR_NUMBER: ${{ github.event.pull_request.number || inputs.pr-number }} + jobs: label-pr: name: Label PR by Changed Files @@ -37,7 +42,6 @@ jobs: id: label-mode env: GH_TOKEN: ${{ github.token }} - _PR_NUMBER: ${{ inputs.pr-number }} _PR_USER: ${{ github.event.pull_request.user.login }} _IS_FORK: ${{ github.event.pull_request.head.repo.fork }} run: | @@ -71,7 +75,6 @@ jobs: - name: Label PR based on changed files env: GH_TOKEN: ${{ github.token }} - _PR_NUMBER: ${{ inputs.pr-number || github.event.pull_request.number }} _LABEL_MODE: ${{ inputs.mode && format('--{0}', inputs.mode) || steps.label-mode.outputs.label_mode }} _DRY_RUN: ${{ inputs.dry-run == true && '--dry-run' || '' }} run: |