Compare commits

..

5 Commits

Author SHA1 Message Date
ff3b0de43a Merge pull request 'Configure Renovate' (#1) from renovate/configure into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.front.kjuulh.io/kjuulh/github-presence/pulls/1
2022-10-26 14:44:28 +00:00
1cbf81d40f Add renovate.json
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-10-26 14:41:28 +00:00
a1ce618713 Add .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-26 16:16:01 +02:00
6aaebdff9a Add .drone.yml
Some checks failed
continuous-integration/drone Build encountered an error
2022-10-26 11:29:37 +02:00
5c82a53361 update 2022-10-14 21:52:49 +02:00
4 changed files with 16 additions and 4 deletions

9
.drone.yml Executable file
View File

@@ -0,0 +1,9 @@
kind: pipeline
type: docker
name: "test"
steps:
- name: test
image: harbor.front.kjuulh.io/docker-proxy/library/bash:latest
commands:
- echo 'Run tests'

View File

@@ -1,5 +1,3 @@
local notify = require "github_presence.notify"
local M = {}
function M.set_status(activity)
@@ -7,7 +5,6 @@ function M.set_status(activity)
local _ = vim.fn.systemlist(
string.format("github-status --message 'Currently editting: %s'", activity.file)
)
notify.info "set status"
end
return M

View File

@@ -7,7 +7,10 @@ return {
timer:start(
1000,
1000 * 60,
vim.schedule_wrap(function() github.set_status(updates.last_activity) end)
vim.schedule_wrap(function()
if updates.last_activity == nil then return end
github.set_status(updates.last_activity)
end)
)
end,
}

3
renovate.json Normal file
View File

@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}