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

fix(github): Change ref of github to master from refs/heads/master #79

Merged
merged 3 commits into from
Feb 26, 2020

Conversation

karlomendozaarmory
Copy link
Contributor

Dinghy was saving parents keys as:
Armory:dinghy:children:https://api.github.com/repos/armory-io/karlo-test/contents/dinghy/dinghyfile?ref=refs/heads/master

And searching for them as:
Armory:dinghy:parents:https://api.github.com/repos/armory-io/karlo-test-dinghy/contents/stage.test.module?ref=master

Removed the "refs/heads/" from the branch for github pushes.

@dogonthehorizon dogonthehorizon requested a review from a team February 26, 2020 15:57
@@ -114,6 +114,9 @@ func (p *Push) IsBranch(branchToTry string) bool {

// IsMaster detects if the branch is master.
func (p *Push) IsMaster() bool {
if(p.Ref) == "master" {
return true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be simplified by return p.Ref == "master" || p.Ref == "refs/heads/master"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check

Copy link

@german-muzquiz german-muzquiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@karlomendozaarmory karlomendozaarmory merged commit 1de073e into master Feb 26, 2020
@karlomendozaarmory karlomendozaarmory deleted the fix-github-module branch February 26, 2020 23:06
dogonthehorizon pushed a commit that referenced this pull request Mar 30, 2021
* Change ref of github to master from refs/heads/master to avoid adding it to the redis keys

* fix(github): not replace branch for master, but just remove the ref/heads part of it

* fix(github): pr comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants