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

How to call add Tag? #290

Open
pilganchuk opened this issue Jan 17, 2024 · 1 comment
Open

How to call add Tag? #290

pilganchuk opened this issue Jan 17, 2024 · 1 comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Support Any questions, information, or general needs around the SDK or GitHub APIs

Comments

@pilganchuk
Copy link

I'm trying to add a lightweight tag (according this doc) on my commit, but I have an error...
The action:

      - uses: octokit/request-action@v2.x
        id: push_tag
        with:
          route: POST /repos/{owner}/{repo}/git/tags
          owner: novaittestteam
          repo: ntk.mob
          body: ${{ toJSON(env.REQUEST_BODY) }}
          mediaType: |
            format: raw
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          REQUEST_BODY: |
            {"tag":"test","message":"Auto API Call","object":"4c64ded9bed5633f4918ea0284be44c4f85541c4","type":"commit","tagger":{"name":"AutoAPICall","email":"support@test.com"}}
The error:
< 422 322ms
Error: Invalid request.

"message", "object", "tag", "type" weren't supplied.

Where am I wrong? How can I see the whole response body returned from API?

Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@kfcampbell kfcampbell added Type: Support Any questions, information, or general needs around the SDK or GitHub APIs Status: Up for grabs Issues that are ready to be worked on by anyone labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Support Any questions, information, or general needs around the SDK or GitHub APIs
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

2 participants