mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
refactor: close-stale-prs
This commit is contained in:
@@ -7,13 +7,10 @@ on:
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
# kilocode_change start - disabled for kilo-cli fork (OpenCode Discord integration)
|
||||
if: false
|
||||
# if: |
|
||||
# github.event_name == 'push' ||
|
||||
# (github.event_name == 'pull_request' &&
|
||||
# contains(github.event.pull_request.labels.*.name, 'contributor'))
|
||||
# kilocode_change end
|
||||
if: |
|
||||
github.event_name == 'push' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
contains(github.event.pull_request.labels.*.name, 'contributor'))
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -31,8 +28,10 @@ jobs:
|
||||
id: setup-git-committer
|
||||
uses: ./.github/actions/setup-git-committer
|
||||
with:
|
||||
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
|
||||
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
|
||||
# kilocode_change start
|
||||
kilo-maintainer-app-id: ${{ secrets.KILO_MAINTAINER_APP_ID }}
|
||||
kilo-maintainer-app-secret: ${{ secrets.KILO_MAINTAINER_APP_SECRET }}
|
||||
# kilocode_change end
|
||||
|
||||
- name: Sync beta branch
|
||||
env:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Check Organization Member
|
||||
name: check-org-member
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Close stale PRs
|
||||
name: close-stale-prs # kilocode_change
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -17,7 +17,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
close-stale-prs:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-2vcpu-ubuntu-2404 # kilocode_change
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Close inactive PRs
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
check-duplicates:
|
||||
needs: check-author
|
||||
if: needs.check-author.outputs.is-member == 'false'
|
||||
# kilocode_change end
|
||||
# kilocode_change end
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -5,22 +5,16 @@ on:
|
||||
types: [opened, edited, synchronize]
|
||||
|
||||
jobs:
|
||||
# kilocode_change start
|
||||
check-author:
|
||||
uses: ./.github/workflows/check-org-member.yml
|
||||
with:
|
||||
username: ${{ github.event.pull_request.user.login }}
|
||||
|
||||
check-standards:
|
||||
# kilocode_change start - disabled for kilo-cli fork (OpenCode maintainer allowlist)
|
||||
if: false
|
||||
# kilocode_change end
|
||||
# Original condition with OpenCode maintainer allowlist:
|
||||
# if: |
|
||||
# github.event.pull_request.user.login != 'actions-user' &&
|
||||
# github.event.pull_request.user.login != 'opencode' &&
|
||||
# github.event.pull_request.user.login != 'rekram1-node' &&
|
||||
# github.event.pull_request.user.login != 'thdxr' &&
|
||||
# github.event.pull_request.user.login != 'kommander' &&
|
||||
# github.event.pull_request.user.login != 'jayair' &&
|
||||
# github.event.pull_request.user.login != 'fwang' &&
|
||||
# github.event.pull_request.user.login != 'adamdotdevin' &&
|
||||
# github.event.pull_request.user.login != 'iamdavidhill' &&
|
||||
# github.event.pull_request.user.login != 'opencode-agent[bot]'
|
||||
needs: check-author
|
||||
if: needs.check-author.outputs.is-member == 'false'
|
||||
# kilocode_change end
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
permissions:
|
||||
pull-requests: write
|
||||
@@ -90,7 +84,7 @@ jobs:
|
||||
- \`refactor:\` or \`refactor(scope):\` code refactoring
|
||||
- \`test:\` or \`test(scope):\` adding or updating tests
|
||||
|
||||
Where \`scope\` is the package name (e.g., \`app\`, \`desktop\`, \`opencode\`).
|
||||
Where \`scope\` is the package name (e.g., \`app\`, \`desktop\`, \`kilo\`).
|
||||
|
||||
See [CONTRIBUTING.md](../blob/dev/CONTRIBUTING.md#pr-titles) for details.`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user