Skip to content
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

Can't read repository name from $PWD #28

Closed
g4s8 opened this issue Oct 3, 2019 · 33 comments
Closed

Can't read repository name from $PWD #28

g4s8 opened this issue Oct 3, 2019 · 33 comments
Labels
bug Something isn't working stale

Comments

@g4s8
Copy link
Owner

g4s8 commented Oct 3, 2019

When I run gitstrap create without .gitstrap.github.repo.name field in config file, I'm getting error:

{Resource:Repository Field:name Code:custom Message:name is too short (minimum is 1 character)}]

Full log of gitstrap -accept -debug create and .gitstrap.yaml config:

---
gitstrap:
    version: v1
    github:
        repo:
            description: "test"

log:

strap = create={ctx={debug=true, cfg=&{Gitstrap:0xc000012700}}}
2019/10/03 20:34:07 [GH] >>> GET https://api.github.com/user
2019/10/03 20:34:07 [GH] https://api.github.com/user <<< 200
2019/10/03 20:34:07 {"login":"g4s8"...}
RUN: as g4s8 options = map[accept:yes]
Looking up for repo g4s8/
2019/10/03 20:34:07 [GH] >>> GET https://api.github.com/repos/g4s8/
2019/10/03 20:34:07 [GH] https://api.github.com/repos/g4s8/ <<< 404
2019/10/03 20:34:07 {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
creating repo: g4s8/
        github.Repository{Name:"", Description:"test"}
2019/10/03 20:34:07 [GH] >>> POST https://api.github.com/user/repos
2019/10/03 20:34:07 {"name":"","description":"test"}
2019/10/03 20:34:08 [GH] https://api.github.com/user/repos <<< 422
2019/10/03 20:34:08 {"message":"Repository creation failed.","errors":[{"resource":"Repository","code":"missing_field","field":"name"},{"resource":"Repository","code":"custom","field":"name","message":"name is too short (minimum is 1 character)"}],"documentation_url":"https://developer.github.com/v3/repos/#create"}
[create] failed to create github repo: failed to create repo: POST https://api.github.com/user/repos: 422 Repository creation failed. [{Resource:Repository Field:name Code:missing_field Message:} {Resource:Repository Field:name Code:custom Message:name is too short (minimum is 1 character)}]

Reading repo name from $PWD was implemented in #14 ticket, but it seems it was broken.

@g4s8 g4s8 added the bug Something isn't working label Oct 3, 2019
@0crat 0crat added the scope label Oct 3, 2019
@0crat
Copy link

0crat commented Oct 3, 2019

Job #28 is now in scope, role is DEV

@0crat
Copy link

0crat commented Oct 3, 2019

Bug was reported, see §29: +15 point(s) just awarded to @g4s8/z

@0crat
Copy link

0crat commented Oct 3, 2019

The job #28 assigned to @vassilevsky/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@0crat
Copy link

0crat commented Oct 8, 2019

@vassilevsky/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@0crat
Copy link

0crat commented Oct 13, 2019

The user @vassilevsky/z resigned from #28, please stop working. Reason for job resignation: It is older than 10 days, see §8

@0crat
Copy link

0crat commented Oct 13, 2019

Resigned on delay, see §8: -30 point(s) just awarded to @vassilevsky/z

@github-actions
Copy link

@g4s8 ping (issue is stale)

@github-actions github-actions bot added the stale label Oct 24, 2019
@mohamednizar
Copy link
Contributor

@0crat status

@0crat
Copy link

0crat commented Oct 29, 2019

@0crat status (here)

@mohamednizar This is what I know about this job in CF7JL4282, as in §32:

  • The job #28 is in scope for 26days
  • The role is DEV
  • The job is not assigned to anyone
  • The budget is not set yet
  • These users are banned and won't be assigned:
  • Job footprint (restricted area)

@g4s8
Copy link
Owner Author

g4s8 commented Oct 30, 2019

@0crat assign @mohamednizar

@0crat
Copy link

0crat commented Oct 30, 2019

@0crat assign @mohamednizar (here)

@g4s8 The job #28 assigned to @mohamednizar/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@0crat
Copy link

0crat commented Oct 30, 2019

Manual assignment of issues is discouraged, see §19: -5 point(s) just awarded to @g4s8/z

@mohamednizar
Copy link
Contributor

@g4s8 ping

@mohamednizar
Copy link
Contributor

@0crat wait

@0crat
Copy link

0crat commented Nov 2, 2019

@0crat wait (here)

@mohamednizar The impediment for #28 was registered successfully by @mohamednizar/z

@mohamednizar
Copy link
Contributor

@0crat continue

@0crat 0crat removed the waiting label Nov 10, 2019
@0crat
Copy link

0crat commented Nov 10, 2019

@github-actions/z[bot] the issue is closed not by @g4s8/z (its creator); I won't close the order; please, re-open it and ask @g4s8/z to close it

@0crat
Copy link

0crat commented Nov 10, 2019

@0crat continue (here)

@mohamednizar @mohamednizar/z continued working on job #28

@0crat
Copy link

0crat commented Nov 10, 2019

Job gh:g4s8/gitstrap#28 is not assigned, can't get performer

@0crat
Copy link

0crat commented Nov 10, 2019

The user @mohamednizar/z resigned from #28, please stop working. Reason for job resignation: It is older than 10 days, see §8

@0crat
Copy link

0crat commented Nov 10, 2019

Resigned on delay, see §8: -30 point(s) just awarded to @mohamednizar/z

@0crat
Copy link

0crat commented Nov 10, 2019

Resigned on delay, see §8: -30 point(s) just awarded to @mohamednizar/z

@mohamednizar
Copy link
Contributor

@g4s8 , I got -60 instead of +30 :(. Please do the needful

@g4s8
Copy link
Owner Author

g4s8 commented Nov 10, 2019

@mohamednizar double penalty looks like a bug, feel free to submit it here https://github.com/zerocracy/farm/issues
Reputation points are not fixable, the only I can do is to fix your payment here. Please don't use continue next time when bug should be closed, it was the reason of this penalty.

@g4s8
Copy link
Owner Author

g4s8 commented Nov 10, 2019

@0crat pay 30min @mohamednizar

@g4s8
Copy link
Owner Author

g4s8 commented Nov 10, 2019

@0crat status

@0crat
Copy link

0crat commented Nov 10, 2019

Direct payment to @mohamednizar/z in #28, which is discouraged, see §49: -20 point(s) just awarded to @g4s8/z

@0crat
Copy link

0crat commented Nov 10, 2019

Direct payment from @g4s8/z: +30 point(s) just awarded to @mohamednizar/z

@0crat
Copy link

0crat commented Nov 10, 2019

@0crat status (here)

@g4s8 This is what I know about this job in CF7JL4282, as in §32:

  • The job #28 is in scope for 1mon
  • The role is DEV
  • The job is not assigned to anyone
  • The budget is not set yet
  • These users are banned and won't be assigned:
  • Job footprint (restricted area)

@g4s8
Copy link
Owner Author

g4s8 commented Nov 10, 2019

@0crat out

@0crat
Copy link

0crat commented Nov 10, 2019

@0crat out (here)

@g4s8 Job gh:g4s8/gitstrap#28 is not assigned, can't get performer

@0crat 0crat removed the scope label Nov 10, 2019
@0crat
Copy link

0crat commented Nov 10, 2019

@0crat out (here)

@g4s8 The job #28 is now out of scope

@mohamednizar
Copy link
Contributor

@g4s8 , Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants