mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 06:02:22 -05:00
[AI] Remove 'suspect ai generated' label and associated workflow (#7087)
* Initial plan * [AI] Remove 'suspect ai generated' label and associated workflow Co-authored-by: MatissJanis <886567+MatissJanis@users.noreply.github.com> * [AI] Remove 'suspect ai generated' label from coderabbit config Co-authored-by: MatissJanis <886567+MatissJanis@users.noreply.github.com> * Add release notes for PR #7087 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MatissJanis <886567+MatissJanis@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -13,8 +13,6 @@ reviews:
|
|||||||
mode: off
|
mode: off
|
||||||
enabled: false
|
enabled: false
|
||||||
labeling_instructions:
|
labeling_instructions:
|
||||||
- label: 'suspect ai generated'
|
|
||||||
instructions: 'This issue or PR is suspected to be generated by AI. Add this only if "AI generated" label is not present. Add it always if the commit or PR title is prefixed with "[AI]".'
|
|
||||||
- label: 'API'
|
- label: 'API'
|
||||||
instructions: 'This issue or PR updates the API in `packages/api`.'
|
instructions: 'This issue or PR updates the API in `packages/api`.'
|
||||||
- label: 'documentation'
|
- label: 'documentation'
|
||||||
|
|||||||
25
.github/workflows/pr-ai-label-cleanup.yml
vendored
25
.github/workflows/pr-ai-label-cleanup.yml
vendored
@@ -1,25 +0,0 @@
|
|||||||
name: Remove 'suspect ai generated' label when 'AI generated' is present
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [labeled]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
remove-suspect-label:
|
|
||||||
if: >-
|
|
||||||
${{ contains(github.event.pull_request.labels.*.name, 'AI generated') &&
|
|
||||||
contains(github.event.pull_request.labels.*.name, 'suspect ai generated') }}
|
|
||||||
runs-on: ubuntu-slim
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
await github.rest.issues.removeLabel({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
issue_number: context.issue.number,
|
|
||||||
name: 'suspect ai generated'
|
|
||||||
});
|
|
||||||
6
upcoming-release-notes/7087.md
Normal file
6
upcoming-release-notes/7087.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
category: Maintenance
|
||||||
|
authors: [Copilot]
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove 'suspect ai generated' label and delete associated workflow for streamlined labeling system.
|
||||||
Reference in New Issue
Block a user