Skip to content

400 Bad Request While Pushing Image to DockerHub #9

400 Bad Request While Pushing Image to DockerHub

400 Bad Request While Pushing Image to DockerHub #9

name: Auto Label and Comment on New Issues
on:
issues:
types: [opened]
jobs:
label-and-comment:
runs-on: ubuntu-latest
permissions:
issues: write
contents: read
steps:
- name: Add new label to issue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['status: needs triage']
});
- name: Comment on issue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const message = `Thank you for your feedback :thumbsup:.
Our team will review your issue shortly.
In the meantime, feel free to provide as many details as possible, as this will speed up the resolution.
If you need assistance rather than providing feedback, please contact the Docker support team via https://www.docker.com/support/ for a prompt response, and close this issue.
`
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: message
});