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

Implement GitHub Action for Team Creation #1

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

svg153
Copy link
Member

@svg153 svg153 commented May 19, 2024

Implements the functionality to trigger a GitHub action upon issue creation for team creation, including the creation of a team on GitHub, modification of team-assignments.yaml, and linking the PR to the issue.

  • GitHub Action Workflow Update: Modifies team-manager-github-action.yaml to trigger on issue events, specifically for team creation requests. It includes steps to read issue content, create the team on GitHub, modify team-assignments.yaml, create a PR with the changes, and link the PR to the issue.
  • Issue Template Creation: Adds a new issue template create-team.yaml in .github/ISSUE_TEMPLATE for team creation requests. This template includes fields for team name, description, privacy, and an optional parent team, all required for creating a team on GitHub.
  • Command Implementation: Updates cmd/teams.go by adding a new subcommand create-team intended for creating a new team on GitHub and updating team-assignments.yaml. However, the actual implementation of the command's functionality is marked as a placeholder and not fully implemented in the provided code changes.

For more details, open the Copilot Workspace session.

svg153 added 2 commits May 19, 2024 13:58
Implements the `createTeamCmd` function and updates GitHub Actions for team creation.

- Adds the implementation for the `createTeamCmd` command in `cmd/teams.go`, enabling the creation of new GitHub teams and updating `team-assignments.yaml` with the new team's details.
- Modifies the GitHub Action in `team-manager-github-action.yaml` to support team creation based on issue labels and content, including steps for reading issue content, creating the team, modifying `team-assignments.yaml`, creating a pull request, and linking the PR to the issue.


---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/svg153-org/team-manager/pull/1?shareId=18c4da7c-8d17-494a-a35b-6d55ec1df684).
@svg153
Copy link
Member Author

svg153 commented May 19, 2024

Implements the createTeamCmd function and updates GitHub Actions for team creation.

  • Adds the implementation for the createTeamCmd command in cmd/teams.go, enabling the creation of new GitHub teams and updating team-assignments.yaml with the new team's details.
  • Modifies the GitHub Action in team-manager-github-action.yaml to support team creation based on issue labels and content, including steps for reading issue content, creating the team, modifying team-assignments.yaml, creating a pull request, and linking the PR to the issue.

For more details, open the Copilot Workspace session.

@svg153
Copy link
Member Author

svg153 commented May 19, 2024

Introduce new functionality for team creation and update GitHub Actions workflow

  • Implement a GitHub issue template for team creation requests, including fields for team name, description, privacy level, and optional parent team.
  • Add a create-team command in cmd/teams.go to create a new team on GitHub and update team-assignments.yaml with the new team's details.
  • Modify the GitHub Actions workflow team-manager-github-action.yaml to include a job for creating a team based on issue labels, and to update the workflow's runs-on version and checkout action version.
  • Introduce integration tests placeholders in integration_tests/team_creation_test.go and integration_tests/github_actions_workflow_test.go for simulating team creation processes, though the actual test implementations are skipped.
  • Update .github/workflows/go.yaml to include steps for running tests and displaying coverage, and modify the Makefile to add commands for running tests and generating coverage reports.

For more details, open the Copilot Workspace session.

Introduce new functionality for team creation and update GitHub Actions workflow

- Implement a GitHub issue template for team creation requests, including fields for team name, description, privacy level, and optional parent team.
- Add a `create-team` command in `cmd/teams.go` to create a new team on GitHub and update `team-assignments.yaml` with the new team's details.
- Modify the GitHub Actions workflow `team-manager-github-action.yaml` to include a job for creating a team based on issue labels, and to update the workflow's `runs-on` version and checkout action version.
- Introduce integration tests placeholders in `integration_tests/team_creation_test.go` and `integration_tests/github_actions_workflow_test.go` for simulating team creation processes, though the actual test implementations are skipped.
- Update `.github/workflows/go.yaml` to include steps for running tests and displaying coverage, and modify the `Makefile` to add commands for running tests and generating coverage reports.


---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/svg153-org/team-manager/pull/1?shareId=f68f6dbd-4ed2-444e-b798-db0250f7ecde).
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.

1 participant