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

Request for support to create follow-up PRs for drift detection #1704

Open
cappyzawa opened this issue May 31, 2024 · 0 comments
Open

Request for support to create follow-up PRs for drift detection #1704

cappyzawa opened this issue May 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cappyzawa
Copy link
Contributor

cappyzawa commented May 31, 2024

Feature Overview

Request for support to create follow-up PRs for drift detection.

Why is the feature needed?

Currently, drift detection in tfaction creates GitHub Issues to track detected drifts.
While this is useful, it would be more efficient for our workflow if follow-up PRs were automatically created when a drift is detected.

Having the option to choose between managing drifts via Issues or follow-up PRs would cater to different workflow preferences and enhance flexibility.

Example Code

GitHub Actions

    steps:
    - uses: actions/[email protected]
    - uses: tibdex/[email protected]
      id: generate_token
      with:
        app_id: ${{ secrets.APP_ID }}
        private_key: ${{ secrets.APP_PRIVATE_KEY }}
    - uses: aquaproj/[email protected]
      with:
        aqua_version: v2.25.1
    - uses: suzuki-shunsuke/tfaction/[email protected]
      with:
        secrets: ${{ toJSON(secrets) }}
    - uses: suzuki-shunsuke/tfaction/[email protected]
      id: setup
      with:
        github_token: ${{ steps.generate_token.outputs.token }}
    - uses: suzuki-shunsuke/tfaction/[email protected]
      with:
        github_token: ${{ steps.generate_token.outputs.token }}
    - uses: suzuki-shunsuke/tfaction/[email protected]
      with:
        github_token: ${{ steps.generate_token.outputs.token }}
      env:
        TF_VAR_github_app_token: ${{ steps.generate_token.outputs.token }}
    - uses: suzuki-shunsuke/tfaction/[email protected]
      if: failure()
      with:
        github_token: ${{ steps.generate_token.outputs.token }}

Note

No response

@cappyzawa cappyzawa added the enhancement New feature or request label May 31, 2024
@cappyzawa cappyzawa changed the title Request for Support to Create Follow-Up PRs for Drift Detection Request for support to create follow-up PRs for drift detection Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant