Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions migrations/20251215115722_add_kind_to_build.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Add down migration script here
ALTER TABLE build
DROP COLUMN kind;
10 changes: 10 additions & 0 deletions migrations/20251215115722_add_kind_to_build.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Add up migration script here
ALTER TABLE build
ADD COLUMN kind TEXT NOT NULL DEFAULT 'try';

UPDATE build
SET kind =
CASE
WHEN build.branch LIKE '%auto' THEN 'auto'
ELSE 'try'
END;
5 changes: 5 additions & 0 deletions src/bors/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub enum CommentMetadata {
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum CommentTag {
TryBuildStarted,
AutoBuildStarted,
}

impl Comment {
Expand Down Expand Up @@ -199,6 +200,10 @@ pub fn try_build_started_comment(
}

pub fn append_workflow_links_to_comment(comment_content: &mut String, workflow_urls: Vec<String>) {
if !comment_content.ends_with("\n") {
comment_content.push('\n');
}

if workflow_urls.len() == 1 {
comment_content.push_str(&format!("\n**Workflow**: {}", workflow_urls[0]));
} else {
Expand Down
Loading