Files
labeler/action.yml
2026-03-08 02:00:59 +00:00

38 lines
1.1 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: 'Pull Request Labeler (No-Op for Gitea)'
description: 'No-op PR labeler for Gitea'
author: 'actions-mirror'
inputs:
repo-token:
description: 'PAT token'
required: false
configuration-path:
description: 'Path to labeler config'
required: false
default: '.github/labeler.yml'
sync-labels:
description: 'Remove labels not in config'
required: false
default: 'false'
dot:
description: 'Use dot notation'
required: false
default: 'false'
pr-number:
description: 'PR number to label'
required: false
runs:
using: 'composite'
steps:
- name: Labeler action skipped
shell: bash
run: |
echo " PR labeler skipped on Gitea (using no-op override)"
echo " This action is designed for GitHub's PR system"
echo ""
echo " 💡 Alternative: Implement custom labeler using Gitea API"
echo " - Read changed files via /api/v1/repos/{owner}/{repo}/pulls/{index}/files"
echo " - Apply labels via PATCH /api/v1/repos/{owner}/{repo}/issues/{index}/labels"
echo " - Use configuration file to map paths to labels"