diff options
| author | 5an7y <[email protected]> | 2026-03-30 15:47:36 -0700 |
|---|---|---|
| committer | 5an7y <[email protected]> | 2026-03-30 15:47:36 -0700 |
| commit | 3a2a44ac95e464972b5244c33ec34c53eabe34b8 (patch) | |
| tree | 3ca55eb1b13313cb8f488cab22e454e6945900e8 /.github/workflows | |
| parent | 8056a2723c732809b4ca684666ac08385f6e835f (diff) | |
| parent | 05b65dac08c551a94e1d7fc282e35c546e00472e (diff) | |
Merge remote-tracking branch 'origin/develop' into user/jvalesmena/new-build-samples
# Conflicts:
# Build-AllSamples.ps1
# Build-SampleSet.ps1
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/StaleIssues.yml | 16 | ||||
| -rw-r--r-- | .github/workflows/tag-codeowner-on-issue.yml | 8 |
2 files changed, 5 insertions, 19 deletions
diff --git a/.github/workflows/StaleIssues.yml b/.github/workflows/StaleIssues.yml deleted file mode 100644 index d3a3776a..00000000 --- a/.github/workflows/StaleIssues.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Close inactive issues -on: - workflow_dispatch: -jobs: - close-issues: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - uses: actions/stale@v10 - with: - days-before-issue-stale: 365 - stale-issue-label: "stale" - stale-issue-message: "This issue has been inactive for a year. It will be closed in 31 days if no further activity occurs. If you believe this issue is still relevant, please comment to keep it open." - operations-per-run: 400 - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml index fceed633..a4fe365d 100644 --- a/.github/workflows/tag-codeowner-on-issue.yml +++ b/.github/workflows/tag-codeowner-on-issue.yml @@ -6,7 +6,6 @@ on: jobs: tag-codeowner: - if: false # Disabled - workflow intentionally turned off runs-on: ubuntu-latest steps: @@ -24,13 +23,15 @@ jobs: - name: Extract selected path and tag codeowner env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE_BODY: ${{ github.event.issue.body }} + ISSUE_NUMBER: ${{ github.event.issue.number }} run: | python3 - <<EOF import os import re import requests - issue_body = """${{ github.event.issue.body }}""" + issue_body = os.environ['ISSUE_BODY'] selected_path = None # Try to extract the selected path from the issue body @@ -69,8 +70,9 @@ jobs: comment = f"{codeowner} can you please take a look at this issue related to {selected_path}?" repo = os.environ['GITHUB_REPOSITORY'] token = os.environ['GITHUB_TOKEN'] + issue_number = os.environ['ISSUE_NUMBER'] - url = f"https://api.github.com/repos/{repo}/issues/${{ github.event.issue.number }}/comments" + url = f"https://api.github.com/repos/{repo}/issues/{issue_number}/comments" headers = { "Authorization": f"Bearer {token}", "Accept": "application/vnd.github.v3+json" |
