-
Notifications
You must be signed in to change notification settings - Fork 232
github-actions: replace third-party actions #2257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
uses: actions-ecosystem/action-add-labels@v1 | ||
with: | ||
labels: agent-python | ||
run: gh issue edit "$NUMBER" --add-label "agent-python" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@v1v This is not working, NUMBER is empty when I am opening a PR :). See https://github.com/elastic/apm-agent-python/actions/runs/14264122101/job/39982015773?pr=2261
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm, I'll review it
triage: | ||
runs-on: ubuntu-latest | ||
env: | ||
NUMBER: ${{ github.event.issue.number }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be github.event.issue.number || github.event.pull_request.number
or something along those lines. I'll review exactly the correct context field
What does this pull request do?
Use
gh
cli to add labelsUse our pre-commit composite action: https://github.com/elastic/oblt-actions/tree/main/pre-commit
Related issues
See #2254 (comment)