Skip to content

Commit c577209

Browse files
Create archive-reminder.yml
Adding a workflow for the archive reminder.
1 parent f5876de commit c577209

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Splunk Observability Cloud GitHub repository archive reminder
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
reminder:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
13+
actions: read
14+
issues: write
15+
checks: write
16+
pull-requests: write
17+
18+
19+
steps:
20+
- name: Add PR Comment
21+
uses: actions/github-script@v6
22+
with:
23+
github-token: ${{ secrets.MY_TOKEN }}
24+
script: |
25+
const { owner, repo, number } = context.issue;
26+
const pr = await github.rest.pulls.get({
27+
owner,
28+
repo,
29+
pull_number: number,
30+
});
31+
32+
const author = pr.data.user.login;
33+
34+
await github.rest.issues.createComment({
35+
owner,
36+
repo,
37+
issue_number: number,
38+
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.`
39+
})

0 commit comments

Comments
 (0)