Skip to content

feat: dynamically assign user name and filtered teams #71

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

Merged
merged 3 commits into from
May 1, 2025

Conversation

rbarker-dev
Copy link
Contributor

Description:

Dynamically injects github user name (based on GITHUB_UNAME env) Dynamically updates team list based on input teams

Related Issue(s):

closes #69

**Description**:

Dynamically injects github user name (based on GITHUB_UNAME env)
Dynamically updates team list based on input teams

Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
@rbarker-dev rbarker-dev added the feature New Feature label May 1, 2025
@rbarker-dev rbarker-dev self-assigned this May 1, 2025
@rbarker-dev rbarker-dev linked an issue May 1, 2025 that may be closed by this pull request
@github-actions github-actions bot added the feat label May 1, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR dynamically injects the GitHub user name based on the GITHUB_UNAME environment variable and updates the static site generation to filter teams based on user input.

  • Updated version2.py to pass the teams filter when generating the site.
  • Modified StaticSiteGenerator.generate_site to dynamically assign the GitHub user and team(s) from the provided environment variable and parameter.
  • Updated README.md to include instructions for setting the GITHUB_UNAME environment variable.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
version2.py Updated generate_site function call to pass team filter from config.
src/static_site_generator.py Modified generate_site to use environment variable for GitHub user and join teams.
README.md Added instructions for setting GITHUB_TOKEN and GITHUB_UNAME environment variables.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
@rbarker-dev rbarker-dev merged commit d566c0d into main May 1, 2025
5 checks passed
@rbarker-dev rbarker-dev deleted the 69-dynamically-load-user-name branch May 1, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat feature New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamically load user name
2 participants