The line-comments depend on the commit that were made on.
If the person that made the pull request rebased that commit then you're not looking at what you were previously looking. It's a different commit, thus there are no comments.
Look on the 'Your Actions' tab and find a line in the actions' history were you commented on that commit, click that commit and you'll see the comments are still there.
If the commit was rebased, you wont find that commit were it used to be (some branch) and not on any repo probably (if it's not on another branch). It is just cached by git and github, until the garbage collector kicks in.You need to be sure that your base branch has:
Then in the CODEOWNERS file, located either in the root of the repo or in the .github subfolder, you need to have either a user described with '@user', a user described with his email like 'user@domain.com', or a team described with '@org/teamname'.
You will need also to be sure that:
You can do this with an advanced search query. In the search box, enter "Issues". commenter:username
Or if you want to search a specific repo: "".RepositoryName commenter:username
Query parameters are recommended.
As mentioned in "About PR templates":
You must create templates on the repository's default branch.
Templates created in other branches are not available for collaborators to use.
I initially tried to use Respost, but it doesn't allow setting a raw string.body
So here's a way to do it with .curl
In a :.github/workflows/whatever.yml
name: Some workflow
on:
issue_comment:
types: [created]
jobs:
comment:
if: contains(github.event.comment.body, 'special string')
runs-on: ubuntu-latest
steps:
- name: Add comment to PR
env:
URL: ${{ github.event.issue.comments_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl \
-X POST \
$URL \
-H "Content-Type: application/json" \
-H "Authorization: token $GITHUB_TOKEN" \
--data '{ "body": "blah blah" }'
You must create templates on the repository's default branch. Templates created in other branches are not available for collaborators to use. You can store your pull request template in the repository's visible root directory, the docs folder, or the hidden .github directory. Pull request template filenames are not case sensitive, and can have an extension such as .md or .txt.