ci: add backport label on PR creation (#365)

* ci: improve backport workflow
* chore: ignore tmp files
* ci: add exact match
* ci: target main branch
* ci: rewrite workflows

---------

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
Yiya Chen
2025-07-02 11:39:02 +08:00
committed by GitHub
parent dc683a50a4
commit 7fb6d44208
4 changed files with 103 additions and 39 deletions
-39
View File
@@ -1,43 +1,4 @@
pull_request_rules:
- name: Automatically open backport PR to release-harvester-v1.6
conditions:
- base=main
actions:
backport:
branches:
- "release-harvester-v1.6"
assignees:
- "{{ author }}"
labels:
- "v1.6 backport PR"
pull_request_rules:
- name: Automatically open backport PR to release-harvester-v1.5
conditions:
- base=main
- label="require backport 1.5"
actions:
backport:
branches:
- "release-harvester-v1.5"
assignees:
- "{{ author }}"
labels:
- "v1.5 backport PR"
- name: Automatically open backport PR to release-harvester-v1.0
conditions:
- base=main
- label="require backport 1.0"
actions:
backport:
branches:
- "release-harvester-v1.0"
assignees:
- "{{ author }}"
labels:
- "v1.0 backport PR"
- name: Ask to resolve conflict
conditions:
- conflict