Skip to content

Commit

Permalink
chore: update GHA workflows (#144)
Browse files Browse the repository at this point in the history
- updates dependabot to use new labels and adds the tools submodule to
its tracking
- updates stale workflow to use new labels and shortens the stale timer
to 7 days, with 7 additional days to close

Signed-off-by: Evan Baker <[email protected]>
  • Loading branch information
rbtr authored Mar 26, 2024
1 parent 61e1152 commit b48ca3c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
19 changes: 15 additions & 4 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ updates:
reviewers:
- "microsoft/retina"
commit-message:
prefix: "ci"
labels: [ "ci", "dependencies" ]
prefix: "deps"
labels: ["area/infra", "area/dependencies"]
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
Expand All @@ -17,8 +17,8 @@ updates:
reviewers:
- "microsoft/retina"
commit-message:
prefix: "ci"
labels: [ "ci", "dependencies" ]
prefix: "deps"
labels: ["area/infra", "area/dependencies"]
open-pull-requests-limit: 10
- package-ecosystem: "gomod"
directory: "/"
Expand All @@ -28,6 +28,17 @@ updates:
- "microsoft/retina"
commit-message:
prefix: "deps"
labels: ["lang/go", "area/dependencies"]
ignore:
- dependency-name: "github.com/inspektor-gadget/inspektor-gadget"
open-pull-requests-limit: 10
- package-ecosystem: "gomod"
directory: "/hack/tools"
schedule:
interval: "daily"
reviewers:
- "microsoft/retina"
commit-message:
prefix: "deps"
labels: ["lang/go", "area/infra", "area/dependencies"]
open-pull-requests-limit: 10
17 changes: 9 additions & 8 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'Stale PR and Issue Handler'
name: "Stale PR and Issue Handler"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
stale:
Expand All @@ -16,14 +16,15 @@ jobs:
id: stale
with:
ascending: true
close-issue-message: 'Issue closed due to inactivity.'
close-pr-message: 'Pull request closed due to inactivity.'
close-issue-message: "Issue closed due to inactivity."
close-pr-message: "Pull request closed due to inactivity."
days-before-close: 7
days-before-stale: 14
days-before-stale: 7
delete-branch: true
exempt-issue-labels: 'exempt-stale'
stale-issue-label: "meta/waiting-for-author"
stale-pr-labels: "meta/waiting-for-author"
operations-per-run: 100
stale-issue-message: 'This issue is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days'
stale-pr-message: 'This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days'
stale-issue-message: "This issue is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in 7 days"
stale-pr-message: "This pull request is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in 7 days"
- name: Print outputs
run: echo ${{ join(steps.stale.outputs.*, ',') }}

0 comments on commit b48ca3c

Please sign in to comment.