I see that there is a priority column, but I don’t see a way to specify such.
Any info on this before I try to dig through the code.
There are cases where we might want to fast track a PR in for some sort of fix and so on.
thanks,
First day using bors in production and it is working great!
-Jason
I’ve never used it myself but it looks like you can set it with something like bors r+ p=1
. I guess it could use documentation.
def regex, do: ~r/^#{@command_trigger}:?\s(?<command>.+)/i
def trim_and_parse_cmd(%{"command" => cmd}) do
cmd
|> String.trim()
|> parse_cmd()
end
def trim_and_parse_cmd(_), do: []
def parse_cmd("try" <> arguments), do: [{:try, arguments}]
def parse_cmd("r+ p=" <> rest), do: parse_priority(rest) ++ [:activate]
def parse_cmd("r+" <> _), do: [:activate]
def parse_cmd("r-" <> _), do: [:deactivate]
def parse_cmd("r=" <> arguments), do: parse_activation_args(arguments)
def parse_cmd("delegate+" <> _), do: [:delegate]
def parse_cmd("delegate=" <> arguments), do: parse_delegation_args(arguments)
def parse_cmd("+r" <> _), do: [{:autocorrect, "r+"}]
def parse_cmd("-r" <> _), do: [{:autocorrect, "r-"}]
def parse_cmd("ping" <> _), do: [:ping]
def parse_cmd("p=" <> rest), do: parse_priority(rest)
def parse_cmd("retry" <> _), do: [:retry]
1 Like
couchand:
bors r+ p=1
Thanks - I was just about to search through the code!
Oh, oops, sorry about that. Completely forgot to document that function after adding it!
committed 09:45PM - 23 Jul 18 UTC
https://forum.bors.tech/t/priority-column/195