alexcreek / builder Goto Github PK
View Code? Open in Web Editor NEWYet another thing that accepts webhooks and builds things
Yet another thing that accepts webhooks and builds things
Send the status of the build back to github. I'm thinking this'll require a bot or account
https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#statuses
https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/about-status-checks
Before attempting to build a project, verify that the branch exists in the repo.
2020-12-19 05:25:33 INFO Webhook recieved
2020-12-19 05:25:33 INFO Build started
2020-12-19 05:25:33 INFO Repository: https://github.com/alexcreek/remote.git
127.0.0.1 - - [19/Dec/2020 05:25:33] "POST /webhook HTTP/1.0" 200 -
2020-12-19 05:25:33 INFO Branch: build
2020-12-19 05:25:33 INFO Commit: 0000000000000000000000000000000000000000
2020-12-19 05:25:33 INFO Cloning https://github.com/alexcreek/remote.git into /tmp/tmp21yowl7m
2020-12-19 05:25:34 INFO Checking out branch build
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/code/builder/project.py", line 28, in run
self.checkout()
File "/code/builder/project.py", line 44, in checkout
r.git.checkout(self.branch)
File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.7/site-packages/git/cmd.py", line 551, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.7/site-packages/git/cmd.py", line 1020, in _call_process
return self.execute(call, **exec_kwargs)
File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.7/site-packages/git/cmd.py", line 831, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
cmdline: git checkout build
stderr: 'error: pathspec 'build' did not match any file(s) known to git'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.