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

feature: implemented @current and @next iteration selection #45

Merged
merged 3 commits into from Aug 1, 2022

Conversation

leonsteinhaeuser
Copy link
Owner

@leonsteinhaeuser leonsteinhaeuser commented Jul 14, 2022

This PR implements the desired functionality from the discussion: #42

In order to use this functionality, simply pass @current or @next as the iteration value.

JSON:

[
    {
        "name": "Iteration",
        "type": "iteration",
        "value": "@current"
    }
]

Example workflow:

name: Project automations (organization)

on:
  issues:
  pull_request:

env:
  gh_project_token: ${{ secrets.PAC_TOKEN }}
  project_id: 1
  gh_organization: sample-org
  custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]'

jobs:
  issue_project_custom_field_update:
    name: issue_opened_or_reopened
    runs-on: ubuntu-latest
    if: github.event_name == 'issues'
    needs:
      - issue_opened_or_reopened
    steps:
      - name: 'Modify custom fields'
        uses: leonsteinhaeuser/project-beta-automations@v1.3.0-alpha.1
        env:
          DEBUG_LOG: "true"
        with:
          gh_token: ${{ env.gh_project_token }}
          organization: ${{ env.gh_organization }}
          project_id: ${{ env.project_id }}
          resource_node_id: ${{ github.event.issue.node_id }}
          operation_mode: custom_field
          custom_field_values: ${{ env.custom_field_values }}

@leonsteinhaeuser leonsteinhaeuser self-assigned this Jul 14, 2022
@leonsteinhaeuser leonsteinhaeuser added the size/XS Denotes a PR that changes 0-99 lines, ignoring generated files. label Jul 14, 2022
@leonsteinhaeuser leonsteinhaeuser force-pushed the feature/iteration-current-and-next-selection branch from 68d686a to f491c0d Compare July 14, 2022 20:23
@leonsteinhaeuser leonsteinhaeuser merged commit 6e78137 into main Aug 1, 2022
@leonsteinhaeuser leonsteinhaeuser deleted the feature/iteration-current-and-next-selection branch August 1, 2022 19:23
kodiakhq bot pushed a commit to cloudquery/plugin-sdk that referenced this pull request Sep 1, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| booxmedialtd/ws-action-parse-semver | action | digest | `966a265` -> `e4a833c` |
| [leonsteinhaeuser/project-beta-automations](https://togithub.com/leonsteinhaeuser/project-beta-automations) | action | minor | `v1.2.1` -> `v1.3.0` |
| tubone24/update_release | action | digest | `3361270` -> `53849a6` |

---

### Release Notes

<details>
<summary>leonsteinhaeuser/project-beta-automations</summary>

### [`v1.3.0`](https://togithub.com/leonsteinhaeuser/project-beta-automations/releases/tag/v1.3.0)

[Compare Source](https://togithub.com/leonsteinhaeuser/project-beta-automations/compare/v1.2.1...v1.3.0)

#### What's Changed

-   feature: install gh cli if not present by [@&#8203;leonsteinhaeuser](https://togithub.com/leonsteinhaeuser) in [leonsteinhaeuser/project-beta-automations#39
-   feature: implemented `@current` and `@next` iteration selection by [@&#8203;leonsteinhaeuser](https://togithub.com/leonsteinhaeuser) in [leonsteinhaeuser/project-beta-automations#45

**Full Changelog**: leonsteinhaeuser/project-beta-automations@v1.2.1...v1.3.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xODAuMCIsInVwZGF0ZWRJblZlciI6IjMyLjE4MC4wIn0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature size/XS Denotes a PR that changes 0-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant