Skip to content

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

Merged
leonsteinhaeuser merged 3 commits intomainfrom
feature/iteration-current-and-next-selection
Aug 1, 2022
Merged

feature: implemented @current and @next iteration selection#45
leonsteinhaeuser merged 3 commits intomainfrom
feature/iteration-current-and-next-selection

Conversation

@leonsteinhaeuser
Copy link
Copy Markdown
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 referenced this pull request in cloudquery/plugin-sdk 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 [https://github.com/leonsteinhaeuser/project-beta-automations/pull/39](https://togithub.com/leonsteinhaeuser/project-beta-automations/pull/39)
-   feature: implemented `@current` and `@next` iteration selection by [@&#8203;leonsteinhaeuser](https://togithub.com/leonsteinhaeuser) in [https://github.com/leonsteinhaeuser/project-beta-automations/pull/45](https://togithub.com/leonsteinhaeuser/project-beta-automations/pull/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.

1 participant