diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..48df9057e52e6 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,30 @@ +# PR path -> label rules for actions/labeler (add-only). +# Adapted for the kernel tree (armbian/linux-rockchip); the rest of the +# labelling automation is copied verbatim from armbian/build. + +"Needs review": +- changed-files: + - any-glob-to-any-file: '**' + +"Device Tree": +- changed-files: + - any-glob-to-any-file: ['arch/*/boot/dts/**'] + +"defconfig": +- changed-files: + - any-glob-to-any-file: ['arch/*/configs/**'] + +"GitHub Actions": +- all: + - changed-files: + - any-glob-to-any-file: ['.github/workflows/**/*'] + +"GitHub": +- all: + - changed-files: + - any-glob-to-any-file: ['.github/**/*'] + - all-globs-to-any-file: ['!.github/workflows/**/*'] + +"Documentation": +- changed-files: + - any-glob-to-any-file: '**/*.md' diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000000000..3dede33c1abdc --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,117 @@ +- name: "02" + color: "76B4D9" + description: "Milestone: First quarter release" +- name: "05" + color: "AADB79" + description: "Milestone: Second quarter release" +- name: "08" + color: "4B649F" + description: "Milestone: Third quarter release" +- name: "11" + color: "D58125" + description: "Milestone: Fourth quarter release" +- name: "Backlog" + color: "d4c5f9" + description: "Stalled work that needs to be completed" +- name: "Breaking change" + color: "f4bd13" + description: "Can potentially break core functionality" +- name: "Bug" + color: "F92C01" + description: "Something isn't working as it should" +- name: "Bugfix" + color: "F92C01" + description: "Pull request is fixing a bug" +- name: "Dependencies" + color: "0366d6" + description: "Pull requests that update a dependency" +- name: "Discussion" + color: "EDFFE3" + description: "Being discussed - Voice your opinions :)" +- name: "Duplicate" + color: "f4bd13" + description: "Issue is already present" +- name: "Feature Request" + color: "1aac63" + description: "Feature suggestion" +- name: "Good first issue" + color: "ffb3ff" + description: "Feel free to contribute :) " +- name: "Not framework bug" + color: "CD456C" + description: "Bug in 3rd party component" +- name: "Python" + color: "2b67c6" + description: "Pull requests that update Python code " +- name: "User error" + color: "CD456C" + description: "A mistake that is made by the user" +- name: "size/small" + color: "ededed" + description: "PR with less then 50 lines" +- name: "size/medium" + color: "ededed" + description: "PR with more then 50 and less then 250 lines" +- name: "size/large" + color: "ededed" + description: "PR with 250 lines or more" +- name: "Task/To-Do" + color: "2f95f1" + description: "Project management: To-Do or task(s) someone is working on" +- name: "Desktop" + color: "bfd4f2" + description: "Graphical user interface" +- name: "Hardware" + color: "bfd4f2" + description: "Hardware related like kernel, U-Boot, ..." +- name: "Framework" + color: "bfd4f2" + description: "Framework components" +- name: "BSP" + color: "bfd4f2" + description: "Board Support Packages" +- name: "GitHub Actions" + color: "bfd4f2" + description: "GitHub Actions code" +- name: "GitHub" + color: "bfd4f2" + description: "GitHub-related changes like labels, templates, ..." +- name: "Patches" + color: "bfd4f2" + description: "Patches related to kernel, U-Boot, ..." +- name: "Documentation" + color: "bfd4f2" + description: "Documentation changes or additions" +- name: "Work in progress" + color: "29E414" + description: "Unfinished / work in progress" +- name: "Ready to merge" + color: "1d7136" + description: "Reviewed, tested and ready for merge" +- name: "Help needed" + color: "EA1BCE" + description: "We need your involvement" +- name: "Needs review" + color: "AEE054" + description: "Seeking for review" +- name: "Can be closed?" + color: "9b75fc" + description: "Ping developers on stalled issue / PR" +- name: "Build" + color: "5ee3d0" + description: "Executing build train (permission needed)" +- name: "Needs Documentation" + color: "4FD1EF" + description: "New feature needs documentation entry" +- name: "Documentation finished" + color: "0052CC" + description: "New feature was properly added to docs" +- name: "Improper usage" + color: "CD456C" + description: "Provided input is not in the expected data format or structure" +- name: "Device Tree" + color: "bfd4f2" + description: "Device tree (.dts/.dtsi) changes" +- name: "defconfig" + color: "bfd4f2" + description: "Kernel defconfig changes" diff --git a/.github/scripts/wip-label.js b/.github/scripts/wip-label.js new file mode 100644 index 0000000000000..90e6d60b26b09 --- /dev/null +++ b/.github/scripts/wip-label.js @@ -0,0 +1,103 @@ +// Shared logic for the "Work in progress" label automation. +// +// A pull request is "work in progress" when a reviewer has requested changes +// OR any review conversation is still unresolved. The label is recomputed from +// the PR's live state, so it is idempotent and the same regardless of what +// triggered the run. +// +// Used by: +// - maintenance-label-wip.yml (workflow_run worker: instant, one PR) +// - maintenance-label-wip-sweep.yml (cron backstop: all open PRs) +// +// These run from the default branch context (workflow_run / schedule), which +// has a read/write GITHUB_TOKEN even for fork PRs -- unlike a pull_request_review +// trigger, whose token is read-only on forks. + +const LABEL = "Work in progress"; + +// Returns { wip, reviewDecision, unresolved } for a single PR. +async function evaluate(github, owner, repo, number) { + let reviewDecision = null; + let unresolved = 0; + let after = null; + + do { + const query = ` + query($owner:String!, $repo:String!, $number:Int!, $after:String) { + repository(owner:$owner, name:$repo) { + pullRequest(number:$number) { + reviewDecision + reviewThreads(first:100, after:$after) { + nodes { isResolved } + pageInfo { hasNextPage endCursor } + } + } + } + }`; + const data = await github.graphql(query, { owner, repo, number, after }); + const pr = data.repository.pullRequest; + reviewDecision = pr.reviewDecision; + for (const t of pr.reviewThreads.nodes) { + if (!t.isResolved) unresolved++; + } + after = pr.reviewThreads.pageInfo.hasNextPage + ? pr.reviewThreads.pageInfo.endCursor + : null; + } while (after); + + return { wip: reviewDecision === "CHANGES_REQUESTED" || unresolved > 0, reviewDecision, unresolved }; +} + +// Add or remove the label on one PR to match its evaluated state. +async function syncOne({ github, core, owner, repo, number }) { + const { wip, reviewDecision, unresolved } = await evaluate(github, owner, repo, number); + + const current = await github.rest.issues.listLabelsOnIssue({ + owner, repo, issue_number: number, per_page: 100, + }); + const has = current.data.some(l => l.name === LABEL); + const state = `reviewDecision=${reviewDecision} unresolved=${unresolved}`; + + if (wip && !has) { + await github.rest.issues.addLabels({ owner, repo, issue_number: number, labels: [LABEL] }); + core.info(`PR #${number}: added "${LABEL}" (${state})`); + } else if (!wip && has) { + await github.rest.issues.removeLabel({ owner, repo, issue_number: number, name: LABEL }); + core.info(`PR #${number}: removed "${LABEL}" (${state})`); + } else { + core.info(`PR #${number}: no change, has=${has} (${state})`); + } +} + +// Sweep every open PR (paginated). One PR failing does not abort the rest. +async function syncAllOpen({ github, core, owner, repo }) { + let after = null; + let count = 0; + + do { + const query = ` + query($owner:String!, $repo:String!, $after:String) { + repository(owner:$owner, name:$repo) { + pullRequests(states: OPEN, first: 50, after: $after) { + nodes { number } + pageInfo { hasNextPage endCursor } + } + } + }`; + const data = await github.graphql(query, { owner, repo, after }); + const conn = data.repository.pullRequests; + for (const pr of conn.nodes) { + count++; + try { + await syncOne({ github, core, owner, repo, number: pr.number }); + } catch (e) { + core.warning(`PR #${pr.number}: sync failed: ${e.message}`); + } + } + after = conn.pageInfo.hasNextPage ? conn.pageInfo.endCursor : null; + } while (after); + + core.info(`Swept ${count} open PR(s).`); +} + +module.exports = { syncOne, syncAllOpen }; diff --git a/.github/workflows/data-sync-labels.yml b/.github/workflows/data-sync-labels.yml new file mode 100644 index 0000000000000..ed7ec0a04b207 --- /dev/null +++ b/.github/workflows/data-sync-labels.yml @@ -0,0 +1,41 @@ +name: "Data: Sync labels" +run-name: Sync Labels from YML on ${{ github.event_name }} + +on: + workflow_dispatch: + push: + branches: + - "main" + paths: + - ".github/labels.yml" + pull_request: + paths: + - ".github/labels.yml" + +permissions: + contents: read + +jobs: + labeler: + permissions: + contents: read # for actions/labeler to determine modified files + pull-requests: write # for actions/labeler to add labels to PRs + issues: write # for actions/labeler to add labels to issues + + if: ${{ github.repository_owner == 'Armbian' }} + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Run Labeler + uses: crazy-max/ghaction-github-labeler@548a7c3603594ec17c819e1239f281a3b801ab4d # v6.0.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + yaml-file: .github/labels.yml + dry-run: ${{ github.event_name == 'pull_request' }} + exclude: | + Maintenance* diff --git a/.github/workflows/maintenance-auto-label.yml b/.github/workflows/maintenance-auto-label.yml new file mode 100644 index 0000000000000..0fbb7d8d6c511 --- /dev/null +++ b/.github/workflows/maintenance-auto-label.yml @@ -0,0 +1,119 @@ +name: "Maintenance: Auto-label PR" + +# Sets labels automatically based on: +# - PR size (job: label-size) +# - File categories using .github/labeler config (job: label-category) +# - PR creation date for quarterly tracking (job: label-by-date) +# - Removes "Ready to merge" label on PR update (job: label-remove) + +run-name: 'Set labels - PR #${{ github.event.pull_request.number }} ("${{ github.event.pull_request.title }}")' + +on: pull_request_target + +# Grant required permissions globally +permissions: + contents: read # Required for checking changed files + pull-requests: write # Required for labeling PRs + issues: write # Required for adding/removing labels + +jobs: + label-remove: + name: "Remove Ready to merge" + if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }} + runs-on: ubuntu-latest + + steps: + - name: Checkout the pull request + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + # only here so `gh` can resolve the repo from the git remote; no + # authenticated git commands run, so don't leave the token behind + persist-credentials: false + + - name: Check for label using GH CLI + id: check + run: | + gh pr view ${{ github.event.pull_request.number }} --json labels -q '.labels[].name' | grep -q 'Ready to merge' && echo "has_label=true" >> $GITHUB_OUTPUT || echo "has_label=false" >> $GITHUB_OUTPUT + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Remove "Ready to merge" label + if: steps.check.outputs.has_label == 'true' + uses: PauMAVA/add-remove-label-action@d1dae9b1a6c5b44b7740a3e7f64723fe7c9619d3 # v1.0.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + add: "" + remove: "Ready to merge" + + label-category: + name: "Category Labels" + runs-on: ubuntu-latest + if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }} + + steps: + # Checks out the repository to read files for matching with labeler config + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + # Applies labels based on the .github/labeler.yml config + - uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + + label-size: + name: "Size Label" + runs-on: ubuntu-latest + if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }} + + steps: + # Automatically adds size labels based on total changed lines + - name: Label by size + uses: pascalgn/size-label-action@56b489b027932ec0cf60438a1a5f1a19c8fc71ff # v0.5.7 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + sizes: > + { + "0": "small", + "50": "medium", + "250": "large" + } + + label-by-date: + name: "Date label (Quarters)" + runs-on: ubuntu-latest + if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }} + + steps: + # Determines the label (02, 05, 08, 11) based on PR creation month + - name: Determine quarter label + env: + PR_CREATED_AT: ${{ github.event.pull_request.created_at }} + run: | + echo "PR created at: $PR_CREATED_AT" + + # Extract the numeric month (e.g., 04 for April) + MONTH=$(date -d "$PR_CREATED_AT" +%m | sed 's/^0*//') + echo "Month extracted: $MONTH" + + # Determine quarter-end label based on month + if [ "$MONTH" -le 2 ] || [ "$MONTH" -eq 12 ]; then + LABEL="02" + elif [ "$MONTH" -le 5 ]; then + LABEL="05" + elif [ "$MONTH" -le 8 ]; then + LABEL="08" + else + LABEL="11" + fi + + # Set as environment variable for next step + echo "LABEL=${LABEL}" >> $GITHUB_ENV + + # Adds the quarter label to the PR + - name: Add quarter label + uses: PauMAVA/add-remove-label-action@d1dae9b1a6c5b44b7740a3e7f64723fe7c9619d3 # v1.0.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + add: "${{ env.LABEL }}" diff --git a/.github/workflows/maintenance-label-on-approval.yml b/.github/workflows/maintenance-label-on-approval.yml new file mode 100644 index 0000000000000..bc685512e9e00 --- /dev/null +++ b/.github/workflows/maintenance-label-on-approval.yml @@ -0,0 +1,87 @@ +name: "Maintenance: Label PR on approval" +on: + workflow_run: + workflows: ["Maintenance: Listen PR review"] + types: [completed] + +permissions: + contents: read + +jobs: + label: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + issues: write + pull-requests: write + + steps: + - name: Download PR number artifact from upstream run + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: pr-number-${{ github.event.workflow_run.id }} # same unique name + path: . + run-id: ${{ github.event.workflow_run.id }} # ← CRITICAL: fetch from the upstream run + github-token: ${{ secrets.GITHUB_TOKEN }} + + # Validate here, at the point the value enters the job: everything below + # consumes it, starting with an action that parseInt()s it and then reads + # and writes labels. A check further down would run after those writes -- + # and on the not-approved path would not run at all. + - id: pr + run: | + number="$(tr -d '[:space:]' < pr.txt)" + case "${number}" in + '' | *[!0-9]*) echo "::error::pr.txt is not a PR number: '${number}'"; exit 1 ;; + 0*) echo "::error::pr.txt is not a canonical PR number: '${number}'"; exit 1 ;; + esac + echo "number=${number}" >> "$GITHUB_OUTPUT" + + - name: Label when approved + id: approval + uses: j-fulbright/label-when-approved-action@911c622c75f8ea99ee00cdd66e2cd888bac530c6 # v1.2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + label: 'Ready to merge' + require_committers_approval: 'true' + remove_label_when_approval_missing: 'true' + comment: '✅ This PR has been reviewed and approved — all set for merge!' + pullRequestNumber: ${{ steps.pr.outputs.number }} + + - name: Remove review-related labels + # Not just success(): the action exits 0 and reports isApproved=false when + # the approval does not come from a committer (require_committers_approval), + # and anyone with read access can approve a PR on a public repo. Without + # this gate a drive-by approval clears the review-tracking labels below + # while "Ready to merge" is (correctly) never added. + if: ${{ success() && steps.approval.outputs.isApproved == 'true' }} + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + PR_NUMBER: ${{ steps.pr.outputs.number }} + with: + script: | + const { owner, repo } = context.repo; + // Belt and braces: the `pr` step above already rejects anything that + // is not canonical digits. Kept because Number.parseInt takes the + // longest valid prefix, so "123abc" and "1e3" would coerce to 123 and + // 1 and sail past an isInteger check if that gate ever moved. + const raw = (process.env.PR_NUMBER || "").trim(); + if (!/^[1-9][0-9]*$/.test(raw)) { + core.setFailed(`Invalid PR number in PR_NUMBER: ${JSON.stringify(raw)}`); + return; + } + const issue_number = Number(raw); + // "Work in progress" is owned by maintenance-label-wip.yml (synced from + // review decision + unresolved conversations), so it is not removed here. + const labelsToRemove = ["Needs review", "Backlog", "Can be closed?", "Help needed", "Needs Documentation"]; + + for (const name of labelsToRemove) { + try { + await github.rest.issues.removeLabel({ owner, repo, issue_number, name }); + core.info(`Removed label "${name}"`); + } catch (e) { + core.warning(`Could not remove label "${name}": ${e.message}`); + } + } \ No newline at end of file diff --git a/.github/workflows/maintenance-label-wip-sweep.yml b/.github/workflows/maintenance-label-wip-sweep.yml new file mode 100644 index 0000000000000..48867c5e62f71 --- /dev/null +++ b/.github/workflows/maintenance-label-wip-sweep.yml @@ -0,0 +1,44 @@ +name: "Maintenance: Sweep work in progress labels" + +# Backstop for the WIP-label automation. GitHub Actions has no trigger for a +# review conversation being resolved/unresolved, so the event-driven worker +# (maintenance-label-wip.yml) cannot react to that on its own. This scheduled +# sweep recomputes the "Work in progress" label for every open PR, catching +# conversation resolution and any missed events. Runs from the default branch, +# so its GITHUB_TOKEN has write access. Tune the cron for more/less latency. + +on: + schedule: + - cron: "*/30 * * * *" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: label-wip-sweep + cancel-in-progress: true + +jobs: + sweep: + runs-on: ubuntu-latest + permissions: + contents: read # check out the shared script + issues: write + pull-requests: write + + steps: + # Pin to the default branch: workflow_dispatch can target any branch, and + # checkout would otherwise run that branch's copy of the script. + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.repository.default_branch }} + persist-credentials: false + + - name: Sync "Work in progress" across open PRs + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { syncAllOpen } = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/wip-label.js`); + await syncAllOpen({ github, core, owner: context.repo.owner, repo: context.repo.repo }); diff --git a/.github/workflows/maintenance-label-wip.yml b/.github/workflows/maintenance-label-wip.yml new file mode 100644 index 0000000000000..344e93893e68a --- /dev/null +++ b/.github/workflows/maintenance-label-wip.yml @@ -0,0 +1,65 @@ +name: "Maintenance: Label work in progress" + +# Privileged half of the WIP-label automation. Triggered when the fork-safe +# listener (maintenance-listen-review-wip.yml) finishes, this runs in the +# default-branch context with a write token and syncs the "Work in progress" +# label for the reviewed PR. A cron backstop (maintenance-label-wip-sweep.yml) +# additionally catches conversation-resolution events, which have no trigger. + +on: + workflow_run: + workflows: ["Maintenance: Listen PR review (WIP)"] + types: [completed] + +permissions: + contents: read + +# One run per PR (keyed on the reviewed head branch); newer reviews supersede. +concurrency: + group: label-wip-${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }} + cancel-in-progress: true + +jobs: + wip-label: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest + permissions: + actions: read # download the artifact from the upstream run + contents: read # check out the shared script from the default branch + issues: write + pull-requests: write + + steps: + # Default branch (trusted) so the label logic is never PR-authored code. + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + # The listener runs on pull_request_review (fork-controlled), so its + # artifact is untrusted: download it into RUNNER_TEMP, never the checkout, + # so it cannot overwrite the trusted wip-label.js the next step executes. + - name: Download PR number from the listener run + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: wip-pr-number-${{ github.event.workflow_run.id }} + path: ${{ runner.temp }}/listener + run-id: ${{ github.event.workflow_run.id }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + - id: pr + run: echo "number=$(cat "${{ runner.temp }}/listener/pr.txt")" >> "$GITHUB_OUTPUT" + + - name: Sync "Work in progress" for the PR + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + PR_NUMBER: ${{ steps.pr.outputs.number }} + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { syncOne } = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/wip-label.js`); + const number = Number.parseInt(process.env.PR_NUMBER || "", 10); + if (!Number.isInteger(number) || number <= 0) { + core.setFailed("Invalid PR number from listener artifact"); + return; + } + await syncOne({ github, core, owner: context.repo.owner, repo: context.repo.repo, number }); diff --git a/.github/workflows/maintenance-listen-review-wip.yml b/.github/workflows/maintenance-listen-review-wip.yml new file mode 100644 index 0000000000000..e04ba81660911 --- /dev/null +++ b/.github/workflows/maintenance-listen-review-wip.yml @@ -0,0 +1,26 @@ +name: "Maintenance: Listen PR review (WIP)" + +# Fork PRs give pull_request_review a read-only GITHUB_TOKEN, so this workflow +# only records which PR was reviewed and hands off to maintenance-label-wip.yml +# (workflow_run), which runs in the default-branch context with write access. + +on: + pull_request_review: + types: [submitted, edited, dismissed] + +permissions: + contents: read + +jobs: + save-pr-number: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Save PR number + run: echo "${{ github.event.pull_request.number }}" > pr.txt + + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: wip-pr-number-${{ github.run_id }} + path: pr.txt diff --git a/.github/workflows/maintenance-listen-review.yml b/.github/workflows/maintenance-listen-review.yml new file mode 100644 index 0000000000000..faae7549cb321 --- /dev/null +++ b/.github/workflows/maintenance-listen-review.yml @@ -0,0 +1,23 @@ +name: "Maintenance: Listen PR review" +on: + pull_request_review: + types: [submitted] + +permissions: + contents: read + +jobs: + ping: + if: ${{ github.event.review.state == 'approved' }} + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Save PR number + run: echo "${{ github.event.pull_request.number }}" > pr.txt + + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + # unique name: includes workflow run id + name: pr-number-${{ github.run_id }} + path: pr.txt