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

ER: Section 2.7d of CONTRIBUTING.md needs new image and upstream branch specified. #6208

Closed
2 of 15 tasks
danvgar opened this issue Feb 2, 2024 · 10 comments
Closed
2 of 15 tasks
Assignees
Labels
Complexity: Small Take this type of issues after the successful merge of your second good first issue Draft Issue is still in the process of being created ER Emergent Request Feature: Onboarding/Contributing.md Feature: Wiki role: front end Tasks for front end developers size: 0.25pt Can be done in 0.5 to 1.5 hours

Comments

@danvgar
Copy link
Member

danvgar commented Feb 2, 2024

Emergent Requirement - Problem

Section 2.7d of CONTRIBUTING.md needs new image and upstream branch specified.

  • Image at 2.7d of CONTRIBUTING.md is broken and no longer works.
  • Using the provided code for the first time provides the below error, which either (1) should be addressed in CONTRIBUTING.md as a potential scenario, or (2) the guide should be updated to specify the upstream branch in the code and avoid the error all together.

Below is the error received if just using git pull upstream without specifying an upstream branch.

$ git pull upstream

> You asked to pull from the remote 'upstream', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line.
Screenshot 2024-02-01 at 6 09 39 PM

Issue you discovered this emergent requirement in

Date discovered

  • Feb 1, 2024

Did you have to do something temporarily

  • YES - resolve error separately by specifying upstream branch
  • NO

Who was involved

@danvgar

What happens if this is not addressed

  • New members will experience similar confusion and delays in getting started

Resources

Recommended Action Items

  • Make a new issue
  • Discuss with team
  • Let a Team Lead know

Potential Solutions [Draft] – Update CONTRIBUTING.md Section 2.7.d with correct upstream branch

Prerequisite

  1. Be a member of Hack for LA. (There are no fees to join.) If you have not joined yet, please follow the steps on our Getting Started page and attend an onboarding session.
  2. Before you claim or start working on an issue, please make sure you have read our How to Contribute to Hack for LA Guide.

Overview

The readability and accuracy of our CONTRIBUTING.md documentation is crucial for ensuring a smooth onboarding process for new members. The current documentation in Section 2.7d does not provide an upstream branch for the user to pull from prior to pushing their code, and results in an error because a branch was not specified. We need to update this code to include the correct upstream branch.

Action Items

  • In your local IDE, navigate to CONTRIBUTING.md
  • Replace
**IMPORTANT:** Before you push your local commits to your repository, sync your fork to the main Hack For LA website repository. `git pull upstream` will ensure that your local repository is up-to-date with the main site:

```bash
git pull upstream
```

with

**IMPORTANT:** Before you push your local commits to your repository, sync your fork to the main Hack For LA website repository. `git pull upstream gh-pages` will ensure that your local repository is up-to-date with the main site:

```bash
git pull upstream gh-pages
```
  • With CONTRIBUTING.md still open, make a note of the section in which the replaced content appears, so that you will know where to look in the document to preview the change.
  • Changes to CONTRIBUTING.md cannot be tested locally, rather they must be tested after pushing the issue branch to your fork of the repository. Push your issue branch in the usual manner, but before creating the Pull Request, check your updates using this test URL. Also store the test URL for use in a later step:
https://github.com/[REPLACE WITH GITHUB HANDLE]/website/blob/[REPLACE WITH NAME OF ISSUE BRANCH]/CONTRIBUTING.md

(for example: https://github.com/bonniewolfe/website/blob/issue-branch-1234/CONTRIBUTING.md)

  • Create a pull request with your changes. In the Pull Request, after the "Why did you make the changes" section, add this line to help reviewers, replacing the text in brackets (and the brackets) with the test URL from the previous Action Item.
For Reviewers: Do not review changes locally, rather, review changes at [REPLACE WITH TEST URL]

Resources/Instructions

Potential Solutions [Draft] – Fix broken image in CONTRIBUTING.md Section 2.7.d

Prerequisite

  1. Be a member of Hack for LA. (There are no fees to join.) If you have not joined yet, please follow the steps on our Getting Started page and attend an onboarding session.
  2. Before you claim or start working on an issue, please make sure you have read our How to Contribute to Hack for LA Guide.

Overview

The readability and accuracy of our CONTRIBUTING.md documentation is crucial for ensuring a smooth onboarding process for new members. The current documentation in Section 2.7d contains a broken image that needs to be fixed.

Action Items

  • In your local IDE, navigate to CONTRIBUTING.md
  • Replace
You can also sync your fork directly on GitHub by clicking "Sync Fork" at the right of the screen and then clicking "Update Branch"

<details>
  <summary><strong>Click here</strong> to see how to sync the fork on GitHub</summary>
  <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/5314153/307199130-f50cd9c2-a37c-432f-9745-df8325fd581a.png" />
</details>

with

You can also sync your fork directly on GitHub by clicking "Sync Fork" at the right of the screen and then clicking "Update Branch"

<details>
  <summary><strong>Click here</strong> to see how to sync the fork on GitHub</summary>
  <img src="https://raw.githubusercontent.com/wiki/hackforla/website/images/how-to-review-pull-requests/step3-sync-demo.gif" />
</details>
  • With CONTRIBUTING.md still open, make a note of the section in which the replaced content appears, so that you will know where to look in the document to preview the change.
  • Changes to CONTRIBUTING.md cannot be tested locally, rather they must be tested after pushing the issue branch to your fork of the repository. Push your issue branch in the usual manner, but before creating the Pull Request, check your updates using this test URL. Also store the test URL for use in a later step:
https://github.com/[REPLACE WITH GITHUB HANDLE]/website/blob/[REPLACE WITH NAME OF ISSUE BRANCH]/CONTRIBUTING.md

(for example: https://github.com/bonniewolfe/website/blob/issue-branch-1234/CONTRIBUTING.md)

  • Create a pull request with your changes. In the Pull Request, after the "Why did you make the changes" section, add this line to help reviewers, replacing the text in brackets (and the brackets) with the test URL from the previous Action Item.
For Reviewers: Do not review changes locally, rather, review changes at [REPLACE WITH TEST URL]

Resources/Instructions

@danvgar danvgar added Feature Missing This label means that the issue needs to be linked to a precise feature label. size: 0.25pt Can be done in 0.5 to 1.5 hours ER Emergent Request role missing Complexity: Missing labels Feb 2, 2024
@HackforLABot HackforLABot added this to New Issue Approval in Project Board Feb 2, 2024

This comment was marked as outdated.

@danvgar danvgar changed the title ER: ER: Section 2.7d of CONTRIBUTING.md needs new image and upstream branch specified. Feb 2, 2024
@danvgar danvgar added role: technical writer Tasks for technical writers role: front end Tasks for front end developers role: writing Tasks for writers role: dev leads Tasks for technical leads and/or merge team members Feature: Wiki Complexity: Small Take this type of issues after the successful merge of your second good first issue and removed role missing Feature Missing This label means that the issue needs to be linked to a precise feature label. role: technical writer Tasks for technical writers Complexity: Missing labels Feb 2, 2024
@danvgar danvgar moved this from New Issue Approval to Emergent Requests in Project Board Feb 2, 2024
@ExperimentsInHonesty ExperimentsInHonesty added this to the 08. Team workflow milestone Feb 8, 2024
@roslynwythe roslynwythe added ready for dev lead Issues that tech leads or merge team members need to follow up on and removed role: dev leads Tasks for technical leads and/or merge team members role: writing Tasks for writers labels Feb 9, 2024
@roslynwythe roslynwythe added Ready for Prioritization and removed ready for dev lead Issues that tech leads or merge team members need to follow up on labels Feb 15, 2024
@ExperimentsInHonesty
Copy link
Member

@danvgar So what are you suggesting for the changes? Also, choose the checkbox for the Recommended Action Items

@ExperimentsInHonesty ExperimentsInHonesty added the ready for dev lead Issues that tech leads or merge team members need to follow up on label Feb 16, 2024
@danvgar
Copy link
Member Author

danvgar commented Feb 16, 2024

@danvgar So what are you suggesting for the changes? Also, choose the checkbox for the Recommended Action Items

I am not entirely sure what the solution should be, but I believe if the code is modified to include the upstream branch, it should work. I can dig a bit deeper and provide a step-by-step proposal if that's what you'd like, just let me know.

I talked with @roslynwythe and it sounds like this should have been two Emergent Requests / Issues, since the broken image link is a separate task.

@ExperimentsInHonesty ExperimentsInHonesty moved this from Emergent Requests to ERs that are ready to be turned into issues in Project Board Feb 20, 2024
@ExperimentsInHonesty ExperimentsInHonesty moved this from ERs that are ready to be turned into issues to In progress (actively working) in Project Board Feb 20, 2024

This comment was marked as outdated.

@ExperimentsInHonesty ExperimentsInHonesty moved this from In progress (actively working) to ERs that are ready to be turned into issues in Project Board Feb 20, 2024
@roslynwythe
Copy link
Member

roslynwythe commented Feb 23, 2024

Hi @danvgar

  • I realized that Section 2.7d has recently been updated to include the full instruction for pulling the upstream gh-pages, so you can remove that from the ER
  • I found an animated gif we can use to replace the broken image, so please update the "Potential Solutions" section
how to sync your forked repo to the main repo

image

- [ ] Please note, that when you write an issue from ER, you should include a link back to the ER, in the Resources section. Something like "This issue was created from #6208". If you place a hyphen in front of that statement, GitHub will expand the issue number into a link. You should also create a comment in the ER with a link to the new issue.

Thank you for writing this ER. When you have made the updates, please apply the "ready for dev lead" label and ping me via Slack. If you wish to write the issue for fixing the broken images, go ahead and self-assign this ER.

@roslynwythe roslynwythe removed the ready for dev lead Issues that tech leads or merge team members need to follow up on label Feb 24, 2024
@ExperimentsInHonesty ExperimentsInHonesty moved this from ERs and epics that are ready to be turned into issues to Emergent Requests in Project Board Mar 26, 2024
@ExperimentsInHonesty ExperimentsInHonesty added the Draft Issue is still in the process of being created label Apr 2, 2024

This comment was marked as outdated.

@danvgar

This comment was marked as outdated.

@danvgar

This comment was marked as resolved.

@danvgar danvgar moved this from Emergent Requests to Questions / In Review in Project Board Apr 6, 2024
@danvgar danvgar added the ready for dev lead Issues that tech leads or merge team members need to follow up on label Apr 6, 2024
@danvgar
Copy link
Member Author

danvgar commented Apr 6, 2024

@roslynwythe ER description has been updated with draft solution instructions. I'm not sure what you meant about CONTRIBUTING.md showing the correct upstream branch code because it is still showing incomplete code to me. After some research and testing I can confirm it should be git pull upstream gh-pages.

I've created two new issues for approval below.

@danvgar danvgar moved this from Questions / In Review to Emergent Requests in Project Board Apr 6, 2024
@danvgar danvgar removed the ready for dev lead Issues that tech leads or merge team members need to follow up on label Apr 6, 2024
@roslynwythe
Copy link
Member

Thank you @danvgar for writing these issues. This ER will be closed "as completed".

Project Board automation moved this from Emergent Requests to QA May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Small Take this type of issues after the successful merge of your second good first issue Draft Issue is still in the process of being created ER Emergent Request Feature: Onboarding/Contributing.md Feature: Wiki role: front end Tasks for front end developers size: 0.25pt Can be done in 0.5 to 1.5 hours
Projects
Development

No branches or pull requests

3 participants