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

[Milestone] v4 #30

Closed
12 tasks done
jcbhmr opened this issue May 16, 2023 · 10 comments
Closed
12 tasks done

[Milestone] v4 #30

jcbhmr opened this issue May 16, 2023 · 10 comments
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@jcbhmr
Copy link
Collaborator

jcbhmr commented May 16, 2023

I've recently made a lot of changes that I'd like to incorporate into a v4 release. There's no risk of breaking changes because nobody uses the @master tag! #23 It's awesome that good versioning practices are so prevalent! ❤️

Here's a summary of some of the changes that I'd like to incorporate into this repo:

@jcbhmr jcbhmr added enhancement New feature or request question Further information is requested labels May 16, 2023
@jcbhmr jcbhmr added this to the v4 milestone May 16, 2023
@jcbhmr
Copy link
Collaborator Author

jcbhmr commented May 16, 2023

I know this is like 2 months late from when I originally got involved with github wiki action stuff. 😬 But hey, better late than never!

@jcbhmr
Copy link
Collaborator Author

jcbhmr commented May 16, 2023

sidenote: consider renaming master to main to be "hip" and "cool" 😆 https://github.com/github/renaming

@jcbhmr
Copy link
Collaborator Author

jcbhmr commented May 16, 2023

todo: @jcbhmr -- add the improvements from the readme https://github.com/Andrew-Chen-Wang/github-wiki-action/blob/jcbhmr/README.md to this list to do and track issues and open prs for that stuff

@Andrew-Chen-Wang
Copy link
Owner

Andrew-Chen-Wang commented May 17, 2023

@jcbhmr Thanks so much for continuing this work. Since you've managed to make things backwards compatible, I've opened the former rule up such that now you can open PRs and merge them yourself or commit directly to the base branch.

I think we should refrain from moving to main for now since some users are using master as the target version. Perhaps a year down the line.

Also sorry for not keeping up to date with the conversation. I really appreciate you continuing this work!

@jcbhmr
Copy link
Collaborator Author

jcbhmr commented May 17, 2023

I think we should refrain from moving to main for now since some users are using master as the target version. Perhaps a year down the line.

No worries! ❤️ I wouldn't worry too much about Andrew-Chen-Wang/github-wiki-action@master though; there doesn't appear to be any public usage of it (github search) (sourcegraph search). (I don't know about private) #23

@jcbhmr
Copy link
Collaborator Author

jcbhmr commented May 17, 2023

@jcbhmr Thanks so much for continuing this work. Since you've managed to make things backwards compatible, I've opened the former rule up such that now you can open PRs and merge them yourself or commit directly to the base branch.

I want to caution that "backwards compatible" might not be the right word, and I want to make sure we're on the same page. I've tried to stick with the core idea of "push a folder to the .wiki.git repo", but I've done so by:

  1. Changing from env: to with:
  2. Adding more options
  3. Changing the names of some of the options (WIKI_DIR => path:, REPO => repository:, etc)
  4. Changing the core architecture of this project (Docker+Bash => Bash)
  5. Using GIT_WORK_TREE and GIT_DIR instead of rsync

These changes, while good and (IMO) improvements, are nonetheless a new version and require changing a config. IDK if that's "backwards compatible" by the definition? 🤷‍♂️

      - uses: Andrew-Chen-Wang/github-wiki-action@v3
        # ⚠️ We use the env: key to provide our inputs! See #27.
        env:
          # Make sure this has a slash at the end! We use wiki/ by default.
          WIKI_DIR: my-octocat-wiki/
          # You MUST manually pass in the GitHub token.
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          # These are currently REQUIRED options
          GH_MAIL: [email protected]
          GH_NAME: actions[bot]

to

      - uses: Andrew-Chen-Wang/github-wiki-action@v4
        with:
          path: my-octocat-wiki
          token: ${{ secrets.MY_TOKEN }}
        env:
          GIT_AUTHOR_NAME: Myself
          GIT_AUTHOR_EMAIL: [email protected]

hence, the v3 => v4 upgrade version bump. Which, again, is recommended practice! Bumping versions on improvements to the core idea of the project is good and that's what version tags are for, right? 😜


TLDR: I want explicit ✅ that going from (left) to (right) is 👍 for v4. Just to make sure we are on the same page.

image

image

I plan on merging all the PRs and then @-pinging you about making a v4.0.0 release. Sound good?
#40 #41 #42 #43 #44 #45 #47

@Andrew-Chen-Wang
Copy link
Owner

Yes this sounds good. Major version update sounds good. Can't remember if the PR for the README includes a header saying "Breaking Changes in v4" which can help people migrate. I noticed a migration section iirc so that's great.

Plan sounds good to me. Thanks again.

@jcbhmr
Copy link
Collaborator Author

jcbhmr commented May 17, 2023

@Andrew-Chen-Wang All done! It works!

@jcbhmr
Copy link
Collaborator Author

jcbhmr commented May 17, 2023

@Andrew-Chen-Wang Created release! https://github.com/Andrew-Chen-Wang/github-wiki-action/releases/tag/v4.0.0
🎉🎉🎉🎉

The v4 tag was created by GitHub Actions too!

image

@Andrew-Chen-Wang
Copy link
Owner

awesome thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants