-
Notifications
You must be signed in to change notification settings - Fork 4.3k
refactor: re-organize PR linter #32969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b5278c1
mid work
iliapolo d8d8427
mid work
iliapolo 493539a
fix tests
iliapolo 98c3ec1
Merge branch 'main' into epolon/prlint-codecov
iliapolo c5da0d3
mid work
iliapolo 5099667
Big-ass refactor
rix0rrr a425b37
Separate evaluation from execution
rix0rrr 4a6c6f1
Refactor tests to new API
rix0rrr aa42342
Remove SHA
rix0rrr 3f56cde
Remove codecov stuff
rix0rrr f274ee0
Don't request exception if requested by someone else
rix0rrr 0716640
Give the linter a notation of its own username
rix0rrr 860469f
Do not keep on reviewing if the review is already up-to-date
rix0rrr 8f56bf3
Just do reviews
rix0rrr b7fa33c
Fix tests
rix0rrr 2c0727a
Review comments
rix0rrr 15a032c
Explain motivation for this worfklow
rix0rrr 935a77b
Merge branch 'main' into huijbers/refactor-prlinter
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.github/workflows/pr-linter-trigger.yml → ...ub/workflows/pr-linter-review-trigger.yml
This file contains hidden or 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 hidden or 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 hidden or 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,18 @@ | ||
|
|
||
| export const LINTER_LOGIN = 'aws-cdk-automation'; | ||
|
|
||
| export const CODE_BUILD_CONTEXT = 'AWS CodeBuild us-east-1 (AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv)'; | ||
|
|
||
| /** | ||
| * Types of exemption labels in aws-cdk project. | ||
| */ | ||
| export enum Exemption { | ||
| README = 'pr-linter/exempt-readme', | ||
| TEST = 'pr-linter/exempt-test', | ||
| INTEG_TEST = 'pr-linter/exempt-integ-test', | ||
| BREAKING_CHANGE = 'pr-linter/exempt-breaking-change', | ||
| CLI_INTEG_TESTED = 'pr-linter/cli-integ-tested', | ||
| REQUEST_CLARIFICATION = 'pr/reviewer-clarification-requested', | ||
| REQUEST_EXEMPTION = 'pr-linter/exemption-requested', | ||
| CODECOV = "pr-linter/exempt-codecov", | ||
| } | ||
This file contains hidden or 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,36 @@ | ||
| import { Endpoints } from '@octokit/types'; | ||
| import { StatusEvent } from '@octokit/webhooks-definitions/schema'; | ||
| import type { components } from '@octokit/openapi-types'; | ||
|
|
||
| export type GitHubPr = | ||
| Endpoints['GET /repos/{owner}/{repo}/pulls/{pull_number}']['response']['data']; | ||
|
|
||
|
|
||
| export interface GitHubComment { | ||
| id: number; | ||
| } | ||
|
|
||
| export interface Review { | ||
| id: number; | ||
| user: { | ||
| login: string; | ||
| }; | ||
| body: string; | ||
| state: string; | ||
| } | ||
|
|
||
| export interface GithubStatusEvent { | ||
| readonly sha: string; | ||
| readonly state?: StatusEvent['state']; | ||
| readonly context?: string; | ||
| } | ||
|
|
||
| export interface GitHubLabel { | ||
| readonly name: string; | ||
| } | ||
|
|
||
| export interface GitHubFile { | ||
| readonly filename: string; | ||
| } | ||
|
|
||
| export type CheckRunConclusion = components['schemas']['check-run']['conclusion'] | ||
rix0rrr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.