Initialize with override content
This commit is contained in:
37
action.yml
Normal file
37
action.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
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"
|
||||||
Reference in New Issue
Block a user