This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch release-0.2
in repository https://gitbox.apache.org/repos/asf/flink-agents.git
The following commit(s) were added to refs/heads/release-0.2 by this push:
new bd1807fb [infra] Use GHA workflow triggers to run pull request labeler
workflow
bd1807fb is described below
commit bd1807fb23ea7af35165465c8a116e0d19747f60
Author: youjin <[email protected]>
AuthorDate: Thu Mar 19 14:41:57 2026 +0800
[infra] Use GHA workflow triggers to run pull request labeler workflow
---
.github/workflows/document_bot.yml | 44 ----------------------
.../workflows/{labeler.yml => pr_edit_trigger.yml} | 22 +++++------
.../{labeler.yml => workflows/pr_open_trigger.yml} | 24 ++++++------
3 files changed, 23 insertions(+), 67 deletions(-)
diff --git a/.github/workflows/document_bot.yml
b/.github/workflows/document_bot.yml
deleted file mode 100644
index bf4a8e73..00000000
--- a/.github/workflows/document_bot.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-name: "Documentation Bot"
-
-on:
- pull_request_target:
- types:
- - opened
- - edited
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
- cancel-in-progress: true
-
-jobs:
- label:
- if: (github.repository == 'apache/flink-agents') &&
(github.event.pull_request.state == 'open')
- permissions:
- pull-requests: write
- runs-on: ubuntu-24.04
- steps:
- - name: Labeling
- uses:
apache/pulsar-test-infra/docbot@8ff059e49446fff5bb9baf2de4a12bc05c2d57ab
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- LABEL_WATCH_LIST: 'doc-needed,doc-not-needed,doc-included'
- LABEL_MISSING: 'doc-label-missing'
diff --git a/.github/workflows/labeler.yml
b/.github/workflows/pr_edit_trigger.yml
similarity index 76%
rename from .github/workflows/labeler.yml
rename to .github/workflows/pr_edit_trigger.yml
index 33c02afc..3b3e00dc 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/pr_edit_trigger.yml
@@ -15,19 +15,17 @@
# specific language governing permissions and limitations
# under the License.
-name: "Pull Request Labeler"
-
+name: PR-Edit-Trigger
on:
- pull_request_target:
- types:
- - opened
+ pull_request:
+ types: [edited]
+ branches:
+ - main
+ - release-*
+
jobs:
- triage:
- if: (github.repository == 'apache/flink-agents')
- permissions:
- contents: read
- pull-requests: write
- issues: write
+ label:
runs-on: ubuntu-latest
steps:
- - uses: actions/labeler@v5
\ No newline at end of file
+ - name: "Do nothing. Just triggers corresponding workflow."
+ run: echo
diff --git a/.github/labeler.yml b/.github/workflows/pr_open_trigger.yml
similarity index 66%
rename from .github/labeler.yml
rename to .github/workflows/pr_open_trigger.yml
index 439faae4..99a41904 100644
--- a/.github/labeler.yml
+++ b/.github/workflows/pr_open_trigger.yml
@@ -15,15 +15,17 @@
# specific language governing permissions and limitations
# under the License.
-# Add 'priority/major' label to any changes within the entire repository
-priority/major:
- - changed-files:
- - any-glob-to-any-file: '**'
+name: PR-Open-Trigger
+on:
+ pull_request:
+ types: [opened]
+ branches:
+ - main
+ - release-*
-# Add 'fixVersion/0.2.0' label to any PR that is opened against the `main`
branch
-fixVersion/0.2.0:
- - base-branch: 'main'
-
-# Add 'fixVersion/0.1.1' label to any PR that is opened against the
`release-0.1` branch
-fixVersion/0.1.1:
- - base-branch: 'release-0.1'
\ No newline at end of file
+jobs:
+ label:
+ runs-on: ubuntu-latest
+ steps:
+ - name: "Do nothing. Just triggers corresponding workflow."
+ run: echo