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

Pending chronometer.sh changes #15

Merged
merged 2 commits into from
Jan 19, 2016
Merged

Pending chronometer.sh changes #15

merged 2 commits into from
Jan 19, 2016

Conversation

PromoFaux
Copy link
Member

index.php and api.php changed to consume the changes made to chronometer.sh in this pull.

Consume JSON output of chronometer.sh

Relies on [this pull](pi-hole/pi-hole#193) being merged.
Consume JSON output of chronometer.sh

Relies on [this pull](pi-hole/pi-hole#193) being merged.
@AzureMarker
Copy link
Contributor

That link is broken

@PromoFaux
Copy link
Member Author

That link is broken

Which one?

@AzureMarker
Copy link
Contributor

In the first comment (index.php and api.php changed to consume the changes made to chronometer.sh in this pull.)

@PromoFaux
Copy link
Member Author

image

Yeah, I guess you can't use markdown in commits.

@dschaper
Copy link
Member

When you set up your PR's I think you can set the origin to be a new branch instead of master, that would make it a little easier to test the code and prevent breakage. Merging to master is kind of a done deal. (Reverts are a pain in the posterior, lol.)

@PromoFaux
Copy link
Member Author

I couldn't see the option to do so.. I'll gladly do another if that is the case...

@AzureMarker
Copy link
Contributor

Before you start working, you can create a new branch and change to it. Then any work you do will be put on that branch. When you're done, make a pull request to add a branch here. (I think that's how it works).

@dschaper
Copy link
Member

capture

Just type a new branch name in the box.

@PromoFaux
Copy link
Member Author

Yeah, did that, but it didn't give me an option to create a new one in the base fork.

@dschaper
Copy link
Member

Hmm... Let me do some research.

@dschaper
Copy link
Member

Can you grab a screenie of what you see when you do a PR?

@PromoFaux
Copy link
Member Author

image

I made changes to TEST NEW BRANCH, so there should have been things to compare

@dschaper
Copy link
Member

Can you click on the base TEST NEW BRANCH dropdown and see if you get a box that you can type in?

@PromoFaux
Copy link
Member Author

Yeah, I typed in "TEST NEW BRANCH" to the base branch box, and then
image

when you then click on the branch in the drop down it redirects you to the page shown in my first screenshoy.

@dschaper
Copy link
Member

Oops, just re-read that... Hmmm... Have to see whats up with that.

@dschaper
Copy link
Member

Is the box blank because you're trying to submit a PR with no changes? Try doing that with a PR that has some changes to merge and check if the box goes green?

@PromoFaux
Copy link
Member Author

Nope, the Create Pull request button is greyed out.

image

If you check my test fork you'll see I made changes to the readme

@jacobsalmela
Copy link
Contributor

So this PR is for a new branch called "PendingChronometerChanges"? If I merge it, it should create the new branch? Is that what you are saying?

@PromoFaux
Copy link
Member Author

The PR is to merge my branch "PendingChronometerChanges" into the main "master"

@jacobsalmela
Copy link
Contributor

Oh yes, I see now. I read it wrong.

@PromoFaux
Copy link
Member Author

Yeah, there is some confusion with the branching. As far as I can see, there is no way to duplicate a branch to the upstream without the owner creating said branch.

@dschaper
Copy link
Member

I'll have to do some more research to see how a PR can be requested for a branch to be created on the base repo. That way we aren't merging testing code to master and instead to a new branch on origin.

@PromoFaux
Copy link
Member Author

I'm pretty sure you're supposed to merge locally and test before merging on github. That way you can test changes without destroying master.

this goes over that

@AzureMarker
Copy link
Contributor

I think the idea is that the owner creates a few branches (master, v1, v1-dev) and forks can go off on their own (branching off of v1-dev to make a new feature in new branch feature). After creating the feature, they make a pull request (pr from fork's feature into origin's v1-dev). Their changes get put into the inherently unstable branch, which every once in a while gets it's features merged into v1.

@PromoFaux
Copy link
Member Author

@Mcat12 has it right.

@dschaper
Copy link
Member

@Mcat12 I think that's probably the good workflow. @jacobsalmela could create a Devel branch for developmental work. I'm learning new stuff too! ;)

@jacobsalmela
Copy link
Contributor

Agreed.

I wasn't expecting so much support for the project so I really need to learn more git stuff. I'll make a branch now.

@dschaper
Copy link
Member

It's the Git to GitHub integration that I'm trying to figure out. Local git repositories are a breeze for me, but when you add in GitHub as an upstream remote things get cloudy for me...

@PromoFaux
Copy link
Member Author

We quite often have arguments about it at work, though we use SVN there, which is slightly different. One day I'll convince them to switch to git. I much prefer it.

@jacobsalmela
Copy link
Contributor

@PromoFaux, I'm just trying to catch up on the activity from today. Does this PR also fix Pi-hole #191?

@AzureMarker
Copy link
Contributor

@AzureMarker
Copy link
Contributor

😄 Good thing I got to git from Github (Except then again, I sometimes have the opposite problem...). I would create a branch called dev or something.
Edit: I guess we just got one!

@PromoFaux
Copy link
Member Author

@jacobsalmela It fixes the issues I could see with Pi-hole #191 , but I was not able to replicate the original issue.

@AzureMarker
Copy link
Contributor

That issue is with the original adminlte. The correct issue is on another repo, so you need to directly link to it.

@PromoFaux
Copy link
Member Author

@Mcat12 spotted that and fixed it with a sneaky ninja-edit!

@AzureMarker
Copy link
Contributor

As an aside, it's kind of annoying that adminlte has such a huge fork list. Github won't let me see the branch network from Graphs -> Network.

@PromoFaux
Copy link
Member Author

Provided everyone else is happy with it, it's safe to merge to master @jacobsalmela

@jacobsalmela
Copy link
Contributor

Everything looks good. chronometer.sh seems to be working well for me. I'll probably merge it tonight if no one spots any issues.

jacobsalmela added a commit that referenced this pull request Jan 19, 2016
@jacobsalmela jacobsalmela merged commit 6b89b27 into pi-hole:master Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants