diff --git a/.github/workflows/pip-compile-dev.yml b/.github/workflows/pip-compile-dev.yml index 93792aa7a3f..9d356635931 100644 --- a/.github/workflows/pip-compile-dev.yml +++ b/.github/workflows/pip-compile-dev.yml @@ -15,6 +15,9 @@ name: "Refresh dev dependencies" reset-branch: type: boolean default: false + labels: + required: false + type: string push: branches: - devel @@ -37,4 +40,5 @@ jobs: 'pip-compile-3.10(static)' 'pip-compile-3.10(spelling)' reset-branch: "${{ inputs.reset-branch || false }}" + labels: "${{ inputs.labels || 'backport-2.14,backport-2.15,backport-2.16,tooling' }}" secrets: inherit diff --git a/.github/workflows/pip-compile-docs.yml b/.github/workflows/pip-compile-docs.yml index c679f8cd79b..6c90c24e10c 100644 --- a/.github/workflows/pip-compile-docs.yml +++ b/.github/workflows/pip-compile-docs.yml @@ -15,6 +15,9 @@ name: "Refresh docs build dependencies" reset-branch: type: boolean default: false + labels: + required: false + type: string push: branches: - devel @@ -33,4 +36,5 @@ jobs: pr-branch: "${{ inputs.pr-branch || 'pip-compile/devel/docs' }}" nox-args: "-e 'pip-compile-3.10(requirements)' 'pip-compile-3.10(requirements-relaxed)'" reset-branch: "${{ inputs.reset-branch || false }}" + labels: "${{ inputs.labels || 'doc builds,no_backport' }}" secrets: inherit diff --git a/.github/workflows/reusable-pip-compile.yml b/.github/workflows/reusable-pip-compile.yml index 06e9ee92f45..dc25afe6d59 100644 --- a/.github/workflows/reusable-pip-compile.yml +++ b/.github/workflows/reusable-pip-compile.yml @@ -29,6 +29,9 @@ name: "Refresh pinned dependencies" reset-branch: type: boolean default: false + labels: + type: string + default: "" jobs: refresh: runs-on: ubuntu-latest @@ -86,6 +89,7 @@ jobs: pr_branch: "${{ inputs.pr-branch }}" message: "${{ inputs.message }}" changed_files: "${{ inputs.changed-files }}" + labels: "${{ inputs.labels }}" run: | set -x git diff || : @@ -99,9 +103,18 @@ jobs: git push --force origin "${pr_branch}" if [ "${{ steps.branch.outputs.branch-exists }}" = "false" ] then - gh pr create \ - --base "${base_branch}" \ - --title "${message}" \ - --body "" \ + command=(gh pr create + --base "${base_branch}" + --title "${message}" + --body "" --label dependency_update + ) + # Add custom labels to the command. + old_ifs="$IFS" + IFS="," + for label in ${labels}; do + command+=("--label" "${label}") + done + IFS="${old_ifs}" fi + "${command[@]}"