Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add dependabot + other standard Bicep project config (#142)
- Loading branch information
1 parent
95b309a
commit 7e7091d
Showing
23 changed files
with
5,547 additions
and
393 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "sunday" | ||
| - package-ecosystem: "npm" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "sunday" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| id: issueMgmt.recentActivity | ||
| name: GitOps.PullRequestIssueManagement | ||
| description: Manages recent activity on issues - closes stale issues, adds updated issues to triage | ||
| owner: | ||
| resource: repository | ||
| disabled: false | ||
| where: | ||
| configuration: | ||
| resourceManagementConfiguration: | ||
| scheduledSearches: | ||
| - description: "Close issues with 'Status: No Recent Activity'" | ||
| frequencies: | ||
| - hourly: | ||
| hour: 12 | ||
| filters: | ||
| - isIssue | ||
| - isOpen | ||
| - hasLabel: | ||
| label: "Needs: Author Feedback" | ||
| - hasLabel: | ||
| label: "Status: No Recent Activity" | ||
| - noActivitySince: | ||
| days: 3 | ||
| actions: | ||
| - closeIssue | ||
|
|
||
| - description: "Add 'Status: No Recent Activity' label to issues with 'Needs: Author Feedback' and inactive" | ||
| frequencies: | ||
| - hourly: | ||
| hour: 12 | ||
| filters: | ||
| - isIssue | ||
| - isOpen | ||
| - hasLabel: | ||
| label: "Needs: Author Feedback" | ||
| - noActivitySince: | ||
| days: 7 | ||
| - isNotLabeledWith: | ||
| label: "Status: No Recent Activity" | ||
| actions: | ||
| - addLabel: | ||
| label: "Status: No Recent Activity" | ||
| - addReply: | ||
| reply: "Hi @${issueAuthor}, this issue has been marked as stale because it was labeled as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 3 days of this comment**. Thanks for contributing to bicep! :smile: :mechanical_arm:" | ||
|
|
||
| eventResponderTasks: | ||
| - description: "Replace 'Needs: Author Feedback' with 'Needs: Triage' label when author comments" | ||
| if: | ||
| - payloadType: Issue_Comment | ||
| - isAction: | ||
| action: Created | ||
| - isActivitySender: | ||
| issueAuthor: True | ||
| - hasLabel: | ||
| label: "Needs: Author Feedback" | ||
| - isOpen | ||
| then: | ||
| - addLabel: | ||
| label: "Needs: Triage :mag:" | ||
| - removeLabel: | ||
| label: "Needs: Author Feedback" | ||
|
|
||
| - description: "Remove 'Status: No Recent Activity' label when an issue is commented on" | ||
| if: | ||
| - payloadType: Issue_Comment | ||
| - hasLabel: | ||
| label: "Status: No Recent Activity" | ||
| then: | ||
| - removeLabel: | ||
| label: "Status: No Recent Activity" | ||
| onFailure: | ||
| onSuccess: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| id: issueMgmt.triageNew | ||
| name: GitOps.PullRequestIssueManagement | ||
| description: Adds a triage tag to new issues | ||
| owner: | ||
| resource: repository | ||
| disabled: false | ||
| where: | ||
| configuration: | ||
| resourceManagementConfiguration: | ||
| eventResponderTasks: | ||
| - description: "Adds 'Needs: Triage' label for new issues" | ||
| if: | ||
| - payloadType: Issues | ||
| - isAction: | ||
| action: Opened | ||
| then: | ||
| - addLabel: | ||
| label: "Needs: Triage :mag:" | ||
| onFailure: | ||
| onSuccess: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| id: prMgmt.dependabot | ||
| name: GitOps.PullRequestIssueManagement | ||
| description: Approves and merges Dependabot PRs | ||
| owner: | ||
| resource: repository | ||
| disabled: false | ||
| where: | ||
| configuration: | ||
| resourceManagementConfiguration: | ||
| eventResponderTasks: | ||
| - description: Approve PRs submitted by dependabot with the "dependencies" label | ||
| if: | ||
| - payloadType: Pull_Request | ||
| - hasLabel: | ||
| label: dependencies | ||
| - not: | ||
| hasLabel: | ||
| label: auto-merge | ||
| - isActivitySender: | ||
| user: dependabot[bot] | ||
| issueAuthor: False | ||
| then: | ||
| - approvePullRequest: | ||
| comment: ":shipit:" | ||
| - addLabel: | ||
| label: auto-merge | ||
| - enableAutoMerge: | ||
| mergeMethod: Squash | ||
| onFailure: | ||
| onSuccess: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Check dist | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| check-dist: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set Node.js 20.x | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 20.x | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Rebuild the dist/ directory | ||
| run: npm run package | ||
|
|
||
| - name: Compare the expected and actual dist/ directories | ||
| run: | | ||
| if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | ||
| echo "Detected uncommitted changes after build. See status below:" | ||
| git diff | ||
| exit 1 | ||
| fi | ||
| id: diff |
Oops, something went wrong.