From c57720967b750e267213bf3173e5fc03db2948b6 Mon Sep 17 00:00:00 2001 From: jcatera-splunk Date: Wed, 25 Jun 2025 19:27:38 -0700 Subject: [PATCH 1/3] Create archive-reminder.yml Adding a workflow for the archive reminder. --- .github/workflows/archive-reminder.yml | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/archive-reminder.yml diff --git a/.github/workflows/archive-reminder.yml b/.github/workflows/archive-reminder.yml new file mode 100644 index 000000000..58e58e669 --- /dev/null +++ b/.github/workflows/archive-reminder.yml @@ -0,0 +1,39 @@ +name: Splunk Observability Cloud GitHub repository archive reminder + +on: + pull_request: + types: [opened, synchronize] + +jobs: + reminder: + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + actions: read + issues: write + checks: write + pull-requests: write + + + steps: + - name: Add PR Comment + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.MY_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const pr = await github.rest.pulls.get({ + owner, + repo, + pull_number: number, + }); + + const author = pr.data.user.login; + + await github.rest.issues.createComment({ + owner, + repo, + issue_number: number, + body: `@${author}, please note this GitHub repository will be archived on August 30, 2025. On July 1st, no new contributors will be added to the repository, and only contributors with prior contributions will be able to make pull requests (PRs). From August 1st to August 30th, only Collaborators and Organization members will be able to create PRs.` + }) From 039c6e68a13cd25cf9542069c9fe16eecb82793d Mon Sep 17 00:00:00 2001 From: jcatera-splunk Date: Thu, 26 Jun 2025 16:34:22 -0700 Subject: [PATCH 2/3] Update archive-reminder.yml Changed `MY_TOKEN` to `GITHUB_TOKEN`. --- .github/workflows/archive-reminder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/archive-reminder.yml b/.github/workflows/archive-reminder.yml index 58e58e669..e1846965c 100644 --- a/.github/workflows/archive-reminder.yml +++ b/.github/workflows/archive-reminder.yml @@ -20,7 +20,7 @@ jobs: - name: Add PR Comment uses: actions/github-script@v6 with: - github-token: ${{ secrets.MY_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const { owner, repo, number } = context.issue; const pr = await github.rest.pulls.get({ From a476e1cb63616c5a2a7eb792c4f20e4106e18815 Mon Sep 17 00:00:00 2001 From: Joe Catera Date: Thu, 26 Jun 2025 16:41:30 -0700 Subject: [PATCH 3/3] Changed MY_TOKEN to GITHUB_TOKEN. --- .github/workflows/heretto-reminder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/heretto-reminder.yml b/.github/workflows/heretto-reminder.yml index 9b201e80f..b54f116bb 100644 --- a/.github/workflows/heretto-reminder.yml +++ b/.github/workflows/heretto-reminder.yml @@ -20,7 +20,7 @@ jobs: - name: Add PR Comment uses: actions/github-script@v6 with: - github-token: ${{ secrets.MY_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const { owner, repo, number } = context.issue; const pr = await github.rest.pulls.get({