Skip to content

Pinned issue - GitHub Example #152

@pat-s

Description

@pat-s

similar as #126

    environment:
      GITHUB_TOKEN:
        from_secret: ISSUE_TOKEN
    image: docker.io/thegeeklab/git-sv:1.0.10
    commands: |
      apk add -q --no-cache jq github-cli

      export RELEASE_NOTES=$(git sv rn)
      echo -e "RELEASE_NOTES: $RELEASE_NOTES"
      export ISSUE_NUMBER=$(gh issue list --json number --state open --search "Changelog for upcoming version" | jq -r '.[] | .number')

      if [ -z "$ISSUE_NUMBER" ]; then
        gh issue create --title "Changelog for upcoming version" --body "$RELEASE_NOTES"
      else
        gh issue edit $ISSUE_NUMBER --body "$RELEASE_NOTES"
      fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions