From 4bb713d13a474765d9597e8ac0bea88610395afc Mon Sep 17 00:00:00 2001
From: David Leal
Date: Tue, 2 Mar 2021 18:35:20 -0600
Subject: [PATCH 1/6] feat: Setup Stale workflow
---
.github/workflows/stale.yml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 .github/workflows/stale.yml
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 000000000..6732470c4
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,25 @@
+name: 'Stale'
+on:
+ schedule:
+ - cron: '30 1 * * *'
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@main
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ stale-pr-message: 'Hello there,
+ We notice that this PR has been inactive for awhile now. It would be a waste of your time and effort if we just close this PR and
+ throw away the SVGs in here. Thus, 1 month from now, if this PR remains inactive/stale, we will fork your repo, fix any issues,
+ and merge your icons ourselves.
+
+ Since GitHub tracks contributions by commits, you will still be credited.
+ We also hope that you will help us merge this PR before the deadline comes.
+
+ Cheers,
+ Devicon Team'
+ stale-pr-label: 'stale'
+ days-before-pr-stale: 30
+ days-before-pr-close: -1
From 8798f22d8407d234748ef1c5c397c110cacc7266 Mon Sep 17 00:00:00 2001
From: David Leal
Date: Sun, 7 Mar 2021 13:20:09 -0600
Subject: [PATCH 2/6] Change stale pull request message
Thanks, @Thomas-Boi!
---
.github/workflows/stale.yml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 6732470c4..683a9e707 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -11,15 +11,15 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'Hello there,
- We notice that this PR has been inactive for awhile now. It would be a waste of your time and effort if we just close this PR and
- throw away the SVGs in here. Thus, 1 month from now, if this PR remains inactive/stale, we will fork your repo, fix any issues,
- and merge your icons ourselves.
- Since GitHub tracks contributions by commits, you will still be credited.
- We also hope that you will help us merge this PR before the deadline comes.
+ We notice that this PR has been inactive for awhile now. If there are any changes that's suitable for our repo, we would love to have it.
+ It would be great if you can continue with this PR; but if you can't, we might fork your changes and merge the changes ourselves.
- Cheers,
- Devicon Team'
+ Since GitHub tracks contributions by commits, you will still be credited.
+ Let us know what you think. 😃
+
+ Cheers,
+ Devicon Team.'
stale-pr-label: 'stale'
days-before-pr-stale: 30
days-before-pr-close: -1
From b3b9ed54235e7892c8fc271324c1504eb82e15e3 Mon Sep 17 00:00:00 2001
From: David Leal
Date: Sun, 7 Mar 2021 15:03:31 -0600
Subject: [PATCH 3/6] Add a note on `README.md` about stale PRs
---
README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/README.md b/README.md
index 160d27b9e..531668573 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,7 @@
Getting started
Requesting icon
Contributing
+ Stale pull requests
Go build yourself
@@ -155,6 +156,10 @@ Add css rules in your stylesheet
to see how you can contribute to this project.
+## Stale pull requests
+
+After a pull request has been open for over 30 days with no activity or response from the author, it'll be automatically marked as stale. We might fork your changes and merge the changes ourselves. Since GitHub tracks contributions by commits, you will be credited.
+
Go build yourself
Feel free to follow those steps when you want to build the font
From ded07133deabfeaddbce50748d8b76d034b86163 Mon Sep 17 00:00:00 2001
From: David Leal
Date: Sun, 7 Mar 2021 15:24:52 -0600
Subject: [PATCH 4/6] Fix some issues with the workflow
---
.github/workflows/stale.yml | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 683a9e707..b563c112b 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -11,15 +11,14 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'Hello there,
+ We notice that this PR has been inactive for awhile now. If there are any changes that is suitable for our repository,
+ we would love to have it. It would be great if you can continue with this PR, but if you cannot, we might fork your changes and merge the changes ourselves,
- We notice that this PR has been inactive for awhile now. If there are any changes that's suitable for our repo, we would love to have it.
- It would be great if you can continue with this PR; but if you can't, we might fork your changes and merge the changes ourselves.
+ Since GitHub tracks contributions by commits, you will still be credited.
+ Let us know what you think. 😃
- Since GitHub tracks contributions by commits, you will still be credited.
- Let us know what you think. 😃
-
- Cheers,
- Devicon Team.'
+ Cheers,
+ Devicon Team'
stale-pr-label: 'stale'
days-before-pr-stale: 30
days-before-pr-close: -1
From a2fdbb9306d3f8d654df85edb3ea77d60d863f4c Mon Sep 17 00:00:00 2001
From: David Leal
Date: Sun, 7 Mar 2021 15:37:04 -0600
Subject: [PATCH 5/6] Apply suggestions from code review
Co-authored-by: Clemens Bastian
---
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 531668573..4ac6b4ca8 100644
--- a/README.md
+++ b/README.md
@@ -156,9 +156,10 @@ Add css rules in your stylesheet
to see how you can contribute to this project.
-## Stale pull requests
-
+Stale pull requests
+
After a pull request has been open for over 30 days with no activity or response from the author, it'll be automatically marked as stale. We might fork your changes and merge the changes ourselves. Since GitHub tracks contributions by commits, you will be credited.
+
Go build yourself
From 23fcadc9e0163d2f69c900411899d2ebfb793ef8 Mon Sep 17 00:00:00 2001
From: David Leal
Date: Mon, 8 Mar 2021 13:00:06 -0600
Subject: [PATCH 6/6] Apply suggestions from code review
Co-authored-by: Clemens Bastian
---
.github/workflows/stale.yml | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index b563c112b..859b053da 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -11,14 +11,12 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'Hello there,
- We notice that this PR has been inactive for awhile now. If there are any changes that is suitable for our repository,
- we would love to have it. It would be great if you can continue with this PR, but if you cannot, we might fork your changes and merge the changes ourselves,
+ we noticed that this PR has been inactive for a while now. If there are any changes which are suitable for our repository,
+ we would love to have it. It would be great if you can continue with this PR, but if you cannot, we might fork your changes and merge the changes ourselves.
Since GitHub tracks contributions by commits, you will still be credited.
- Let us know what you think. 😃
- Cheers,
- Devicon Team'
+ Let us know what you think 😃'
stale-pr-label: 'stale'
days-before-pr-stale: 30
days-before-pr-close: -1