1
0
mirror of synced 2025-12-26 05:05:18 -05:00
Files
airbyte/.github/workflows/label-github-issues-by-context.yml
devin-ai-integration[bot] 250ab7c9e6 chore: Update workflow-actions reference to fix bot PR labeling (#68179)
## What

Fixes bot-authored PRs being incorrectly labeled as "community"
contributions. This was happening because the GitHub Actions workflows
were referencing an outdated `@production` tag in the workflow-actions
repository that didn't include recent bot account exclusions.

**Link to Devin run**:
https://app.devin.ai/sessions/8501e183a3e14fee9491d4322b04a69f

Requested by: ian.alton@airbyte.io

## How

Updates both labeling workflows (`label-prs-by-context.yml` and
`label-github-issues-by-context.yml`) to reference a specific commit SHA
(`2a848ff`) in the workflow-actions repository instead of the
`@production` tag.

This commit includes the updated bot account exclusion list that
prevents the following accounts from being labeled as community:
- `devin-ai-integration`
- `octavia-bot-hoard`
- `octavia-bot-admin`
- `octavia-bot`
- `airbyteio`
- `github-actions[bot]`
- `dependabot`
- `speakeasybot`
- `airbyte-slash-dispatch-bot`

The `@production` tag was pointing to an older commit that only excluded
`octavia-squidington-iii` and `dependabot[bot]`.

## Review guide

1. `.github/workflows/label-prs-by-context.yml` - Verify the commit SHA
`2a848ffce5eaf8da66d4176b66f55dd2e1007016` is correct
2. `.github/workflows/label-github-issues-by-context.yml` - Same commit
SHA update for consistency
3. **Important**: Verify the commit exists at
2a848ffce5
4. Consider whether pinning to a specific commit vs using a versioned
tag (e.g., `v1.0.0`) would be preferable for future maintainability

## User Impact

**Positive:**
- Bot-authored PRs will no longer be incorrectly labeled as "community"
contributions
- More accurate contribution attribution in the repository

**Negative:**
- None expected. This only adds more bot exclusions; it doesn't change
behavior for human contributors.

**Note:** This change cannot be easily tested before merge since it
requires actual PR/issue events to trigger the workflows.

## Can this PR be safely reverted and rolled back?

- [x] YES 💚

Revert by changing the commit SHA back to `@production` or any other
valid reference in the workflow-actions repository.

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: ian.alton@airbyte.io <ian.alton@airbyte.io>
2025-10-17 21:56:18 +00:00

24 lines
1006 B
YAML

name: "Auto-Label Issues"
on:
issues:
types: [opened, labeled, unlabeled]
jobs:
shared-issues:
name: "Add Labels to Issues. Safe to Merge on fail"
runs-on: ubuntu-24.04
steps:
# TODO: Replace PAT with a GitHub App token.
# The "private-action-loader" action does not seem to be compatible with it,
# so we should consider moving off of this specialized action and onto a normal
# action step.
- name: Run Issue Command from workflow-actions
uses: nick-fields/private-action-loader@6fa713597d3de3707f8b7a3029a5c262f32c5bca # v3.0.12
with:
pal-repo-token: "${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}"
pal-repo-name: airbytehq/workflow-actions@2a848ffce5eaf8da66d4176b66f55dd2e1007016
# the following input gets passed to the private
token: "${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}"
# ref: https://github.com/airbytehq/workflow-actions/blob/main/src/bin_issue.ts
command: "issue"