Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 40d666e

Browse files
Merge pull request #1750 from splunk/archive-reminder
Adding a workflow to remind contributors that the repo will be archived
2 parents f5876de + 78386d0 commit 40d666e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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.GITHUB_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+
})
40+

0 commit comments

Comments
 (0)