-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize on common Deployments codebase conventions
- Loading branch information
1 parent
28c06d7
commit 7ac5bf1
Showing
29 changed files
with
73,725 additions
and
22,054 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 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,49 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
project: './tsconfig.json', | ||
}, | ||
plugins: ["header"], | ||
extends: ["eslint:recommended"], | ||
ignorePatterns: ["/out/**/*"], | ||
rules: { | ||
"header/header": [ | ||
2, | ||
"line", | ||
[ | ||
" Copyright (c) Microsoft Corporation.", | ||
" Licensed under the MIT License.", | ||
], | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.ts"], | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jest/all", | ||
], | ||
rules: { | ||
"jest/require-hook": "off", | ||
"jest/no-hooks": "off", | ||
"jest/prefer-expect-assertions": "off", | ||
"jest/expect-expect": [ | ||
"error", | ||
{ | ||
assertFunctionNames: ["expect*"], | ||
}, | ||
], | ||
"jest/prefer-importing-jest-globals": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["*.js"], | ||
env: { node: true }, | ||
}, | ||
], | ||
}; |
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 |
---|---|---|
@@ -1,26 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
groups: | ||
actions-minor: | ||
update-types: | ||
- minor | ||
- patch | ||
|
||
- package-ecosystem: npm | ||
directory: / | ||
interval: "weekly" | ||
day: "sunday" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
groups: | ||
npm-development: | ||
dependency-type: development | ||
update-types: | ||
- minor | ||
- patch | ||
npm-production: | ||
dependency-type: production | ||
update-types: | ||
- patch | ||
interval: "weekly" | ||
day: "sunday" |
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 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,73 @@ | ||
|
||
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! :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: |
Empty file.
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 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
Oops, something went wrong.