Skip to content

[release] Instrumentation.Http- stable release 1.9.0 updates #160

[release] Instrumentation.Http- stable release 1.9.0 updates

[release] Instrumentation.Http- stable release 1.9.0 updates #160

Workflow file for this run

name: 'Add labels to issues and pull requests'
on:
issues:
types: [ opened ]
pull_request_target:
branches: [ 'main*', 'instrumentation*', 'exporter*', 'extensions*' ]
permissions:
issues: write
pull-requests: write
jobs:
add-labels-on-issues:
if: github.event_name == 'issues' && !github.event.issue.pull_request
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: Add labels for component found in bug issue descriptions
shell: pwsh
run: |
Import-Module .\build\scripts\add-labels.psm1
AddLabelsOnIssuesForComponentFoundInBody `
-issueNumber ${{ github.event.issue.number }} `
-issueBody $env:ISSUE_BODY
env:
GH_TOKEN: ${{ github.token }}
ISSUE_BODY: ${{ github.event.issue.body }}
add-labels-on-pull-requests:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }} # Note: Do not run on the PR branch we want to execute add-labels.psm1 from main on the base repo only because pull_request_target can see secrets
- name: Add labels for files changed on pull requests
shell: pwsh
run: |
Import-Module .\build\scripts\add-labels.psm1
AddLabelsOnPullRequestsBasedOnFilesChanged `
-pullRequestNumber ${{ github.event.pull_request.number }} `
-labelPackagePrefix 'comp:'
env:
GH_TOKEN: ${{ github.token }}