Comments (6)
Good point, right now Builda verifies access to the repository just by trying to read Pull Requests, which probably succeeded in your case. I guess I could try all the rights needed, by trying to create/delete a commit status and adding/deleting a comment on a PR. Or maybe there's a GitHub API call to verify rights of a token?
from buildasaur.
A few tests with the repos GET endpoint make me confident that the part with permissions is the key here. push
(write) and pull
(read) must be true in order to do everything Buildasaur does. Of course the requests need to be done with the token to reflect the permissions of the user which the token belongs to (but Buildasaur does that anyway).
"permissions": {
"admin": false,
"push": true,
"pull": true
}
from buildasaur.
@mdio 👍 Yeah that's it exactly. Feel free to send a pull request with the change if you want, it'd mean adding a method to GitHubServer
called getRepository
, creating a new entity Repository
and then just changing the verification call in checkAvailabilityOfGitHubWithCurrentSettingsOfProject
to use the permissions metadata to return whether Buildasaur has all the rights required. If not I'll tackle it in the next couple of days.
Thanks for taking the time to look up the API call!
from buildasaur.
I'm afraid that I won't be able to implement that today and due to tomorrow being a public holiday I won't start before monday.
Also I'm just learning Swift but thanks to your detailed idea it looks doable.
from buildasaur.
No problem, I'll take a look at it over the weekend.
from buildasaur.
Fixed in 6642a08. Let me know if this works for you, @mdio!
from buildasaur.
Related Issues (20)
- An error always appears when editing a template HOT 17
- Add Quit option to Buildasaur menu HOT 1
- Add predefined triggers HOT 1
- Trying to sync again... HOT 4
- I'm looking for a new owner for Buildasaur HOT 10
- Environment Variables? HOT 2
- Custom post-integration actions HOT 3
- Setup questions? HOT 3
- Buildasaur hangs on Build Template View when using with Xcode 8 HOT 12
- Migrate Buildasaur and deps to Swift 3
- Pattern matching for Bot branches HOT 2
- Buildasaur bots failing to find derived data
- Last Sync Failed with error (BuildaUtils.JSONError error 0) HOT 2
- Continuously happening authorization error after a while of running HOT 3
- Downloading iOS 9.3 Simulator does not proceed ahead from Xcode 8.1 HOT 1
- "Error Disallowed checkout type, the project must be checked out over one of the supported schemes: SSH" - but project *is* checked out over SSH
- XcodeServerSDK.XcodeServer.PlaceholderError error 0 HOT 1
- Unable to start app after upgrading to MacOS High Sierra HOT 6
- Announcing Xcode-GitHub, a New Buildasaur-like macOS App
- Is this going to be updated to support xcode 10 or later? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildasaur.