Skip to content

test for mergify #3

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
pull_request_rules:
- name: tag no test cases update when update source code
conditions:
- files~=^lib/
- -files~=^t/
actions:
label:
add:
- no-test-cases
- name: tag test cases update when update source code
conditions:
- files~=^lib/
- files~=^t/
actions:
label:
remove:
- no-test-cases
- name: ask to resolve conflict
conditions:
- conflict
actions:
comment:
message: This pull request is now in conflicts.
1 change: 1 addition & 0 deletions lib/resty/nsq/queue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ _M._VERSION = '0.01'
_M.new_tab = new_tab


-- we test here
local MAX_SIZE = 5000

local mt = { __index = _M }
Expand Down
3 changes: 3 additions & 0 deletions t/queue.t
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ nil:fulled, in 11
if not ret then
ngx.say(ret, ":", err, ", in ", i)
-- ngx.log(ngx.ERR, ret, ":", err, ", in ", i)
-- ngx.log(ngx.ERR, ret, ":", err, ", in ", i)
-- ngx.log(ngx.ERR, ret, ":", err, ", in ", i)
-- ngx.log(ngx.ERR, ret, ":", err, ", in ", i)
end

if i == 5 then
Expand Down