-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
541 changed files
with
10,180 additions
and
4,809 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# https://docs.github.com/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser | ||
|
||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Question | ||
url: https://github.com/open-telemetry/opentelemetry-dotnet/discussions/new?category=q-a | ||
about: Ask a question to help us improve our knowledge base and documentation. |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,55 @@ | ||
name: 'Add labels for area found in bug issue descriptions' | ||
name: 'Add labels to issues and pull requests' | ||
on: | ||
issues: | ||
types: [opened] | ||
types: [ opened ] | ||
|
||
pull_request_target: | ||
branches: [ 'main*' ] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
add-labels: | ||
if: ${{ !github.event.issue.pull_request }} | ||
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 areas found in bug issue descriptions | ||
- name: Add labels for package found in bug issue descriptions | ||
shell: pwsh | ||
run: | | ||
.\build\scripts\add-labels.ps1 -issueNumber $env:ISSUE_NUMBER -issueBody $env:ISSUE_BODY | ||
Import-Module .\build\scripts\add-labels.psm1 | ||
AddLabelsOnIssuesForPackageFoundInBody ` | ||
-issueNumber ${{ github.event.issue.number }} ` | ||
-issueBody $env:ISSUE_BODY | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
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 'pkg:' | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Resolve automation settings | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
enabled: | ||
value: ${{ jobs.resolve-automation.outputs.enabled == 'true' }} | ||
token-secret-name: | ||
value: ${{ jobs.resolve-automation.outputs.token-secret-name }} | ||
username: | ||
value: ${{ vars.AUTOMATION_USERNAME }} | ||
email: | ||
value: ${{ vars.AUTOMATION_EMAIL }} | ||
secrets: | ||
OPENTELEMETRYBOT_GITHUB_TOKEN: | ||
required: false | ||
|
||
jobs: | ||
resolve-automation: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
enabled: ${{ steps.evaluate.outputs.enabled }} | ||
token-secret-name: ${{ steps.evaluate.outputs.token-secret-name }} | ||
|
||
env: | ||
OPENTELEMETRYBOT_GITHUB_TOKEN_EXISTS: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN != '' }} | ||
|
||
steps: | ||
- id: evaluate | ||
run: | | ||
echo "enabled=${{ env.OPENTELEMETRYBOT_GITHUB_TOKEN_EXISTS == 'true' }}" >> "$GITHUB_OUTPUT" | ||
echo "token-secret-name=OPENTELEMETRYBOT_GITHUB_TOKEN" >> "$GITHUB_OUTPUT" |
Oops, something went wrong.