Commit Graph
11 Commits
Author SHA1 Message Date
dependabot[bot] c5967de17a build(deps): bump actions/stale from 9 to 10 (#20047)
Bumps [actions/stale](https://github.com/actions/stale) from 9 to 10.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9...v10)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '10'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 08:13:10 -07:00
William Allen 35291ee609 Make CI workflows fork-friendly (#19807)
* Make some CI conditional for forks

Signed-off-by: wallentx <william.allentx@gmail.com>

* fix conditional for build installers

Signed-off-by: wallentx <william.allentx@gmail.com>

* fix macos ARM and Linux ARM onnpre-commit

Signed-off-by: wallentx <william.allentx@gmail.com>

* Testing SSH signing

* Remove conditional for checking signed commits

* Use macos-15 instead of macos-latest, and use public gh linux arm

* fix yaml array vs literal string

---------

Signed-off-by: wallentx <william.allentx@gmail.com>
2025-08-14 12:44:10 -07:00
Kyle Altendorf 368f69cf11 prettier (#17396)
* add prettier to pre-commit

* apply prettier.io
2024-03-13 13:41:04 -07:00
dependabot[bot] 4e514dcb2b build(deps): bump actions/stale from 8 to 9 (#17044)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-14 09:49:52 -06:00
Chris Marslender f455667ce9 Update to the upstream actions (#16614) 2023-10-12 17:54:35 -05:00
J. Eckert d923ae651f Update stale-issue.yml (#8853)
* Update stale-issue.yml

minor QoL updates to wording based on feedback and changed stale PR threshold from 60 days to 45

* Update stale-issue.yml

battling the whitespace yaml demons

* Update stale-issue.yml

battling the whitespace yaml demons

* Update stale-issue.yml

added a EoF newline.
I hate yaml

* Update stale-issue.yml

removing and re-adding newline in a new format to try to appease the pre-commit gods
2021-10-17 15:36:49 -07:00
Kyle Altendorf 8ca6d8dd71 Remove unneeded 's from stale issue message (#8826)
When the `>` approach was used the `'` became part of the text.  Note https://github.com/Chia-Network/chia-blockchain/issues/8344#issuecomment-938552667 vs. https://github.com/Chia-Network/chia-blockchain/issues/8629#issuecomment-943250731.

```console
$ python -c 'import yaml; f = open(".github/workflows/stale-issue.yml"); x = yaml.safe_load(f); print(x)'
{'name': 'Close stale issues', True: {'schedule': [{'cron': '0 11 * * *'}]}, 'jobs': {'stale': {'runs-on': 'ubuntu-latest', 'steps': [{'uses': 'chia-network/stale@main', 'with': {'operations-per-run': 10000, 'ascending': True, 'days-before-issue-stale': 14, 'days-before-issue-close': 7, 'days-before-pr-stale': 60, 'days-before-pr-close': -1, 'exempt-all-pr-milestones': True, 'exempt-all-issue-milestones': True, 'exempt-all-assignees': True, 'stale-issue-label': 'stale-issue', 'stale-pr-label': 'stale-pr', 'remove-stale-when-updated': True, 'stale-issue-message': "'This issue has been flagged as stale, as there has been no activity on it in the last 14 days. If this issue is still affecting you and in need of further review, please comment on it with an update to keep it open.'\n", 'close-issue-message': "'This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers.'\n", 'stale-pr-message': "'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed by the relevant parties.'\n"}}]}}}
```

```console
$ git diff
diff --git a/.github/workflows/stale-issue.yml b/.github/workflows/stale-issue.yml
index 2c7c5839a..1ddb819c6 100644
--- a/.github/workflows/stale-issue.yml
+++ b/.github/workflows/stale-issue.yml
@@ -22,16 +22,16 @@ jobs:
           stale-pr-label: stale-pr
           remove-stale-when-updated: true
           stale-issue-message: >
-            'This issue has been flagged as stale, as there has been no
+            This issue has been flagged as stale, as there has been no
             activity on it in the last 14 days. If this issue is still
             affecting you and in need of further review, please comment
-            on it with an update to keep it open.'
+            on it with an update to keep it open.
           close-issue-message: >
-            'This issue was automatically closed because it has been flagged
+            This issue was automatically closed because it has been flagged
             as stale, and subsequently passed 7 days with no further activity
-            from the submitter or watchers.'
+            from the submitter or watchers.
           stale-pr-message: >
-            'This PR has been flagged as stale due to no activity for over 60
+            This PR has been flagged as stale due to no activity for over 60
             days. It will not be automatically closed, but it has been given a
             stale-pr label and should be manually reviewed by the relevant
-            parties.'
+            parties.
```

```console
$ venv/bin/python -c 'import yaml; f = open(".github/workflows/stale-issue.yml"); x = yaml.safe_load(f); print(x)'
{'name': 'Close stale issues', True: {'schedule': [{'cron': '0 11 * * *'}]}, 'jobs': {'stale': {'runs-on': 'ubuntu-latest', 'steps': [{'uses': 'chia-network/stale@main', 'with': {'operations-per-run': 10000, 'ascending': True, 'days-before-issue-stale': 14, 'days-before-issue-close': 7, 'days-before-pr-stale': 60, 'days-before-pr-close': -1, 'exempt-all-pr-milestones': True, 'exempt-all-issue-milestones': True, 'exempt-all-assignees': True, 'stale-issue-label': 'stale-issue', 'stale-pr-label': 'stale-pr', 'remove-stale-when-updated': True, 'stale-issue-message': 'This issue has been flagged as stale, as there has been no activity on it in the last 14 days. If this issue is still affecting you and in need of further review, please comment on it with an update to keep it open.\n', 'close-issue-message': 'This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers.\n', 'stale-pr-message': 'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed by the relevant parties.\n'}}]}}}
```

Adding the `-` after the `>` additionally avoids the trailing newline.

```console
$ git diff
diff --git a/.github/workflows/stale-issue.yml b/.github/workflows/stale-issue.yml
index 2c7c5839a..1bee15516 100644
--- a/.github/workflows/stale-issue.yml
+++ b/.github/workflows/stale-issue.yml
@@ -21,17 +21,17 @@ jobs:
           stale-issue-label: stale-issue
           stale-pr-label: stale-pr
           remove-stale-when-updated: true
-          stale-issue-message: >
-            'This issue has been flagged as stale, as there has been no
+          stale-issue-message: >-
+            This issue has been flagged as stale, as there has been no
             activity on it in the last 14 days. If this issue is still
             affecting you and in need of further review, please comment
-            on it with an update to keep it open.'
-          close-issue-message: >
-            'This issue was automatically closed because it has been flagged
+            on it with an update to keep it open.
+          close-issue-message: >-
+            This issue was automatically closed because it has been flagged
             as stale, and subsequently passed 7 days with no further activity
-            from the submitter or watchers.'
-          stale-pr-message: >
-            'This PR has been flagged as stale due to no activity for over 60
+            from the submitter or watchers.
+          stale-pr-message: >-
+            This PR has been flagged as stale due to no activity for over 60
             days. It will not be automatically closed, but it has been given a
             stale-pr label and should be manually reviewed by the relevant
-            parties.'
+            parties.
```

```console
$ python -c 'import yaml; f = open(".github/workflows/stale-issue.yml"); x = yaml.safe_load(f); print(x)'
{'name': 'Close stale issues', True: {'schedule': [{'cron': '0 11 * * *'}]}, 'jobs': {'stale': {'runs-on': 'ubuntu-latest', 'steps': [{'uses': 'chia-network/stale@main', 'with': {'operations-per-run': 10000, 'ascending': True, 'days-before-issue-stale': 14, 'days-before-issue-close': 7, 'days-before-pr-stale': 60, 'days-before-pr-close': -1, 'exempt-all-pr-milestones': True, 'exempt-all-issue-milestones': True, 'exempt-all-assignees': True, 'stale-issue-label': 'stale-issue', 'stale-pr-label': 'stale-pr', 'remove-stale-when-updated': True, 'stale-issue-message': 'This issue has been flagged as stale, as there has been no activity on it in the last 14 days. If this issue is still affecting you and in need of further review, please comment on it with an update to keep it open.', 'close-issue-message': 'This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers.', 'stale-pr-message': 'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed by the relevant parties.'}}]}}}
```
2021-10-15 10:35:57 -07:00
dustinface 5b7bb5e0f6 github|setup: Introduce pre-commit.yml to force pre-commit to pass (#8811)
* github: Add `pre-commit.yml`

This runs `pre-commit` as github action for all PRs and on pushes to 
`main`.

* github: Drop trailing whitespaces in `stale_issue.yml`

* setup: Ignore type errors for `setup` call
2021-10-13 10:26:15 -07:00
J. Eckert 085191d18d Update stale-issue.yml
bro do you even indent? (whoops)
2021-10-12 10:25:15 -07:00
J. Eckert 9d58370ba7 Update stale-issue.yml
reformatted message text to comply with yaml line wrapping
2021-10-12 10:25:15 -07:00
J. Eckert 2035fc803e GH Action to tag and close stale issues (#7140)
* Create stale-issue.yml

Created initial Stale Issue/PR script config with the following configuration parameters:

Run the script every day at 4am PST (11am UTC)
Flag issues as stale after 14 days of no activity with stale-issue label.
Flag PRs as stale after 60 days of no activity with stale-pr label.
Close stale issues after a further 7 days of no activty.
Do NOT close stale PRs, only warn with comments.
Ignore stale status for any Issues or PRs with an assigned milestone, or an assignee.
Remove stable labels if they have been updated

This change will not be put into a PR for review until this entire flow has been tested on release-test first.

* Update stale-issue.yml

changing to main to incorporate some needed fixes
2021-07-08 11:20:29 -06:00