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

Add GitHub Action to create/update issues on milestone changes #82

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

crazygo
Copy link
Contributor

@crazygo crazygo commented Oct 27, 2024

Add a new GitHub Action workflow to create or update issues associated with milestones on milestone changes.

  • New Workflow File: Add .github/workflows/create-update-iteration-plan.yml to handle milestone events.

    • Trigger the workflow on milestone events.
    • Use actions/checkout@v2 to check out the repository.
    • Use actions/setup-node@v2 to set up Node.js.
    • Run a custom script to call the getOrCreateIssue function from github.js.
  • New Script File: Add .github/workflows/github.js to manage issue creation and updates.

    • Create a function getOrCreateIssue to check for existing issues related to a milestone and create or update them.
    • Use the GitHub API to search for existing issues related to the milestone.
    • Update the existing issue if found, or create a new one if not found.

For more details, open the Copilot Workspace session.

Add a new GitHub Action workflow to create or update issues associated with milestones on milestone changes.

* **New Workflow File**: Add `.github/workflows/create-update-iteration-plan.yml` to handle milestone events.
  - Trigger the workflow on `milestone` events.
  - Use `actions/checkout@v2` to check out the repository.
  - Use `actions/setup-node@v2` to set up Node.js.
  - Run a custom script to call the `getOrCreateIssue` function from `github.js`.

* **New Script File**: Add `.github/workflows/github.js` to manage issue creation and updates.
  - Create a function `getOrCreateIssue` to check for existing issues related to a milestone and create or update them.
  - Use the GitHub API to search for existing issues related to the milestone.
  - Update the existing issue if found, or create a new one if not found.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/askman-dev/askman-chrome-extension?shareId=XXXX-XXXX-XXXX-XXXX).
@crazygo crazygo merged commit fedc63c into main Oct 27, 2024
2 of 4 checks passed
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