From 00da71433aba70a19bb6455d3e31c589fc0dfbf1 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Thu, 13 Jul 2023 10:30:14 -0700 Subject: [PATCH 1/2] Update schedule-fri-0700.yml update actions/github-script to @v6 --- .github/workflows/schedule-fri-0700.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/schedule-fri-0700.yml b/.github/workflows/schedule-fri-0700.yml index 78b0a78dd4..654dc8dfba 100644 --- a/.github/workflows/schedule-fri-0700.yml +++ b/.github/workflows/schedule-fri-0700.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 env: IN_PROGRESS_COLUMN_ID: ${{ secrets.IN_PROGRESS_COLUMN_ID }} with: From e93b19f9a048f1358f7c72bbe7b8a64bf1c96328 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Thu, 13 Jul 2023 10:32:03 -0700 Subject: [PATCH 2/2] Update add-label.js update github/action-script to v6 --- .../add-update-label-weekly/add-label.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/github-actions/trigger-schedule/add-update-label-weekly/add-label.js b/github-actions/trigger-schedule/add-update-label-weekly/add-label.js index 1424d5997d..1e65f74217 100644 --- a/github-actions/trigger-schedule/add-update-label-weekly/add-label.js +++ b/github-actions/trigger-schedule/add-update-label-weekly/add-label.js @@ -74,7 +74,7 @@ async function* getIssueNumsFromColumn(columnId) { let page = 1; while (page < 100) { try { - const results = await github.projects.listCards({ + const results = await github.rest.projects.listCards({ column_id: columnId, per_page: 100, page: page @@ -107,7 +107,7 @@ async function getTimeline(issueNum) { let page = 1 while (true) { try { - const results = await github.issues.listEventsForTimeline({ + const results = await github.rest.issues.listEventsForTimeline({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issueNum, @@ -217,7 +217,7 @@ async function removeLabels(issueNum, ...labels) { for (let label of labels) { try { // https://octokit.github.io/rest.js/v18#issues-remove-label - await github.issues.removeLabel({ + await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issueNum, @@ -237,7 +237,7 @@ async function removeLabels(issueNum, ...labels) { async function addLabels(issueNum, ...labels) { try { // https://octokit.github.io/rest.js/v18#issues-add-labels - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issueNum, @@ -253,7 +253,7 @@ async function postComment(issueNum, assignees, labelString) { try { const assigneeString = createAssigneeString(assignees); const instructions = formatComment(assigneeString, labelString); - await github.issues.createComment({ + await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issueNum, @@ -285,7 +285,7 @@ function isCommentByAssignees(data, assignees) { } async function getAssignees(issueNum) { try { - const results = await github.issues.get({ + const results = await github.rest.issues.get({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issueNum,