Sampling of APM Log Messages in Kafka Provider #1977
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Issue Labeler" | |
on: | |
issues: | |
types: [opened] | |
pull_request_target: | |
types: [opened] | |
env: | |
MY_GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }} | |
jobs: | |
triage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add agent-java label | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ["agent-java"] | |
}) | |
- name: Check team membership for user | |
uses: elastic/[email protected] | |
id: checkUserMember | |
with: | |
username: ${{ github.actor }} | |
team: 'apm' | |
usernamesToExclude: | | |
apmmachine | |
dependabot | |
dependabot[bot] | |
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }} | |
- name: Show team membership | |
run: | | |
echo "::debug::isTeamMember: ${{ steps.checkUserMember.outputs.isTeamMember }}" | |
echo "::debug::isExcluded: ${{ steps.checkUserMember.outputs.isExcluded }}" | |
- name: Add community and triage lables | |
if: steps.checkUserMember.outputs.isTeamMember != 'true' && steps.checkUserMember.outputs.isExcluded != 'true' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ["community", "triage"] | |
}) | |
- name: Add comment for community PR | |
if: steps.checkUserMember.outputs.isTeamMember != 'true' && steps.checkUserMember.outputs.isExcluded != 'true' | |
uses: wow-actions/auto-comment@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
pullRequestOpened: | | |
👋 @{{ author }} Thanks a lot for your contribution! | |
It may take some time before we review a PR, so even if you don’t see activity for some time, it **does not** mean that we have forgotten about it. | |
Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming [milestone](https://github.com/elastic/apm-agent-java/milestones). The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it. | |
- name: Assign new internal pull requests to project | |
uses: elastic/[email protected] | |
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event.pull_request | |
with: | |
project: 'https://github.com/orgs/elastic/projects/454' | |
project_id: '5882982' | |
column_name: 'In Progress' |