Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 22 additions & 4 deletions .github/workflows/pr_presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,35 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v3
with:
go-version: 1.x
go-version: 1.24.x
cache: true

- id: files
uses: Ana06/get-changed-files@v2.2.0
- uses: actions/checkout@v2

- name: Install workflow tools
run: make -f tasks.mak makefile_symlink install_tools

- name: Run lint
run: make lint

- name: Checkout base ref
uses: actions/checkout@v2
with:
ref: ${{ github.base_ref }}
path: base_checkout
# `steps.get_labels.outputs.*` gives us the names of all labels for the PR
- run: echo "labels=$(go run ./ci/get_labels -url=${{ github.event.pull_request.url }})" >> "$GITHUB_OUTPUT"

- name: Get labels
id: get_labels
- run: go test ./ci -added="${{ steps.files.outputs.added }}" -modified="${{ steps.files.outputs.modified }}" -labels="${{ steps.get_labels.outputs.labels }}" -base-dir="base_checkout" -tags=ci
run: echo "labels=$(go run ./ci/get_labels -url=${{ github.event.pull_request.url }})" >> "$GITHUB_OUTPUT"

- name: Run tests
run: go test ./ci -added="$ADDED_FILES" -modified="$MODIFIED_FILES" -labels="$PR_LABELS" -base-dir="base_checkout" -tags=ci
env:
ADDED_FILES: ${{ steps.files.outputs.added }}
MODIFIED_FILES: ${{ steps.files.outputs.modified }}
PR_LABELS: ${{ steps.get_labels.outputs.labels }}
24 changes: 24 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Close stale pull requests"
on:
schedule:
- cron: "0 3 * * *"

permissions:
contents: read

jobs:
stale:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 14 days.'
close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.'
stale-issue-message: 'This issue was marked stale due to lack of activity. It will be closed in 14 days.'
close-issue-message: 'Closed as inactive. Feel free to reopen if this issue is still relevant.'
days-before-close: 14
exempt-pr-labels: 'no-stale'
exempt-issue-labels: 'no-stale'
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Ignore a file actually called Makefile. The presence of this file interferes
# with our Linux package building processes. To make a local symlink called
# "Makefile" for development convenience, use this command:
# make -f tasks.mak makefile_symlink
Makefile

# Ignore generated credentials from google-github-actions/auth
gha-creds-*.json

.vscode/launch.json
# This is a folder used to hold local builds of fluent-bit and otelopscol
# when running transformation tests locally.
dist/

.vscode/launch.json
Loading
Loading