https://github.com/kibotu/stale-bot
Tags and removes branches older than x days.
https://github.com/kibotu/stale-bot
branches git gradle groovy jenkins maintenance pipeline stale stale-bot
Last synced: 3 months ago
JSON representation
Tags and removes branches older than x days.
- Host: GitHub
- URL: https://github.com/kibotu/stale-bot
- Owner: kibotu
- License: apache-2.0
- Created: 2022-02-04T10:07:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T11:39:38.000Z (over 3 years ago)
- Last Synced: 2025-02-05T05:29:41.550Z (4 months ago)
- Topics: branches, git, gradle, groovy, jenkins, maintenance, pipeline, stale, stale-bot
- Language: Groovy
- Homepage:
- Size: 207 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stale-Bot
Tags and removes branches older than `x` days.
### Support
[Jenkins](stale-bot/Jenkinsfile.groovy)[Gradle Module](stale-bot/build.gradle)
### How to use
```sh
./gradlew purge
```Note: It's ignoring master and develop branch by default.
### Options
Either via `gradle.properties`
```groovy
# a branch is stale after x days
days=35
# updates remote, pushing tags and deleting stale branches, default true
updateRemote=true
```or via gradle command line arguments
```sh
./gradlew purge -Ddays=35 -DupdateRemote=true
```[](Screenshot.png)
## Contributors
- [Jan Rabe](https://kibotu.net)
- [Yasar Naci Gündüz](https://github.com/ColdTea-Projects)### License
Copyright 2022 Jan RabeLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.