File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub enum BorsRepositoryEvent {
7
7
/// A comment was posted on a pull request.
8
8
Comment ( PullRequestComment ) ,
9
9
/// When a new commit is pushed to the pull request branch.
10
- PullRequestPushed ( PullRequestPushed ) ,
10
+ PullRequestCommitPushed ( PullRequestPushed ) ,
11
11
/// When the pull request is edited by its author
12
12
PullRequestEdited ( PullRequestEdited ) ,
13
13
/// A workflow run on Github Actions or a check run from external CI system has been started.
@@ -23,7 +23,7 @@ impl BorsRepositoryEvent {
23
23
pub fn repository ( & self ) -> & GithubRepoName {
24
24
match self {
25
25
BorsRepositoryEvent :: Comment ( comment) => & comment. repository ,
26
- BorsRepositoryEvent :: PullRequestPushed ( payload) => & payload. repository ,
26
+ BorsRepositoryEvent :: PullRequestCommitPushed ( payload) => & payload. repository ,
27
27
BorsRepositoryEvent :: PullRequestEdited ( payload) => & payload. repository ,
28
28
BorsRepositoryEvent :: WorkflowStarted ( workflow) => & workflow. repository ,
29
29
BorsRepositoryEvent :: WorkflowCompleted ( workflow) => & workflow. repository ,
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ pub async fn handle_bors_repository_event(
122
122
. instrument ( span. clone ( ) )
123
123
. await ?;
124
124
}
125
- BorsRepositoryEvent :: PullRequestPushed ( payload) => {
125
+ BorsRepositoryEvent :: PullRequestCommitPushed ( payload) => {
126
126
let span =
127
127
tracing:: info_span!( "Pull request pushed" , repo = payload. repository. to_string( ) ) ;
128
128
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ fn parse_pull_request_events(body: &[u8]) -> anyhow::Result<Option<BorsEvent>> {
223
223
) ) )
224
224
}
225
225
PullRequestEventAction :: Synchronize => Ok ( Some ( BorsEvent :: Repository (
226
- BorsRepositoryEvent :: PullRequestPushed ( PullRequestPushed {
226
+ BorsRepositoryEvent :: PullRequestCommitPushed ( PullRequestPushed {
227
227
pull_request : payload. pull_request . into ( ) ,
228
228
repository : repository_name,
229
229
} ) ,
You can’t perform that action at this time.
0 commit comments