This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-12198-23ce7c3ab35ef6e57c69de619cfc073ef72de313 in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
commit b2b7d4705191a200ac7e395596c0946786d6f69c Author: Jeffrey Vo <[email protected]> AuthorDate: Thu Nov 12 06:43:23 2026 +0000 chore: remove workflow to copy labels from issues (#12198) # Which issue does this PR close? <!-- It is not necessary to raise an issue, but it is encouraged if it is a non-trivial enhancement/bug. If this PR relates to an existing issue, but does not fully resolve it, please change the wording below from "Closes #NNN" to "Relates to #NNN" or "Part of #NNN" to avoid false closing an issue. --> - Closes #11615 # Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. Please try to explain the problem you are trying to solve in terms of the user-visible behavior, rather than the implementation. --> This event trigger will be blocked soon, so removing remaining workflow that depends on it. Opting to remove it instead of rework it as its a minor workflow; its just for ergonomics, and half the time its not applicable anyway (either PR doesn't link to an issue, or the linked issue itself doesn't have a relevant tag). I'll reopen https://github.com/apache/arrow-rs/issues/10529 to track if we want it again. # What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> Removing label copy workflow # Are these changes tested? <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests, if so identify these tests)? If this PR claims a performance improvement, please include evidence such as benchmark results. DO NOT simply paste a list of commands ran to verify the code; this is what our CI is for and it pollutes the PR. ONLY explain if testing was included with this PR, or why it wasn't. --> N/A # Are there any significant user-facing changes? <!-- Significant user-facing changes include: - Breaking public API change - Significant change to existing functionality (e.g. function returns something different) These need to be explicitly called out to ensure we have proper documentation if required and to ensure we follow proper semantic versioning. DO NOT restate the changes of this PR; if a bug was fixed and already explained above, we don't need this to be restated as a user-facing change. --> No --- .github/workflows/dev_pr.yml | 47 -------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/.github/workflows/dev_pr.yml b/.github/workflows/dev_pr.yml index 5737979220..3db502c063 100644 --- a/.github/workflows/dev_pr.yml +++ b/.github/workflows/dev_pr.yml @@ -8,59 +8,12 @@ concurrency: group: ${{ github.repository }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.event.workflow_run.id }}-${{ github.workflow }} cancel-in-progress: true -# Process PR changes and completed API scans. on: - pull_request_target: - types: - - opened workflow_run: workflows: [API changes] types: [completed] jobs: - # Copy labels from linked issue if present, to help with changelog generation. - # For simplicity we just run once on open and for first linked issue; its trivial - # for maintainers to fix up the label manually for more complex cases. - copy-issue-labels: - name: Copy labels from (first) closing issue - if: github.event.action == 'opened' - needs: process - runs-on: ubuntu-slim - permissions: - issues: read - pull-requests: write - steps: - - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 - with: - script: | - const { node } = await github.graphql(` - query($id: ID!) { - node(id: $id) { - ... on PullRequest { - closingIssuesReferences(first: 1) { - nodes { number repository { nameWithOwner } } - } - } - } - } - `, { id: context.payload.pull_request.node_id }); - const issue = node?.closingIssuesReferences?.nodes[0]; - const repository = `${context.repo.owner}/${context.repo.repo}`.toLowerCase(); - // just in case its referencing an external repo - if (!issue || issue.repository.nameWithOwner.toLowerCase() !== repository) return; - const labels = await github.paginate(github.rest.issues.listLabelsOnIssue, { - ...context.repo, issue_number: issue.number, per_page: 100, - }); - // these ones impact changelog generation the most - const allowedLabels = ['bug', 'enhancement', 'development-process', 'performance']; - const labelsToCopy = labels.map(label => label.name).filter(name => allowedLabels.includes(name)); - if (labelsToCopy.length) { - await github.rest.issues.addLabels({ - ...context.repo, issue_number: context.issue.number, - labels: labelsToCopy, - }); - } - label-api-change: name: Label API changes if: >-
