Skip to content

feat: Get the branch name using the pull request response #873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

srz-zumix
Copy link

Description:

Changed to get branch name from pull request response.
This allows labeling with head-branch/base-branch rules outside of pull_request events.

e.g.

on:
  workflow_dispatch:
    inputs:
      pr-number:

jobs:
  labeler:
    permissions:
      contents: read
      pull-requests: write
    runs-on: ubuntu-latest
    steps:
    - uses: actions/labeler@v5
      with:
        pr-number: ${{ inputs.pr-number }}

Related issue:

#810

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@srz-zumix srz-zumix requested a review from a team as a code owner June 5, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant