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

feat: non-openedx repos get instructions to find tweaks #378

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

nedbat
Copy link
Contributor

@nedbat nedbat commented Aug 7, 2023

This prompts users to seek org-specific tweaks when they aren't making repos in the openedx organization. Axim would prefer not to have private wiki links in public tools, so we don't link to specific instructions like https://2u-internal.atlassian.net/wiki/spaces/ENG/pages/493453499/Repo+deltas+for+edx+GitHub+repos .

I tried to write a test for this, but could not figure out how to capture the stdout from the post hook.

Merge checklist:
Check off if complete or not applicable:

  • Changelog record added
  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, deadlines, tickets

@nedbat nedbat force-pushed the nedbat/org-specific-instructions branch from 8e47fb9 to f4a4239 Compare August 11, 2023 11:42
@nedbat nedbat marked this pull request as ready for review August 11, 2023 11:43
@nedbat nedbat requested a review from timmc-edx August 11, 2023 11:44
@nedbat
Copy link
Contributor Author

nedbat commented Aug 11, 2023

@timmc-edx this is the end of my cookiecutter work for the moment (and was the reason I got started on it at all).

@nedbat nedbat requested a review from feanil August 11, 2023 12:36
CHANGELOG.rst Outdated
@@ -5,6 +5,12 @@ Change Log
This file loosely adheres to the structure of https://keepachangelog.com/,
but in reStructuredText instead of Markdown.

2023-08-07
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
2023-08-07
2023-08-11

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to get scriv into this... I'll fix it.

if org != "openedx":
print("*" * 78)
print(f"Since your repo will be in the {org} organization, you may need")
print("to adjust the contents of the repo. Check with your organization.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe give examples of what might need to be changed? For example:

Suggested change
print("to adjust the contents of the repo. Check with your organization.")
print("to adjust the contents of the repo, such as licenses and email")
print("addresses. Check with your organization.")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea!

@nedbat nedbat force-pushed the nedbat/org-specific-instructions branch from f4a4239 to 03d6a11 Compare August 11, 2023 15:20
@nedbat nedbat merged commit 8e1159b into master Aug 11, 2023
4 checks passed
@nedbat nedbat deleted the nedbat/org-specific-instructions branch August 11, 2023 15:43
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.

3 participants