mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Switch issue-close-app to GH Actions and workflow cleanup (#2624)
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/issue-close-app.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/issue-close-app.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,7 +0,0 @@ | |||||||
| comment: >- |  | ||||||
|   https://github.com/esphome/esphome/issues/430 |  | ||||||
| issueConfigs: |  | ||||||
| - content: |  | ||||||
|   - "OTHERWISE THE ISSUE WILL BE CLOSED AUTOMATICALLY" |  | ||||||
|  |  | ||||||
| caseInsensitive: false |  | ||||||
							
								
								
									
										36
									
								
								.github/lock.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										36
									
								
								.github/lock.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,36 +0,0 @@ | |||||||
| # Configuration for Lock Threads - https://github.com/dessant/lock-threads |  | ||||||
|  |  | ||||||
| # Number of days of inactivity before a closed issue or pull request is locked |  | ||||||
| daysUntilLock: 7 |  | ||||||
|  |  | ||||||
| # Skip issues and pull requests created before a given timestamp. Timestamp must |  | ||||||
| # follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable |  | ||||||
| skipCreatedBefore: false |  | ||||||
|  |  | ||||||
| # Issues and pull requests with these labels will be ignored. Set to `[]` to disable |  | ||||||
| exemptLabels: |  | ||||||
|   - keep-open |  | ||||||
|  |  | ||||||
| # Label to add before locking, such as `outdated`. Set to `false` to disable |  | ||||||
| lockLabel: false |  | ||||||
|  |  | ||||||
| # Comment to post before locking. Set to `false` to disable |  | ||||||
| lockComment: false |  | ||||||
|  |  | ||||||
| # Assign `resolved` as the reason for locking. Set to `false` to disable |  | ||||||
| setLockReason: false |  | ||||||
|  |  | ||||||
| # Limit to only `issues` or `pulls` |  | ||||||
| # only: issues |  | ||||||
|  |  | ||||||
| # Optionally, specify configuration settings just for `issues` or `pulls` |  | ||||||
| # issues: |  | ||||||
| #   exemptLabels: |  | ||||||
| #     - help-wanted |  | ||||||
| #   lockLabel: outdated |  | ||||||
|  |  | ||||||
| # pulls: |  | ||||||
| #   daysUntilLock: 30 |  | ||||||
|  |  | ||||||
| # Repository to extend settings from |  | ||||||
| # _extends: repo |  | ||||||
							
								
								
									
										14
									
								
								.github/workflows/lock.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/lock.yml
									
									
									
									
										vendored
									
									
								
							| @@ -9,13 +9,19 @@ permissions: | |||||||
|   issues: write |   issues: write | ||||||
|   pull-requests: write |   pull-requests: write | ||||||
|  |  | ||||||
|  | concurrency: | ||||||
|  |   group: lock | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   lock: |   lock: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: dessant/lock-threads@v2 |       - uses: dessant/lock-threads@v3 | ||||||
|         with: |         with: | ||||||
|           github-token: ${{ github.token }} |           pr-inactive-days: "1" | ||||||
|           pr-lock-inactive-days: "1" |  | ||||||
|           pr-lock-reason: "" |           pr-lock-reason: "" | ||||||
|           process-only: prs |           exclude-any-pr-labels: keep-open | ||||||
|  |  | ||||||
|  |           issue-inactive-days: "7" | ||||||
|  |           issue-lock-reason: "" | ||||||
|  |           exclude-any-issue-labels: keep-open | ||||||
|   | |||||||
							
								
								
									
										20
									
								
								.github/workflows/stale.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/stale.yml
									
									
									
									
										vendored
									
									
								
							| @@ -9,13 +9,15 @@ permissions: | |||||||
|   issues: write |   issues: write | ||||||
|   pull-requests: write |   pull-requests: write | ||||||
|  |  | ||||||
|  | concurrency: | ||||||
|  |   group: lock | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   stale: |   stale: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/stale@v4 |       - uses: actions/stale@v4 | ||||||
|         with: |         with: | ||||||
|           repo-token: ${{ github.token }} |  | ||||||
|           days-before-pr-stale: 90 |           days-before-pr-stale: 90 | ||||||
|           days-before-pr-close: 7 |           days-before-pr-close: 7 | ||||||
|           days-before-issue-stale: -1 |           days-before-issue-stale: -1 | ||||||
| @@ -28,3 +30,19 @@ jobs: | |||||||
|             pull request has been automatically marked as stale because of that |             pull request has been automatically marked as stale because of that | ||||||
|             and will be closed if no further activity occurs within 7 days. |             and will be closed if no further activity occurs within 7 days. | ||||||
|             Thank you for your contributions. |             Thank you for your contributions. | ||||||
|  |  | ||||||
|  |   # Use stale to automatically close issues with a reference to the issue tracker | ||||||
|  |   close-issues: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/stale@v4 | ||||||
|  |         with: | ||||||
|  |           days-before-pr-stale: -1 | ||||||
|  |           days-before-pr-close: -1 | ||||||
|  |           days-before-issue-stale: 1 | ||||||
|  |           days-before-issue-close: 1 | ||||||
|  |           remove-stale-when-updated: true | ||||||
|  |           stale-issue-label: "stale" | ||||||
|  |           exempt-issue-labels: "not-stale" | ||||||
|  |           stale-issue-message: > | ||||||
|  |             https://github.com/esphome/esphome/issues/430 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user